Bug 1952565

Summary: Add %py_provides for optional stdlib modules
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: python3.9Assignee: Python Maintainers <python-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 34CC: cstratak, mhroncok, python-sig, thrnciar, torsava, vstinner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3.9-3.9.6-2.fc34 python3.9-3.9.6-2.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-19 01:13:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Viktorin (pviktori) 2021-04-22 14:46:54 UTC
According to guidelines [0], we should technically add %py_provides for all of the stdlib modules.

[0] https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides

For stuff in -libs, that seems excessive: hopefully people will know to install Python first!
But it would make sense for the optional packages, -idle and -tkinter.

I've occasionally seen Linux users (who know `Fedora` uses `dnf`, but not many more details) helping Python beginners that use Fedora try to install `python3-turtle`. (Granted, that was probably before our rich Recommends.)

Comment 1 Miro HronĨok 2021-04-22 15:21:33 UTC
$ rpm -ql python3-devel | grep /usr/lib64/python3.9
/usr/lib64/python3.9/config-3.9-x86_64-linux-gnu/...
/usr/lib64/python3.9/config-3.9-x86_64-linux-gnu/python-config.py

I would *not* provide this weirdness.



$ rpm -ql python3-tkinter | grep /usr/lib64/python3.9
...
/usr/lib64/python3.9/tkinter
...
/usr/lib64/python3.9/turtle.py
/usr/lib64/python3.9/turtledemo
...

I would only provide pytohn3-turtle, not pytohn3-turtledemo.



python3-test only has subpackages + test (which is already in the name).



$ rpm -ql python3-idle | grep /usr/lib64/python3.9
/usr/lib64/python3.9/idlelib
/usr/lib64/python3.9/idlelib/CREDITS.txt
/usr/lib64/python3.9/idlelib/ChangeLog
/usr/lib64/python3.9/idlelib/HISTORY.txt
/usr/lib64/python3.9/idlelib/Icons
...
/usr/lib64/python3.9/idlelib/NEWS.txt
/usr/lib64/python3.9/idlelib/NEWS2x.txt
/usr/lib64/python3.9/idlelib/README.txt
/usr/lib64/python3.9/idlelib/TODO.txt
/usr/lib64/python3.9/idlelib/__init__.py
...

Not sure if idlelib is a module to import. Should we provide it?

Side note: The text files in there should be marked with %doc/%license.

Comment 2 Petr Viktorin (pviktori) 2021-07-16 08:26:50 UTC
PR: https://src.fedoraproject.org/rpms/python3.10/pull-request/67

Comment 3 Fedora Update System 2021-07-16 14:51:52 UTC
FEDORA-2021-d613e00b72 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d613e00b72

Comment 4 Fedora Update System 2021-07-16 14:52:33 UTC
FEDORA-2021-5194033b8b has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5194033b8b

Comment 5 Fedora Update System 2021-07-17 01:07:33 UTC
FEDORA-2021-d613e00b72 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d613e00b72`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d613e00b72

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

Comment 6 Fedora Update System 2021-07-17 01:12:06 UTC
FEDORA-2021-5194033b8b has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-5194033b8b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5194033b8b

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

Comment 7 Fedora Update System 2021-07-19 01:13:14 UTC
FEDORA-2021-d613e00b72 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-07-21 01:15:09 UTC
FEDORA-2021-5194033b8b has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.