Skip to content
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

fix: set upper bound for required poetry-core version #527

Merged

Conversation

tnoczyns-volue
Copy link
Collaborator

@tnoczyns-volue tnoczyns-volue commented Jan 7, 2025

One of the steps to address #526

With poetry-core 2.0.0 there was a breaking change introduced:
https://python-poetry.org/blog/announcing-poetry-2.0.0#consistent-include-behavior

This affected the way we included generated python proto stubs. Namely by default if a VCS is used by default ignored files will be excluded. To avoid this we need to explicitly set needed files in include section. Include has higher priority than exclude rules.
For more info see: https://python-poetry.org/docs/pyproject#exclude-and-include

However, until now we didn't use format option. With poetry-core 2.0.0 if format is not specified the file is only included in sdist, previously it was sdist and wheel.

This PR makes the include section poetry-core 2.0.0 compatible, but also limits the max poetry-core version (< 2.0.0) to avoid similar compatibility surprises in the future.

Additionally, I set the minimum poetry-core version to 1.8.5 as 1.9.x are not included in pipx.

@tnoczyns-volue tnoczyns-volue added this to the Version 1.11 milestone Jan 7, 2025
@tnoczyns-volue tnoczyns-volue merged commit 24c2143 into master Jan 7, 2025
8 of 9 checks passed
@tnoczyns-volue tnoczyns-volue deleted the tnoczyns-2025-01-07-fix-package-installation branch January 7, 2025 14:24
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.

2 participants