diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 1bf95f7c..70415df2 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -17,7 +17,8 @@ jobs: - name: Install poetry run: | python -m pip install "poetry<1.9" - poetry install --only publish + poetry self add "poetry-dynamic-versioning[plugin] < 1.5" + - name: Publish env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index e66f4fe9..939b90a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,13 +64,6 @@ optional = true [tool.poetry.group.dev.dependencies] ipython = "*" -[tool.poetry.group.publish] -# PyPIにpublishするのに必要なライブラリ。インストールしなくても開発はできるので、オプショナルにする -optional = true - -[tool.poetry.group.publish.dependencies] -poetry-dynamic-versioning = "*" - [tool.mypy] # スタブが無いパッケージのエラーは無視させる.サードパーティのライブラリに型情報がないケースもあるため @@ -154,7 +147,6 @@ max-args = 10 [tool.poetry-dynamic-versioning] enable = true -format = "{base}" [build-system]