Skip to content

Commit 3636dc9

Browse files
fix releasing (2)
1 parent 1c7c4fe commit 3636dc9

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ jobs:
1919
python-version: "3.10"
2020
- name: Setup Poetry
2121
uses: abatilo/[email protected]
22-
with:
23-
poetry-version: 1.2.0b1
24-
- name: Setup release plugin
25-
run: poetry plugin add poetry-dynamic-versioning-plugin
2622
- name: Install pypi deps
2723
run: poetry install
24+
- name: Version
25+
run: poetry version ${{ github.event.release.tag_name }}
2826
- name: Build
2927
run: poetry build
3028
- name: Publish to PyPi
31-
run: poetry publish
29+
run: poetry publish --dry-run

pyproject.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,5 @@ sphinx-rtd-theme = "^1.0.0"
3838
sphinx-autodoc-typehints = "^1.18.1"
3939

4040
[build-system]
41-
# so releasing doesn't have to touch the "version" in this file
42-
# we have to use a beta release of poetry and this plugin:
43-
# https://pypi.org/project/poetry-dynamic-versioning-plugin/
44-
requires = ["poetry>=1.2.0b1", "poetry-dynamic-versioning-plugin"]
45-
build-backend = "poetry.masonry.api"
46-
47-
[tool.poetry-dynamic-versioning]
48-
enable = true
49-
style = "semver"
41+
requires = ["poetry-core>=1.0.0"]
42+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)