Bug 2327938

Summary: Review Request: python-cmdkit - library for developing command-line applications in Python
Product: [Fedora] Fedora Reporter: Jonathan Wright <jonathan>
Component: Package ReviewAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: benson_muite, ngompa13, package-review
Target Milestone: ---Flags: ngompa13: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://cmdkit.readthedocs.io/
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-12 01:04:45 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:
Attachments:
Description Flags
The .spec file difference from Copr build 8299938 to 8299955
none
The .spec file difference from Copr build 8299955 to 8374275 none

Comment 1 Fedora Review Service 2024-11-22 00:32:48 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8299938
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2327938-python-cmdkit/fedora-rawhide-x86_64/08299938-python-cmdkit/fedora-review/review.txt

Found issues:

- python3-toml is deprecated, you must not depend on it.
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/
- License file LICENSE is not marked as %license
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text

Please know that there can be false-positives.

---
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 Jonathan Wright 2024-11-22 00:42:55 UTC
I've made upstream aware of the python-toml deprecation and they'll be shifting to a different library.  Let's not hold up this package over that please.

SRPM URL: https://download.copr.fedorainfracloud.org/results/jonathanspw/python-cmdkit/fedora-rawhide-x86_64/08299951-python-cmdkit/python-cmdkit-2.7.5-1.fc42.src.rpm
Spec URL: https://download.copr.fedorainfracloud.org/results/jonathanspw/python-cmdkit/fedora-rawhide-x86_64/08299951-python-cmdkit/python-cmdkit.spec

Comment 3 Fedora Review Service 2024-11-22 00:46:56 UTC
Created attachment 2059223 [details]
The .spec file difference from Copr build 8299938 to 8299955

Comment 4 Fedora Review Service 2024-11-22 00:46:58 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8299955
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2327938-python-cmdkit/fedora-rawhide-x86_64/08299955-python-cmdkit/fedora-review/review.txt

Found issues:

- python3-toml is deprecated, you must not depend on it.
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/

Please know that there can be false-positives.

---
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 5 Neal Gompa 2024-11-22 00:54:09 UTC
Taking this review.

Comment 6 Neal Gompa 2024-11-22 01:08:29 UTC
(In reply to Jonathan Wright from comment #2)
> I've made upstream aware of the python-toml deprecation and they'll be
> shifting to a different library.  Let's not hold up this package over that
> please.
> 

I don't see any indication in the upstream GitHub project that this is being tracked.

https://github.com/glentner/CmdKit/issues

Without that and some acknowledgement they are working on switching, I don't think we can ignore the deprecated dependency.

Comment 7 Jonathan Wright 2024-11-22 01:11:23 UTC
> I don't see any indication in the upstream GitHub project that this is being
> tracked.

I spoke with the dev in-person today at SC24 and also in discord a few minutes ago.

I'll get an issue opened on GH and have him acknowledge it there to satisfy this.

Comment 8 Jonathan Wright 2024-11-22 22:27:22 UTC
Here ya go @ngompa13 

https://github.com/glentner/hypershell/issues/33

Comment 9 Neal Gompa 2024-11-25 20:25:34 UTC
Is it possible for you to vendor the module in the package until it's replaced?

Comment 10 Jonathan Wright 2024-11-25 20:30:42 UTC
Why?  python-toml, while deprecated, is still present in Fedora.

Comment 11 Benson Muite 2024-11-25 21:39:57 UTC
Possibly a patch could be applied - have not tested, but it seems
a few lines need to be changed:
https://github.com/glentner/CmdKit/pull/24

Comment 12 Benson Muite 2024-12-08 07:32:56 UTC
Upstream has released a new version that does not use python-toml:
https://github.com/glentner/CmdKit/releases

Comment 14 Fedora Review Service 2024-12-11 02:09:13 UTC
Created attachment 2061996 [details]
The .spec file difference from Copr build 8299955 to 8374275

Comment 15 Fedora Review Service 2024-12-11 02:09:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8374275
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2327938-python-cmdkit/fedora-rawhide-x86_64/08374275-python-cmdkit/fedora-review/review.txt

Found issues:

- python3-pytest7 is deprecated, you must not depend on it.
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/

Please know that there can be false-positives.

---
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 16 Neal Gompa 2024-12-11 02:14:07 UTC
Review notes:

* Package follows packaging guidelines
* Package builds and installs
* Package licensing is correct and license data is installed correctly
* No serious issues from rpmlint

Things to fix on import:

> #%%tox / %%pytest / %%pyproject_check_import ...

This should just be deleted

> * Tue Dec 10 2024 Jonathan Wright <jonathan> - 2.7.6

This should use "2.7.6-1" to be compliant with our changelog format rules.

Other than that, this looks good, so...

PACKAGE APPROVED.

Comment 17 Neal Gompa 2024-12-11 02:23:06 UTC
(In reply to Fedora Review Service from comment #15)
> 
> Found issues:
> 
> - python3-pytest7 is deprecated, you must not depend on it.
>   Read more:
> https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-
> packages/
> 
> Please know that there can be false-positives.
> 

Oof, okay, can this be moved to a newer pytest?

Comment 18 Fedora Admin user for bugzilla script actions 2024-12-11 02:27:39 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/python-cmdkit

Comment 19 Jonathan Wright 2024-12-11 02:38:50 UTC
I'm not sure why but python-pytest is pointing to pytest7 here which is what CI is complaining about.  Will look into that.

Comment 20 Benson Muite 2024-12-11 10:05:55 UTC
pytest7 is a false positive

Comment 21 Fedora Update System 2024-12-12 00:59:43 UTC
FEDORA-2024-4ad9f50e6e (python-cmdkit-2.7.6-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4ad9f50e6e

Comment 22 Fedora Update System 2024-12-12 01:04:45 UTC
FEDORA-2024-4ad9f50e6e (python-cmdkit-2.7.6-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.