Bug 1626733 - Review Request: python-nb2plots - Convert between Jupyter notebooks and sphinx docs
Summary: Review Request: python-nb2plots - Convert between Jupyter notebooks and sphin...
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:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-08 00:20 UTC by Jerry James
Modified: 2018-09-21 05:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-21 05:31:11 UTC
Type: ---
Embargoed:
zebob.m: fedora-review+


Attachments (Terms of Use)

Description Jerry James 2018-09-08 00:20:46 UTC
Spec URL: https://jjames.fedorapeople.org/python-nb2plots/python-nb2plots.spec
SRPM URL: https://jjames.fedorapeople.org/python-nb2plots/python-nb2plots-0.6-1.fc30.src.rpm
Fedora Account System Username: jjames
Description: This package contains tools for converting from Jupyter notebooks to ReST for Sphinx, and vice versa.

This is the final package needed to update python-networkx to its latest version.  As with the other python packages I have submitted for review recently, we need the python 2 subpackage for now, because the python 2 version of networkx is still needed for sagemath, which is still stuck on python 2.

Comment 1 Robert-André Mauchin 🐧 2018-09-08 15:37:48 UTC
 - You must install the LICENSE file with %license in %files

 - Install Changelog with %doc

 - Seems Python 3 files are installed in Python 2 directories:


python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/__init__.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/_version.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/codelinks.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/commands.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/converters.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/doctree2md.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/doctree2nb.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/doctree2py.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/from_notebook.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/ipython_shim.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/mpl_interactive.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/nbplots.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/runroles.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)
python2-nb2plots.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/nb2plots/__pycache__/sphinx2foos.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7)

   The setup.py only mention compatibility with Python 3, not Python 2.

 - Remove the shebangs from:

python2-nb2plots.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/nb2plots/from_notebook.py python 
python2-nb2plots.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/nb2plots/from_notebook.py 644 python 

python3-nb2plots.noarch: E: wrong-script-interpreter /usr/lib/python3.7/site-packages/nb2plots/from_notebook.py python 
python3-nb2plots.noarch: E: non-executable-script /usr/lib/python3.7/site-packages/nb2plots/from_notebook.py 644 python

Comment 2 Robert-André Mauchin 🐧 2018-09-08 16:02:01 UTC
Also you build the docs but you're not installing it anywhere.

Comment 3 Robert-André Mauchin 🐧 2018-09-08 16:20:12 UTC
The pycache issue seems to be caused by the redefinition of PATH and PYTHONPATH before %install

export PATH=$PWD/build/scripts-%{python3_version}:$PATH
export PYTHONPATH=$PWD/build/lib

Comment 4 Jerry James 2018-09-08 22:12:49 UTC
Thank you for the review!  I obviously rushed that one too much.  I have fixed all of the problems you identified.  It is true that setup.py does not mention python 2, and I sincerely hope that the python 2 subpackage is very short-lived.  In any case, it passes its test suite and appears to otherwise work correctly with python 2.  New URLs:

Spec URL: https://jjames.fedorapeople.org/python-nb2plots/python-nb2plots.spec
SRPM URL: https://jjames.fedorapeople.org/python-nb2plots/python-nb2plots-0.6-2.fc30.src.rpm

Comment 5 Robert-André Mauchin 🐧 2018-09-09 14:12:42 UTC
Seems ok, package approved.

Comment 6 Igor Raits 2018-09-09 14:35:35 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-nb2plots

Comment 7 Fedora Update System 2018-09-10 02:19:21 UTC
python-nb2plots-0.6-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c8dda0053d

Comment 8 Fedora Update System 2018-09-11 06:14:03 UTC
python-nb2plots-0.6-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-2018-c8dda0053d

Comment 9 Fedora Update System 2018-09-21 05:31:11 UTC
python-nb2plots-0.6-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, 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.