Bug 1342839 - Review Request: python-pycodestyle - Python style guide checker
Summary: Review Request: python-pycodestyle - Python style guide checker
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mairi Dulaney
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1347160
TreeView+ depends on / blocked
 
Reported: 2016-06-05 19:01 UTC by Luke Macken
Modified: 2016-09-27 14:51 UTC (History)
8 users (show)

Fixed In Version: python-pycodestyle-2.0.0-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-27 00:39:39 UTC
Type: ---
Embargoed:
jdulaney: fedora-review+


Attachments (Terms of Use)

Description Luke Macken 2016-06-05 19:01:59 UTC
This is a re-review request for the renaming of the python-pep8 package.

Spec URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle.spec
SRPM URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle-2.0.0-1.fc25.src.rpm
Description: pycodestyle is a tool to check your Python code against some of the style conventions in PEP 8. 

Fedora Account System Username: lmacken,ianweller,decause

Comment 1 Mairi Dulaney 2016-06-05 19:39:08 UTC
I'll take a looksy at this.

Comment 2 Mairi Dulaney 2016-06-05 22:46:14 UTC
rpmlint looks like non-issues:

python2-pycodestyle.noarch: W: self-obsoletion python-pep8 obsoletes python-pep8
python2-pycodestyle.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/python2-pycodestyle/objects.inv
python2-pycodestyle.noarch: W: file-not-utf8 /usr/share/doc/python2-pycodestyle/objects.inv
python2-pycodestyle.noarch: W: no-manual-page-for-binary pycodestyle
python3-pycodestyle.noarch: W: self-obsoletion python3-pep8 obsoletes python3-pep8



Issues:

Remove the Group tag (also, it occurs to me this is something I ought to patch fedora-review to look for)

- Large documentation must go in a -doc subpackage. Large could be size
  (~1MB) or number of files.
  Note: Documentation size is 6840320 bytes in 102 files.
  See:
  http://fedoraproject.org/wiki/Packaging/Guidelines#PackageDocumentation

Comment 3 Luke Macken 2016-06-05 23:31:16 UTC
Issues resolved. Instead of having sphinx build html docs with a custom theme, I changed it to simply build a man page.


Spec URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle.spec
SRPM URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle-2.0.0-1.fc25.src.rpm

Comment 4 Mairi Dulaney 2016-06-06 01:07:45 UTC
Okay, looks good.  Approved.

Comment 5 Miro Hrončok 2016-06-06 12:38:18 UTC
The executable names do not follow the guidelines.

https://fedoraproject.org/wiki/Packaging:Python#Naming

Comment 6 Luke Macken 2016-06-07 22:56:43 UTC
Updated to adhere to the Python guidelines. /usr/bin/pycodestyle is now python2.

Spec URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle.spec
SRPM URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle-2.0.0-1.fc25.src.rpm

Comment 7 Miro Hrončok 2016-06-08 11:02:25 UTC
You should provide all -2, -2.7, -3, -3.5.

See http://python-rpm-porting.readthedocs.io/en/latest/tools.html#install and the following section there as well for a good idea how to do it.

John: I find your lack of good review disturbing, please follow https://fedoraproject.org/wiki/Packaging:ReviewGuidelines

Comment 8 Miro Hrončok 2016-06-08 11:03:49 UTC
It also seems like a good idea to provide /usr/bin/pep8* symlinks for backward compatibility.

