Bug 1596922 - Review Request: python-pipdeptree - Command line utility to show dependency tree of package
Summary: Review Request: python-pipdeptree - Command line utility to show dependency t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1741107 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-30 07:07 UTC by Dhanesh B. Sabane
Modified: 2019-08-23 13:59 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-01-28 03:44:28 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Dhanesh B. Sabane 2018-06-30 07:07:34 UTC
Spec URL: https://pagure.io/rpm-packaging/raw/master/f/python-pipdeptree/python-pipdeptree.spec

SRPM URL: https://pagure.io/rpm-packaging/blob/master/f/python-pipdeptree/python-pipdeptree.spec

Description: pipdeptree is a command line utility for displaying the installed python packages in form of a dependency tree. It works for packages installed globally on a machine as well as in a virtualenv.

Fedora Account System Username: dhanesh95

Comment 2 Robert-André Mauchin 🐧 2018-06-30 14:21:02 UTC
Do your best to run the tests.


Package approved.


Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "MIT/X11 (BSD like)", "Unknown or generated". 15 files have
     unknown license. Detailed output of licensecheck in
     /home/bob/packaging/review/python-pipdeptree/review-python-
     pipdeptree/licensecheck.txt
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 1 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[x]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Binary eggs must be removed in %prep

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: python3-pipdeptree-0.12.1-1.fc29.noarch.rpm
          python-pipdeptree-0.12.1-1.fc29.src.rpm
python3-pipdeptree.noarch: W: spelling-error %description -l en_US virtualenv -> virtual
python3-pipdeptree.noarch: W: no-manual-page-for-binary pipdeptree
python-pipdeptree.src: W: spelling-error %description -l en_US virtualenv -> virtual
python-pipdeptree.src:52: W: macro-in-comment %check
2 packages and 0 specfiles checked; 0 errors, 4 warnings.

Comment 3 Dhanesh B. Sabane 2018-07-01 07:14:52 UTC
Thanks for the review! :)

(In reply to Robert-André Mauchin from comment #2)
> Do your best to run the tests.
> 

I've pinged the respective maintainers for updating the required packages. I hope this gets resolved soon.

Comment 4 Miro Hrončok 2018-07-01 20:40:50 UTC
(In reply to Dhanesh B. Sabane from comment #3)
> I've pinged the respective maintainers for updating the required packages. I
> hope this gets resolved soon.

What do you need? I'm fairly confident you don't need tox, you also probably can run the test without coverage reports. We also have pytest 3.6 (it might work) and pluggy 0.6.0 (as requested).

Comment 5 Gwyn Ciesla 2018-07-02 13:47:12 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-pipdeptree

Comment 6 Dhanesh B. Sabane 2018-07-03 17:51:17 UTC
(In reply to Miro Hrončok from comment #4)
> What do you need? I'm fairly confident you don't need tox, you also probably
> can run the test without coverage reports. We also have pytest 3.6 (it might
> work) and pluggy 0.6.0 (as requested).

The tox.ini file in the GitHub repo suggests having tox==3.0.0 and pytest==3.5.0 (the only pending requirements). Matthias (FAS ID: mrunge) replied to my email and has bumped up the spec for python-tox.  I think he still needs to push an update to Bodhi. For pytest, I wasn't able to locate the 3.6.0 version on Fedora repos. Can you guide me on how I can get that?

Comment 7 Miro Hrončok 2018-07-04 11:19:18 UTC
https://apps.fedoraproject.org/packages/pytest

Rawhide has 3.6.2-3.fc29

You can do:

%if %{fedora} > 28
...testy testy test...
%endif

if you want single spec.

Also, have you actually tried with pytest 3.4 and seen that it failed?

Comment 8 Dhanesh B. Sabane 2018-07-08 04:44:08 UTC
(In reply to Miro Hrončok from comment #7)
> https://apps.fedoraproject.org/packages/pytest
> 
> Rawhide has 3.6.2-3.fc29
> 

Ahh.. I thought F28 had pytest 3.6

> You can do:
> 
> %if %{fedora} > 28
> ...testy testy test...
> %endif
> 
> if you want single spec.
> 
> Also, have you actually tried with pytest 3.4 and seen that it failed?

I don't think I'll have to do that. After taking some time to understand the upstream code and the tests, I figured that the tests are run under a virtual environment. See test-env and test target in the Makefile [1]. So the only package required for the tests is tox (any version) so as to avoid the `pip install tox` action in the Makefile.

I've made the required changes to the spec and pushed them [2] [3]. However, are you sure that this is a safe way to run the tests? I'm a bit skeptical about pip running as root to install the test dependencies.

Comment 10 Miro Hrončok 2018-07-08 08:40:20 UTC
Not optimal and also won't work. Koji has no Interwebz.

Comment 11 Miro Hrončok 2019-01-13 10:30:06 UTC
Where are we here?

Comment 12 Dhanesh B. Sabane 2019-01-13 11:08:34 UTC
(In reply to Miro Hrončok from comment #11)
> Where are we here?

I'm figuring out how to run the tests. If I'm not able to do it, I'll upload the package without the tests.

Comment 13 Fedora Update System 2019-01-13 11:37:38 UTC
python-pipdeptree-0.13.1-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c34eb7a05a

Comment 14 Fedora Update System 2019-01-14 03:02:43 UTC
python-pipdeptree-0.13.1-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-c34eb7a05a

Comment 15 Fedora Update System 2019-01-28 03:44:28 UTC
python-pipdeptree-0.13.1-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Robert-André Mauchin 🐧 2019-08-22 22:03:50 UTC
*** Bug 1741107 has been marked as a duplicate of this bug. ***

Comment 17 Patrik Kopkan 2019-08-23 13:59:59 UTC
Thank you and sorry


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