JRubics/poetry-publish

Build with poetry-dynamic-versioning-plugin failure

Closed this issue · 7 comments

Hello trying this out but running into a problem.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Build and publish to pypi
        uses: JRubics/poetry-publish@v1.17
        with:
          pypi_token: ${{ secrets.PYPI_TOKEN }}
          plugins: "poetry-dynamic-versioning-plugin"

Is what my yaml looks like but i get this:

Using version ^0.4.0 for poetry-dynamic-versioning-plugin

Updating dependencies
Resolving dependencies...

Package operations: 4 installs, 0 updates, 0 removals

  • Installing markupsafe (2.1.3)
  • Installing dunamai (1.18.0)
  • Installing jinja2 (3.1.2)
  • Installing poetry-dynamic-versioning-plugin (0.4.0)

Writing lock file

No module named 'poetry.core.semver'

Any ideas?

I'm getting this error too

Looks like the issue is with poetry-core version 1.7 which removed poetry-core-semver. See the plugin for updates that resolve this: https://github.com/mtkennerly/poetry-dynamic-versioning/releases/tag/v1.0.1

@NickSebClark I was able to publish by forcing the poetry version via:

        with:
          poetry_version: "==1.5.1"

@natekspencer Thank you for helping out! 🤗

@NickSebClark @natekspencer poetry-dynamic-versioning-plugin is super old, which is why you are getting this error. What you actually want is poetry-dynamic-versioning[plugin].

From the readme:

If you've previously installed the deprecated poetry-dynamic-versioning-plugin package, be sure to uninstall it before proceeding.

@NickSebClark @natekspencer poetry-dynamic-versioning-plugin is super old, which is why you are getting this error. What you actually want is poetry-dynamic-versioning[plugin].

From the readme:

If you've previously installed the deprecated poetry-dynamic-versioning-plugin package, be sure to uninstall it before proceeding.

Ahh, ok. It's the README of this repo that is causing the confusion. It still references poetry-dynamic-versioning-plugin rather than poetry-dynamic-versioning[plugin].

Updating it, thank you 🙏