Bug 1626733
Summary: | Review Request: python-nb2plots - Convert between Jupyter notebooks and sphinx docs | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jerry James <loganjerry> |
Component: | Package Review | Assignee: | Robert-André Mauchin 🐧 <zebob.m> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | package-review, zebob.m |
Target Milestone: | --- | Flags: | zebob.m:
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: | 2018-09-21 05:31:11 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
Jerry James
2018-09-08 00:20:46 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 Also you build the docs but you're not installing it anywhere. 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 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 Seems ok, package approved. (fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/python-nb2plots python-nb2plots-0.6-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c8dda0053d 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 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. |