Skip to content

poetry-types v0.4.0 incompatible with poetry-core 1.7+ (included in poetry 1.6+) #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ytsibizov-dt opened this issue Aug 23, 2023 · 1 comment

Comments

@ytsibizov-dt
Copy link

python-poetry/poetry-core#601 removed deprecated package "poetry.core.semver" that is used by

import poetry.core.semver.helpers as semver

Installing the python-types globally in poetry version 1.6+ breaks it immediately:

Installing Poetry (1.6.1): Done
Poetry (1.6.1) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`

$ poetry --version
Poetry (version 1.6.1)

$ poetry self update
Updating Poetry version ...
Using version ^1.6.1 for poetry
Updating dependencies
Resolving dependencies... (0.2s)

Package operations: 2 installs, 2 updates, 0 removals

  • Installing pyparsing (3.1.1)
  • Downgrading packaging (23.1 -> 21.3)
  • Downgrading tomlkit (0.12.1 -> 0.11.8)
  • Installing poetry-types (0.4.0)

Writing lock file
$ poetry --version

No module named 'poetry.core.semver'

Unless newer poetry-core is blocked in local pyproject.toml dependencies

[tool.poetry.dependencies]
...
poetry-core = {version = "<1.7.0", optional = true}
...

installing the plugin locally with poetry add --group dev poetry-types will pull the very latest (and incompatible) poetry version as configured in

poetry = "^1.5"
even if global poetry stays on safe 1.5.x.

@jvllmr
Copy link
Owner

jvllmr commented Aug 23, 2023

Thanks a lot for telling me. I replaced the deprecated import and released a new version as v0.5.0.

@jvllmr jvllmr closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants