Skip to content

Restrict poetry-core version to <2.0.0 in pyproject.toml #230

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eranhd
Copy link

@eranhd eranhd commented Jan 9, 2025

Poetry release a new version (2,0.0 on Jan 5) which break the install from branch with the following error,
in this PR I pin the poetry-core version to be < 2

Traceback (most recent call last):
File "/ts/venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/ts/venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/ts/venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-fc5khjv7/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
builder = WheelBuilder(poetry)
File "/tmp/pip-build-env-fc5khjv7/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 65, in init
super().init(poetry, executable=executable)
File "/tmp/pip-build-env-fc5khjv7/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/builder.py", line 43, in init
self._meta = Metadata.from_package(self._package)
File "/tmp/pip-build-env-fc5khjv7/overlay/lib/python3.9/site-packages/poetry/core/masonry/metadata.py", line 112, in from_package
if name == "repository" and url == package.urls["Repository"]:
KeyError: 'Repository'
error: subprocess-exited-with-error

@eranhd eranhd requested a review from MeirShpilraien January 9, 2025 21:22
@iddm iddm force-pushed the eranhd-pin-poetry-to-use-version-lt-2 branch from 32f2983 to bdc620e Compare January 13, 2025 12:33
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

Successfully merging this pull request may close these issues.

1 participant