Skip to content

Commit

Permalink
Merge pull request #34 from ar90n/feature/update-poetry
Browse files Browse the repository at this point in the history
build: update poetry
  • Loading branch information
ar90n authored Oct 10, 2022
2 parents 1ba1aa6 + a7bd3f2 commit 55bbff3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
python-version: "3.10"
- name: Set up poetry
run: |
curl -o /tmp/install-poetry.py -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py
python /tmp/install-poetry.py --yes --preview
poetry plugin add poetry-version-plugin
curl -sSL https://install.python-poetry.org | python
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Publish package
run: |
poetry publish --username=ar90n --password=${PYPI_PASSWORD} -n --build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ It is `Patche`. So you have to implement some codes to handle some patches.
## For development
### Install Poery plugins
```bash
$ poetry plugin add "poethepoet[poetry_plugin]"
$ poetry self add "poethepoet[poetry_plugin]"
```

### Run tests
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "alfort"
version = "0.0.0-dev"
version = "0.0.0"
description = ""
authors = ["Masahiro Wada <[email protected]>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -43,11 +43,13 @@ testpaths = [
"tests"
]

[tool.poetry-version-plugin]
source = "git-tag"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"

[tool.poe.tasks]
test = "pytest"
check = "pre-commit run -a"
install-plugins = "poetry plugin add poethepoet[poetry_plugin]"
install-plugins = "poetry self add poethepoet[poetry_plugin]"
install-pre-commit = "pre-commit install"

0 comments on commit 55bbff3

Please sign in to comment.