Comment 9 Luke Macken 2016-06-08 17:35:59 UTC
(In reply to Miro Hrončok from comment #7)
> You should provide all -2, -2.7, -3, -3.5.
> 
> See http://python-rpm-porting.readthedocs.io/en/latest/tools.html#install
> and the following section there as well for a good idea how to do it.

Thanks for the link, that's a great resource. I'll work on fixing this up at some point today.

Comment 10 Nick Coghlan 2016-06-22 20:28:30 UTC
Note that pycodestyle doesn't provide compatibility shims for the pep8 Python import API and also differs in a couple of other ways that keep it from being a drop-in replacement for the pep8 package: https://github.com/PyCQA/pycodestyle/issues/549

So rather than obsoleting/providing python-pep8 here, it may be preferable to make them parallel installable for now, and then look at making python-pep8 depend on python-pycodestyle at some point in the future.

Comment 11 Ian Lee 2016-06-25 21:51:26 UTC
I agree with Nick, they each (pep8 and pycodestyle) provide different executables, and therefore the `Obsoletes` and `Provides` are probably not desirable.

~ Ian (Maintainer for pycodestyle / pep8)

Comment 12 Luke Macken 2016-08-04 13:25:45 UTC
- removed pep8 obsoletes/provides
- provide pycodestyle-{2,2.7,3,3.5}
- use autosetup and new python build + install macros

Spec URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle.spec
SRPM URL: https://lmacken.fedorapeople.org/rpms/python-pycodestyle-2.0.0-1.fc24.src.rpm

Comment 13 Gwyn Ciesla 2016-08-04 14:20:38 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python-pycodestyle

Comment 14 William Moreno 2016-08-11 19:54:37 UTC
This package have not been already builded?

Comment 15 Igor Gnatenko 2016-08-14 16:16:50 UTC
(In reply to William Moreno from comment #14)
> This package have not been already builded?

nope

ping

Comment 16 Miro Hrončok 2016-08-16 13:13:25 UTC
I have an update ready of one package, that needs this. Can I proceed with building the attached SRPM?

Comment 17 Ville Skyttä 2016-08-24 07:53:04 UTC
Ping Luke?

Comment 18 Ville Skyttä 2016-09-14 12:14:11 UTC
Luke, could you please take care of importing and building this, or let others know if you need/want help with it? There are people and packages waiting for this to appear in the repos.

Comment 19 Miro Hrončok 2016-09-15 19:31:44 UTC
I've just built this in rawhide.

Comment 20 Fedora Update System 2016-09-15 19:48:10 UTC
python-pycodestyle-2.0.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-dce2f89dec

Comment 21 Fedora Update System 2016-09-15 19:53:58 UTC
python-pycodestyle-2.0.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d87d3b3103

Comment 22 Fedora Update System 2016-09-15 19:55:22 UTC
python-pycodestyle-2.0.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4461dd7a21

Comment 23 Fedora Update System 2016-09-17 00:53:38 UTC
python-pycodestyle-2.0.0-2.fc23 has been pushed to the Fedora 23 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-2016-4461dd7a21

Comment 24 Fedora Update System 2016-09-17 00:53:41 UTC
python-pycodestyle-2.0.0-2.fc24 has been pushed to the Fedora 24 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-2016-d87d3b3103

Comment 25 Fedora Update System 2016-09-17 20:56:43 UTC
python-pycodestyle-2.0.0-2.fc25 has been pushed to the Fedora 25 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-2016-dce2f89dec

Comment 26 Fedora Update System 2016-09-18 19:29:22 UTC
python-flake8-import-order-0.9.2-1.fc25 python-pycodestyle-2.0.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-dce2f89dec

Comment 28 Fedora Update System 2016-09-20 20:00:39 UTC
python-flake8-import-order-0.9.2-1.fc25, python-pycodestyle-2.0.0-2.fc25 has been pushed to the Fedora 25 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-2016-dce2f89dec

Comment 29 Fedora Update System 2016-09-27 00:39:39 UTC
python-flake8-import-order-0.9.2-1.fc25, python-pycodestyle-2.0.0-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 30 Fedora Update System 2016-09-27 03:53:45 UTC
python-pycodestyle-2.0.0-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 31 Fedora Update System 2016-09-27 14:51:59 UTC
python-pycodestyle-2.0.0-2.fc23 has been pushed to the Fedora 23 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.