Bug 854333 - Review Request: python-transifex - Python API to transifex
Summary: Review Request: python-transifex - Python API to transifex
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Toshio Ernie Kuratomi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-04 16:34 UTC by Luis Bazan
Modified: 2012-10-01 03:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-18 20:03:25 UTC
Type: Bug
Embargoed:
a.badger: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
Fix runtime requirements (856 bytes, patch)
2012-09-04 19:00 UTC, Toshio Ernie Kuratomi
no flags Details | Diff
Fix unittests for change in slug exceptions (2.41 KB, patch)
2012-09-04 19:11 UTC, Toshio Ernie Kuratomi
no flags Details | Diff

Description Luis Bazan 2012-09-04 16:34:55 UTC
A python API to transifex

$ rpmlint -v python-transifex.spec
python-transifex.spec: I: checking-url http://pypi.python.org/packages/source/p/python-transifex/python-transifex-0.1.5.tar.gz (timeout 10 seconds)
0 packages and 1 specfiles checked; 0 errors, 0 warnings.

Koji

http://koji.fedoraproject.org/koji/taskinfo?taskID=4452852

Spec:
http://lbazan.fedorapeople.org/python-transifex.spec

SRPM:
http://lbazan.fedorapeople.org/python-transifex-0.1.5-1.fc17.src.rpm

Best Regards!

Comment 1 Toshio Ernie Kuratomi 2012-09-04 18:58:23 UTC
bf44d13a26c6b7f8fb4da7defae3c82c41d6163c4acb2bf23fe7fc9ceec5a5fa  python-transifex-0.1.5.tar.gz

Good:
* Named according to the guidelines
* License is BSD in spec and source
* spec file is legible
* Source matches upstream
* No locale files
* Not an elf library
* No bundled libraries
* Not relocatable
* Macros used consistently
* Code, not content
* No large docs
* %doc does not affect package runtime
* Not a gui app
* All filenames are UTF-8


Needswork:
* Please ask upstream to provide a license file in their next tarball.  Then we
  can include it in our rpms
* The tests are not being run by python setup.py test.  Use this instead:
  %check
  python -m unittest 'transifex.tests.api'
* When run, the unittests have two errors having to do with InvalidSlugs.  It
  looks like the upstream code changed to use a different exception and forgot
  to update their unittests.  I'll attach a patch for that
* python-requests is needed at both buildtime (for unittests) and runtime.  So you need a
  Requires: python-requests
* Incorrect requirements in upstream code:
  * python-mock is in upstream's requirements.txt and gets turned into an egg
    dependency because the setup.py reads requirements.txt into the setup.py
    install_requires section..  Egg dependencies would be checked anytime
    someone uses the module with setuptools.  Usually that means you should add
    it as a package Requires: However, in this case, it looks like python-mock
    is not needed at runtime -- only for unittests.
  * fabric is in the requirements.txt as well however it's not used in the
    distributed tarball.
  * According to the python-pip developers, requirements.txt and setup.py
    should keep their requirements separate.  I've filed a bug upstream:
    https://github.com/jakul/python-transifex/issues/2
    I'll attach the patch here.
* The transifex/tests/ directory only has buildtime unittests.  Not needed in
  the completed package.  In %install you can do:
  rm -rf %{buildroot}%{python-sitelib}/transifex/tests

Cosmetic:
* The Summary does not need to begin with "A".  You can change it to "Python API to transifex"

TODO
* rpmlint
* builds in koji
* Package owns all directories it creates and nothing more
* Permissions set properly

Comment 2 Toshio Ernie Kuratomi 2012-09-04 18:59:24 UTC
@Stanislav: Is this a review that you want to do?  I'm happy to leave it to you once I upload these patches or I can continue.

Comment 3 Toshio Ernie Kuratomi 2012-09-04 19:00:25 UTC
Created attachment 609763 [details]
Fix runtime requirements

Comment 4 Toshio Ernie Kuratomi 2012-09-04 19:11:50 UTC
Created attachment 609764 [details]
Fix unittests for change in slug exceptions

Submitted upstream:

https://github.com/jakul/python-transifex/pull/4

Comment 5 Pierre-YvesChibon 2012-09-04 20:39:07 UTC
@Toshio, I believe Stanislav is assigned to this review as it assigned to the wrong component.
Fixing this.

Comment 6 Pierre-YvesChibon 2012-09-04 20:39:46 UTC
@Luis I let you adjust the name of the review to fit the usual template.

Comment 7 Luis Bazan 2012-09-04 21:22:36 UTC
New Spec:

http://lbazan.fedorapeople.org/python-transifex.spec

SRPM: 

