Bug 2309198

Summary: tox should recommend python3.11
Product: [Fedora] Fedora Reporter: Alyssa Coghlan <ncoghlan>
Component: python-toxAssignee: Miro Hrončok <mhroncok>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 40CC: fge, mhroncok, mrunge, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-02 22:10:58 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 Alyssa Coghlan 2024-09-02 14:42:04 UTC
While illustrating how Fedora integrated its multiple Python versions into its recommended dependency for tox, I noticed that python3.11 didn't get added after the system Python package was bumped up to Python 3.12:

$ sudo dnf repoquery --recommends tox 2>/dev/null
pypy2-devel
pypy3-devel
python2-devel
python2.7
python3-devel
python3.10
python3.6
python3.7
python3.8
python3.9




Reproducible: Always

Steps to Reproduce:
Query the recommended requirements for the tox package
Actual Results:  
python3.11 is not listed

Expected Results:  
python3.11 should be listed

Adding the extra recommends to the tox package for the previous major version should be noted as a task in the Python major feature bump proposals like https://fedoraproject.org/wiki/Changes/Python3.12

This missing recommendation hasn't been noticeable on system upgrades (presumably due to the requires/recommends cycle between python3.x and python3.x-libs keeping the former major version installed if it was previously installed)

Comment 1 Alyssa Coghlan 2024-09-02 22:10:58 UTC
Never mind, the problem was in my queries, not the RPM metadata; I didn't check the reverse supplements declarations (as per https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/NVVUXSVSPFQOWIGBE2JNI67HEO7R63ZQ/)

Sorry for the noise.

Comment 2 Miro Hrončok 2024-09-03 10:49:17 UTC
> While illustrating how Fedora integrated its multiple Python versions into its recommended dependency for tox, I noticed that python3.11 didn't get added after the system Python package was bumped up to Python 3.12.

This is still a problem. But it isn't caused by missing Recommends, but generally by the way weak dependencies are handled by dnf :(