Bug 2422888

Summary: Removing dependency upper bound breaks the package
Product: [Fedora] Fedora Reporter: samtan106
Component: poetryAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 43CC: code, mhroncok, python-packagers-sig, thrnciar
Target Milestone: ---Keywords: Regression, Upgrades
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: poetry-2.1.4-6.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-19 04:21:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description samtan106 2025-12-16 19:01:55 UTC
For context, poetry had an issue with it not picking up a specific python version and always defaulting to the system python version. Here is the issue discussing this: https://github.com/python-poetry/poetry/issues/10490

Here is the PR that fixes this by setting an upper bound to its virtualenv dependency: https://github.com/python-poetry/poetry/pull/10491

However, in fedora, when packaging poetry, we remove upper bounds on certain packages including virtualenv: https://src.fedoraproject.org/rpms/poetry/blob/rawhide/f/poetry.spec#_62, which causes the issue to reappear for anyone using this package. 

Since, I, like many people, work on python projects for work that are older than the system version, this is quite disruptive. 

Example of someone else facing this issue: https://github.com/python-poetry/poetry/issues/10655

Reproducible: Always

Comment 1 Ben Beasley 2025-12-16 19:31:42 UTC
It seems like the upstream pin was lifted in https://github.com/python-poetry/poetry/commit/9f276d3dab71ba741107a5a7f4efc12fdda5cb0b, which was released in Poetry 2.2.0. That would suggest that this should already be fixed in Rawhide, and also that backporting the source-code change from that commit may be a fix for branches with older versions of Poetry, such as F43.

Comment 3 Fedora Update System 2025-12-17 09:28:52 UTC
FEDORA-2025-c4af0a5d90 (poetry-2.1.4-6.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c4af0a5d90

Comment 4 Fedora Update System 2025-12-18 01:33:01 UTC
FEDORA-2025-c4af0a5d90 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c4af0a5d90`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c4af0a5d90

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-12-19 04:21:14 UTC
FEDORA-2025-c4af0a5d90 (poetry-2.1.4-6.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.