http://lbazan.fedorapeople.org/python-transifex-0.1.5-2.fc17.src.rpm

Koji:

http://koji.fedoraproject.org/koji/taskinfo?taskID=4454188

$ rpmlint -v python-transifex.spec 
python-transifex.spec: I: checking-url http://pypi.python.org/packages/source/p/python-transifex/python-transifex-0.1.5.tar.gz (timeout 10 seconds)
0 packages and 1 specfiles checked; 0 errors, 0 warnings.

Comment 8 Luis Bazan 2012-09-06 16:14:21 UTC
Koji:

http://koji.fedoraproject.org/koji/taskinfo?taskID=4461063

SPEC:

http://lbazan.fedorapeople.org/python-transifex.spec

SRPM:

http://lbazan.fedorapeople.org/python-transifex-0.1.6-1.fc17.src.rpm


The developer push new release 0.1.6 and this release fix the problem in comment 3 and comment 4

Regards!!

Tks Toshio :)

Comment 9 Toshio Ernie Kuratomi 2012-09-06 16:46:56 UTC
7282dfe87b0bdddcc9deeb4a94ae24e9f7755a7315ab28d7f1e894d8e706bdcf  python-transifex-0.1.6.tar.gz

Good:
* New source matches with upstream
* Summary taken care of
* unittests now being run
* unittest failures are fixed
* fabric dep removed
* extraneous python-mock and fabric deps fixed upstream
* builds in koji
* Permissions on directories are fine
* Package owns directories it creates and none created by other packages
* rpmlint clean:
  3 packages and 1 specfiles checked; 0 errors, 0 warnings.

NEEDSWORK:

* To delete the tests for the rpm package, you have to run the rm -rf %{buildroot}%{python-sitelib}/transifex/tests   after the tests directory is installed by python setup.py install.
* Still need a Requires: for python-request

Comment 10 Luis Bazan 2012-09-06 17:09:08 UTC
SPEC:
http://lbazan.fedorapeople.org/python-transifex.spec

SRPM:
http://lbazan.fedorapeople.org/python-transifex-0.1.6-2.fc17.src.rpm


Add Requires: python-requests
and change rm -rf tests
fix RPM BUIL ROOT to buildroot
and fix date in changelog

Comment 11 Toshio Ernie Kuratomi 2012-09-06 17:13:01 UTC
APPROVED

* All remaining problems have been fixed.  Congratulations!

Comment 12 Luis Bazan 2012-09-06 17:59:57 UTC
New Package SCM Request
=======================
Package Name: python-transifex
Short Description: Python API to transifex
Owners: lbazan
Branches: f17 el6
InitialCC:

Comment 13 Gwyn Ciesla 2012-09-11 17:52:59 UTC
Git done (by process-git-requests).

Comment 14 Gwyn Ciesla 2012-09-11 17:55:24 UTC
Whoops, please submit a Package Change Request for f18.

Comment 15 Luis Bazan 2012-09-11 18:52:31 UTC
New Package SCM Request
=======================
Package Name: python-transifex
Short Description: Python API to transifex
Owners: lbazan
Branches: f18 f17 el6
InitialCC:

Comment 16 Gwyn Ciesla 2012-09-11 18:59:42 UTC
See:

https://fedoraproject.org/wiki/Package_SCM_admin_requests#Package_Change_Requests_for_existing_packages

Do that, for just f18, and re-set cvs to ?.

Comment 17 Luis Bazan 2012-09-11 19:06:26 UTC
Package Change Request
======================
Package Name: python-transifex
New Branches: f18
Owners: lbazan
InitialCC: 

[package request for f18]

Comment 18 Gwyn Ciesla 2012-09-11 19:07:47 UTC
Git done (by process-git-requests).

Perfect, thanks!

Comment 19 Luis Bazan 2012-09-11 19:08:48 UTC
Best Regards!!

Comment 21 Fedora Update System 2012-09-17 22:33:48 UTC
python-transifex-0.1.6-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-14084/python-transifex-0.1.6-2.fc17

Comment 22 Fedora Update System 2012-09-17 22:34:25 UTC
python-transifex-0.1.6-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2012-13869/python-transifex-0.1.6-2.fc18

Comment 23 Fedora Update System 2012-09-17 22:35:04 UTC
python-transifex-0.1.6-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-12881/python-transifex-0.1.6-2.el6

Comment 24 Fedora Update System 2012-09-18 20:03:25 UTC
python-transifex-0.1.6-2.fc18 has been pushed to the Fedora 18 stable repository.

Comment 25 Fedora Update System 2012-09-26 09:13:11 UTC
python-transifex-0.1.6-2.fc17 has been pushed to the Fedora 17 stable repository.


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