Bug 1020014

Summary: Review Request: python-pylcdsysinfo - Python interface to Coldtears Electronics LCD Sys Info device
Product: [Fedora] Fedora Reporter: Johan Swensson <kupo>
Component: Package ReviewAssignee: Michael Schwendt <bugs.michael>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: i, notting, package-review
Target Milestone: ---Flags: bugs.michael: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pylcdsysinfo-0-0.8.20131014git.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-10 07:33:27 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 Johan Swensson 2013-10-16 19:08:40 UTC
Spec URL: http://kupo.se/pub/review/pylcdsysinfo.spec
SRPM URL: http://kupo.se/pub/review/pylcdsysinfo-0.0.1-5.20131014git98e1b80.fc19.src.rpm
Description: LCD Sys Info is an USB LCD gadget which display system and environmental information or pictures from your computer.

Fedora Account System Username: opuk

Comment 1 Johan Swensson 2013-10-16 19:47:12 UTC
Koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=6066487

Comment 2 Christopher Meng 2013-10-17 15:12:09 UTC
A template of mine:

http://cicku.me/python-pygit2.spec

1. BuildRequires:  python2-devel

AND

BuildRequires:  python-setuptools

2. No %build? Kidding?

%{__python2} setup.py build

3. Ask upstream to tag their project.

Comment 4 Till Maas 2013-10-20 21:09:44 UTC
It seems to me that the version is made up, because upstream does not provide one. Please use "0" then instead of "0.0.1" - "0" is afaik the lowest possible version.

Also the release should be formed like 0.%{X}.%{alphatag}, because it is a pre-release (see the kismet example):
https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Package_Versioning

Comment 5 Johan Swensson 2013-10-21 11:30:22 UTC
Spec URL: http://kupo.se/pub/review/pylcdsysinfo.spec
SRPM URL: http://kupo.se/pub/review/pylcdsysinfo-0-0.7.20131014git.fc19.src.rpm
Koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=6083347

%changelog
* Mon Oct 21 2013 Johan Swensson <kupo> - 0-0.7.20131014git
- Changed version string to comply with guidelines
- Updated changelog entires to reflect the corrected version string

Comment 6 Johan Swensson 2013-10-23 05:29:36 UTC
Hm, come of think of it I probably should have named this package python-pylcdsysinfo. I'll wait for feedback before doing anything.

Comment 7 Michael Schwendt 2013-10-23 11:16:29 UTC
Yes, the modern naming guidelines mandate the "python-" prefix for the %{parent}-%{child} relationship when it's a Python Module.

  https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Addon_Packages_.28python_modules.29

  https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Addon_Packages_.28General.29


There used to be an exception for projects with a "py" or "Py" prefix, but it has been removed, albeit incompletely, see:
https://lists.fedoraproject.org/pipermail/packaging/2013-October/009674.html

Comment 8 Johan Swensson 2013-10-23 12:16:16 UTC
What would be the preferred way to do this? Close this review and file a new one with the correct name or simply rename it and post the new SRPM and spec in this review?

Comment 9 Christopher Meng 2013-10-23 12:19:04 UTC
Just change it here is OK.

Avoid creating dups again ;)

Comment 10 Michael Schwendt 2013-10-23 16:13:23 UTC
The ticket title can be edited, too, so renaming during review is possible.

Comment 11 Michael Schwendt 2013-10-23 19:10:33 UTC
One of the most helpful things about the fedora-review tool is its "license check" feature:

  GPL (v3 or later)
  -----------------
  /var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/pylcdsysinfo-98e1b802b1cf8ce7a7482343d85b9449b4f8459e/pylcdsysinfo.py

Same for USAGE.txt. That would be "License: GPLv3+" in the spec file, but the README.md at the bottom says "GPL v3", so asking for clarification would be justified.


Upstream git mentions fixes for Python 3. Is it Python 2 only so far? Or does it work with Python 3 yet? If so, a python3-* subpackage could be built.


I do not possess the hardware to test with, so for the optional run-time testing I've only verified that module imports.

Comment 12 Johan Swensson 2013-10-23 20:19:46 UTC
I will check that with upstream.

Upstream does support Python 3, however the required pyusb is not packaged for Python 3 yet. I have pinged the maintainer of that package recently asking to add support for it. I will file a bugzilla about it.

Comment 13 Johan Swensson 2013-10-24 09:02:23 UTC
Upstream says license is GPLv3 only.
Package is now renamed.

Spec URL: http://kupo.se/pub/review/python-pylcdsysinfo.spec
SRPM URL: http://kupo.se/pub/review/python-pylcdsysinfo-0-0.8.20131014git.fc19.src.rpm

Comment 14 Johan Swensson 2013-10-24 09:07:47 UTC
(In reply to Johan Swensson from comment #12)
>  I will file a bugzilla about it.

https://bugzilla.redhat.com/show_bug.cgi?id=1022851

Comment 15 Michael Schwendt 2013-10-24 20:51:26 UTC
That's a clean update (judging about it based on the diff).

APPROVED

Comment 16 Johan Swensson 2013-10-25 12:14:02 UTC
New Package SCM Request
=======================
Package Name: python-pylcdsysinfo
Short Description: Python interface to Coldtears Electronics LCD Sys Info device
Owners: opuk
Branches: f18 f19 f20
InitialCC:

Comment 17 Gwyn Ciesla 2013-10-25 12:36:22 UTC
Git done (by process-git-requests).

Comment 18 Fedora Update System 2013-10-29 20:38:36 UTC
python-pylcdsysinfo-0-0.8.20131014git.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-pylcdsysinfo-0-0.8.20131014git.fc20

Comment 19 Fedora Update System 2013-10-30 17:10:51 UTC
python-pylcdsysinfo-0-0.8.20131014git.fc20 has been pushed to the Fedora 20 testing repository.

Comment 20 Fedora Update System 2013-11-10 07:33:27 UTC
python-pylcdsysinfo-0-0.8.20131014git.fc20 has been pushed to the Fedora 20 stable repository.