Bug 1785977 - Review Request: python-helpdev - HelpDev - Extracts information about the Python environment easily
Summary: Review Request: python-helpdev - HelpDev - Extracts information about the Pyt...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1785982
TreeView+ depends on / blocked
 
Reported: 2019-12-22 22:26 UTC by Mukundan Ragavan
Modified: 2020-01-07 23:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-07 23:09:03 UTC
Type: ---
Embargoed:
zbyszek: fedora-review+


Attachments (Terms of Use)

Description Mukundan Ragavan 2019-12-22 22:26:42 UTC
Spec URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/2019-2020/helpdev/rnd1/python-helpdev.spec
SRPM URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/2019-2020/helpdev/rnd1/python-helpdev-0.6.10-1.fc31.src.rpm

Description:
Helping users and developers to get information about the environment to report
bugs or even test your system without spending a day on it. It can get
information about hardware, OS, paths, Python distribution and packages,
including Qt-things.

Fedora Account System Username: nonamedotc

koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=39893171

Comment 1 Zbigniew Jędrzejewski-Szmek 2019-12-23 15:13:10 UTC
The package name is repeated in summary unnecessarily in summary.

%description is repeated. I'd suggest the standard trick with %expand:

%global _description %{expand:
Helping users and developers to get information about the environment to report
bugs or even test your system without spending a day on it. It can get
information about hardware, OS, paths, Python distribution and packages,
including Qt-things.}

%description %_description

%description -n python3-%{pypi_name} %_description

> # install license file
> mkdir -p %{buildroot}/%{_datadir}/licenses/python3-%{pypi_name}/
> cp -pr %{SOURCE1} %{buildroot}/%{_datadir}/licenses/python3-%{pypi_name}

It should suffice to do
> %prep
> cp ${SOURCE1} .

But looking at the upstream repo, it already includes a license. Why not use that file?
If it is not included in the pypi tarball, then provide a full URL to it:
Source1: https://gitlab.com/dpizetta/helpdev/raw/master/LICENSE.rst

Anyway, package looks good.
+ name is OK
+ license is acceptable (MIT)
+ license is specified correctly (upstream talks about CC-BY-4.0 for images, but there
  are no images in the binary package, so this doesn't apply).
+ builds OK
+ P/BR look OK

Unfortunately the package does not install:
  - nothing provides python3dist(importlib-metadata) needed by python3-helpdev-0.6.10-1.fc32.noarch
  - nothing provides python3.8dist(importlib-metadata) needed by python3-helpdev-0.6.10-1.fc32.noarch

Comment 2 Zbigniew Jędrzejewski-Szmek 2019-12-23 15:27:58 UTC
Ah, the package is retired with
https://src.fedoraproject.org/rpms/python-importlib-metadata/blob/master/f/dead.package:
Use the standard library importlib.metadata module instead.

https://gitlab.com/dpizetta/helpdev/merge_requests/1

Comment 3 Mukundan Ragavan 2019-12-23 22:06:09 UTC
I have made the changes pointed out. I have implemented the patch from the upstream PR using sed.

Modified SPEC: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/2019-2020/helpdev/rnd2/python-helpdev.spec
Modified SRPM: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/2019-2020/helpdev/rnd2/python-helpdev-0.6.10-2.fc31.src.rpm

Comment 4 Zbigniew Jędrzejewski-Szmek 2019-12-26 12:04:28 UTC
Remove: Requires:       python3dist(importlib-metadata)
and add in %prep
sed -i "s|'importlib_metadata', ||" setup.py

(or maybe make it conditional for F<=31 if you want to build for older releases too...)

More formal review in comment #1. Package is APPROVED.

Comment 5 Mukundan Ragavan 2020-01-02 00:52:42 UTC
Thanks for the review. I will make the changes in c#4 when I import.

Comment 6 Gwyn Ciesla 2020-01-06 22:33:01 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-helpdev

Comment 7 Mukundan Ragavan 2020-01-07 23:09:03 UTC
Built on rawhide.


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