Bug 2033796

Summary: Review Request: python-ua-parser - Python port of Browserscope's user agent parser
Product: [Fedora] Fedora Reporter: Sandro Mani <manisandro>
Component: Package ReviewAssignee: Jarek Prokop <jprokop>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jprokop, package-review
Target Milestone: ---Flags: jprokop: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-21 16:25:15 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 Sandro Mani 2021-12-17 21:05:00 UTC
Spec URL: https://smani.fedorapeople.org/review/python-ua-parser.spec
SRPM URL: https://smani.fedorapeople.org/review/python-ua-parser-0.10.0-1.fc36.src.rpm
Description: Python port of Browserscope's user agent parser
Fedora Account System Username: smani

Comment 1 Jarek Prokop 2021-12-20 11:42:17 UTC
Taking for a review.

Comment 2 Jarek Prokop 2021-12-20 12:25:22 UTC
LGTM, but there are a some nits that need to be fixed before approving:
  * Invalid license: `python-ua-parser.src: W: invalid-license ASL2.0`
    * Correct format is "ASL 2.0"
  * E: non-executable-script /usr/lib/python3.10/site-packages/ua_parser/user_agent_parser_test.py 644 /usr/bin/python2.5
    * The shebang should not be there with those file permissions.
      This seems like appropriate medicine: `sed -i -e '\|^#!|d' ua_parser/user_agent_parser_test.py`
    * Optional: It looks like a test file, which could be run in the %check section.

Please fix the license and the shebang.

Comment 3 Sandro Mani 2021-12-21 08:29:56 UTC
The unit tests are failing [1], I'll need to look into it as time allows - I guess it's a mismatching version of uap-core.

[1] https://kojipkgs.fedoraproject.org//work/tasks/7669/80237669/build.log

Spec URL: https://smani.fedorapeople.org/review/python-ua-parser.spec
SRPM URL: https://smani.fedorapeople.org/review/python-ua-parser-0.10.0-2.fc36.src.rpm

%changelog
* Mon Dec 20 2021 Sandro Mani <manisandro> - 0.10.0-2
- Fix license
- Add possibility to run unittest
- Don't install unittest

Comment 4 Jarek Prokop 2021-12-21 09:54:25 UTC
> The unit tests are failing [1], I'll need to look into it as time allows - I guess it's a mismatching version of uap-core.

Good to see them here, upstream's tests are ok (it seems), so the mismatched version makes sense.

LGTM, package approved!

Comment 5 Gwyn Ciesla 2021-12-21 15:35:17 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-ua-parser

Comment 6 Sandro Mani 2021-12-21 16:25:15 UTC
Thanks!

Comment 7 Fedora Update System 2021-12-27 18:13:19 UTC
FEDORA-2021-fa593b16a5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fa593b16a5

Comment 8 Fedora Update System 2021-12-27 18:20:32 UTC
FEDORA-2021-b68878febc has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b68878febc

Comment 9 Fedora Update System 2021-12-28 01:26:02 UTC
FEDORA-2021-b68878febc has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-b68878febc \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b68878febc

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

Comment 10 Fedora Update System 2021-12-28 01:59:07 UTC
FEDORA-2021-fa593b16a5 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-fa593b16a5 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fa593b16a5

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

Comment 11 Fedora Update System 2022-01-05 01:22:52 UTC
FEDORA-2021-b68878febc has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2022-01-05 02:04:10 UTC
FEDORA-2021-fa593b16a5 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.