Bug 2292378 - Review Request: python-legacy-cgi - Fork of the standard library cgi and cgitb modules
Summary: Review Request: python-legacy-cgi - Fork of the standard library cgi and cgit...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/jackrosenthal/pyth...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-14 10:05 UTC by Mattia Verga
Modified: 2024-06-14 14:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-06-14 14:32:24 UTC
Type: ---
Embargoed:
mhroncok: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 7614447 to 7614596 (2.06 KB, patch)
2024-06-14 11:28 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 7614596 to 7614657 (280 bytes, patch)
2024-06-14 12:14 UTC, Fedora Review Service
no flags Details | Diff

Description Mattia Verga 2024-06-14 10:05:11 UTC
Spec URL: https://mattia.fedorapeople.org/python-legacy-cgi/python-legacy-cgi.spec
SRPM URL: https://mattia.fedorapeople.org/python-legacy-cgi/python-legacy-cgi-2.6-1.fc41.src.rpm
Description: Python CGI This is a fork of the standard library modules cgi and cgitb. They are slated to be removed from the Python standard library in Python 3.13. The purpose of this fork is to support existing CGI scripts using these modules.
Fedora Account System Username: mattia

Comment 1 Fedora Review Service 2024-06-14 10:10:39 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7614447
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292378-python-legacy-cgi/fedora-rawhide-x86_64/07614447-python-legacy-cgi/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Miro Hrončok 2024-06-14 10:50:56 UTC
> # No other tests provided

See https://github.com/jackrosenthal/python-cgi/tree/main/tests

Comment 3 Miro Hrončok 2024-06-14 10:54:42 UTC
> # The following patch restores a standard python bash
> # that it can then be detected and properly adjusted by the py3_shebang macro

What is a python bash? So you mean shebang?

Anyway, %py3_shebang_fix handles the shebang in that file normally, there is no need for the patch. Call %py3_shebang_fix in %prep instead please.

Comment 4 Miro Hrončok 2024-06-14 10:56:33 UTC
> %global pypi_name legacy-cgi
> %global pypi_version 2.6

This seems like overkill for a simple specfile like this. Would you consider not defining those macros?


> Source0:        %{pypi_source}

1. Enumeration of a single source is redundant.
2. Using %pypi_source without name argument is deprecated when using the new Python packaging guidelines.

Comment 5 Miro Hrončok 2024-06-14 10:57:10 UTC
> python3-legacy-cgi.noarch: W: no-documentation

Consider adding %doc README.rst

Comment 6 Mattia Verga 2024-06-14 11:10:43 UTC
Thanks, I will correct those points. For tests, I will need to package from a commit, since neither the release or the tag tarball has them.
BTW, do you think the License tag is correct? The license file refers to the Python license, therefore I put the same as python3 package.

Also, does make sense to add a provides python-cgi?

Comment 8 Fedora Review Service 2024-06-14 11:28:41 UTC
Created attachment 2037229 [details]
The .spec file difference from Copr build 7614447 to 7614596

Comment 9 Fedora Review Service 2024-06-14 11:28:43 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7614596
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292378-python-legacy-cgi/fedora-rawhide-x86_64/07614596-python-legacy-cgi/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 10 Miro Hrončok 2024-06-14 11:46:52 UTC
> BTW, do you think the License tag is correct? The license file refers to the Python license, therefore I put the same as python3 package.

Yes.


> Also, does make sense to add a provides python-cgi?

Technically, `%py_provides python3-cgi` is desired, as this provides the cgi module. User who see "No module named cgi" might want to `dnf install python3-cgi`.

Comment 11 Miro Hrončok 2024-06-14 11:47:27 UTC
> 2.6^%{date}.%{shortcommit}

Do we need to include the commit information in the version, if we use the commit just to have tests?

Comment 12 Mattia Verga 2024-06-14 12:06:05 UTC
Spec URL: https://mattia.fedorapeople.org/python-legacy-cgi/python-legacy-cgi.spec
SRPM URL: https://mattia.fedorapeople.org/python-legacy-cgi/python-legacy-cgi-2.6%5e20240614.5e15737-1.fc41.src.rpm

Added `%py_provides python3-cgi` to python3-legacy-cgi.

> Do we need to include the commit information in the version, if we use the commit just to have tests?

I usually take that approach for any package which I build from a commit which is not a tag or release.
It seems it's also a MUST do in https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snapshots

Comment 13 Fedora Review Service 2024-06-14 12:14:31 UTC
Created attachment 2037232 [details]
The .spec file difference from Copr build 7614596 to 7614657

Comment 14 Fedora Review Service 2024-06-14 12:14:34 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7614657
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292378-python-legacy-cgi/fedora-rawhide-x86_64/07614657-python-legacy-cgi/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 15 Miro Hrončok 2024-06-14 12:38:18 UTC
Is this a post-release snapshot, or is it just a way to get around a missing tag?

Comment 16 Mattia Verga 2024-06-14 13:24:46 UTC
It's a snapshot from the main branch.
The only available release/tag refer to the time the code was forked from main lib (2 years ago).

Comment 17 Miro Hrončok 2024-06-14 13:42:25 UTC
Ok then.

Package APPROVED based on the automated fedora review report, spec sanity, build log and package provides/list of files.

python-cgi = 2.6^20240614.5e15737-1.fc41
python-legacy-cgi = 2.6^20240614.5e15737-1.fc41
python3-cgi = 2.6^20240614.5e15737-1.fc41
python3-legacy-cgi = 2.6^20240614.5e15737-1.fc41
python3.13-cgi = 2.6^20240614.5e15737-1.fc41
python3.13-legacy-cgi = 2.6^20240614.5e15737-1.fc41
python3.13dist(legacy-cgi) = 2.6
python3dist(legacy-cgi) = 2.6


/usr/lib/python3.13/site-packages/__pycache__/cgi.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/__pycache__/cgi.cpython-313.pyc
/usr/lib/python3.13/site-packages/__pycache__/cgitb.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/__pycache__/cgitb.cpython-313.pyc
/usr/lib/python3.13/site-packages/cgi.py
/usr/lib/python3.13/site-packages/cgitb.py
/usr/lib/python3.13/site-packages/legacy_cgi-2.6.dist-info
/usr/lib/python3.13/site-packages/legacy_cgi-2.6.dist-info/INSTALLER
/usr/lib/python3.13/site-packages/legacy_cgi-2.6.dist-info/LICENSE
/usr/lib/python3.13/site-packages/legacy_cgi-2.6.dist-info/METADATA
/usr/lib/python3.13/site-packages/legacy_cgi-2.6.dist-info/WHEEL
/usr/share/doc/python3-legacy-cgi
/usr/share/doc/python3-legacy-cgi/README.rst
/usr/share/licenses/python3-legacy-cgi
/usr/share/licenses/python3-legacy-cgi/LICENSE

Comment 18 Fedora Admin user for bugzilla script actions 2024-06-14 14:17:52 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/python-legacy-cgi

Comment 19 Fedora Update System 2024-06-14 14:27:58 UTC
FEDORA-2024-961105d7b5 (python-legacy-cgi-2.6^20240614.5e15737-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-961105d7b5

Comment 20 Fedora Update System 2024-06-14 14:32:24 UTC
FEDORA-2024-961105d7b5 (python-legacy-cgi-2.6^20240614.5e15737-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.