Bug 1394250 - Review Request: python-async-timeout - asyncio-compatible timeout context manager
Summary: Review Request: python-async-timeout - asyncio-compatible timeout context man...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1381750 1391287
TreeView+ depends on / blocked
 
Reported: 2016-11-11 13:26 UTC by Othman Madjoudj
Modified: 2016-12-10 00:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 15:55:19 UTC
Type: ---
zbyszek: fedora-review+


Attachments (Terms of Use)

Description Othman Madjoudj 2016-11-11 13:26:18 UTC
Spec URL: https://athmane.fedorapeople.org/pkgs/python-async_timeout.spec
SRPM URL: https://athmane.fedorapeople.org/pkgs/python-fluidity-sm-0.2.0-1.fc20.src.rpm
Description:
asyncio-compatible timeout context manager

Fedora Account System Username: athmane

Comment 1 Othman Madjoudj 2016-11-11 13:29:26 UTC
rpmlint:

$ rpmlint SPECS/python-async_timeout.spec  SRPMS/python-async_timeout-1.1.0-1.fc25.src.rpm RPMS/noarch/python3-async_timeout-1.1.0-1.fc25.noarch.rpm 
python-async_timeout.src: W: spelling-error Summary(en_US) asyncio -> Asuncion
python-async_timeout.src: W: summary-not-capitalized C asyncio-compatible timeout context manager
python-async_timeout.src: W: spelling-error %description -l en_US asyncio -> Asuncion
python3-async_timeout.noarch: W: spelling-error Summary(en_US) asyncio -> Asuncion
python3-async_timeout.noarch: W: summary-not-capitalized C asyncio-compatible timeout context manager
python3-async_timeout.noarch: W: spelling-error %description -l en_US asyncio -> Asuncion
2 packages and 1 specfiles checked; 0 errors, 6 warnings.

Comment 3 Zbigniew Jędrzejewski-Szmek 2016-11-12 18:33:43 UTC
%description should say what this package does. Not everybody is versed with upstream python development enough to immediately understand what asyncio is and what this package is useful for.

The underscore should be replaced with a dash in the name ("python-async-timeout") [https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Separators].

Any chance you could submit pytest_aiohttp for review too? Sounds like a useful package for asyncio users.

It'd be nice to use a more precise glob in %files, something like
%{python3_sitelib}/async_timeout/
%{python3_sitelib}/async_timeout-*%{python3_version}.egg-info

Comment 4 Othman Madjoudj 2016-11-13 19:04:32 UTC
Thanks alot for reviewing, please find below the update.

Wrt underscore, IMHO it's only forbidden if it's a separator, in our case it's part of the name, we have python modules and other packages that contain _ (I myself have couple Apache httpd modules).

It can be checked with: 

dnf repoquery --qf '%{name}' python\*_\*
dnf repoquery --qf '%{name}' \*_\*

I'll submit pytest_aiohttp soon, but for now we need this pkg in order to fix python3-aiohttp issues, which is breaking GNS3 (see blocked bugs)


SPEC: https://athmane.fedorapeople.org/pkgs/python-async_timeout.spec
SRPM: https://athmane.fedorapeople.org/pkgs/python-async_timeout-1.1.0-2.fc25.src.rpm

Comment 5 Zbigniew Jędrzejewski-Szmek 2016-11-13 23:21:19 UTC
"_" was commonly used, but nowadays "-" is preferred. There's no strict rule, but if you e.g. look at python packages it's pretty clear: F24 has 3597 'python*' packages, and among that only 84 with an underscore. "Package names should be in lower case and use dashes in preference to underscores." (BTW, the upstream is confused too, since they use async-timeout for the the url and directory names...)

OK, looks good apart from the name. There is no "MUST" guidelines, but please consider changing it.

Comment 6 Igor Gnatenko 2016-11-16 08:08:47 UTC
* I would prefer to name it `python-async-timeout`.
* Missing BR: pythonX-setuptools
* %{python3_sitelib}/async_timeout-*%{python3_version}.egg-info -> %{python3_sitelib}/async_timeout-*.egg-info/

Comment 8 Zbigniew Jędrzejewski-Szmek 2016-11-18 18:57:02 UTC
+ package name is OK ;)
+ license is acceptable (ASL 2.0)
+ license is specified correctly
+ builds and install OK
+ fedora-review is happy
+ provides/requires seem correct
+ python packaging macros are used
+ %python_provide is present
+ latest version

Package is APPROVED.

Comment 9 Gwyn Ciesla 2016-11-18 22:22:57 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python-async-timeout

Comment 10 Fedora Update System 2016-11-19 13:13:33 UTC
python-async-timeout-1.1.0-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-da89a216e8

Comment 11 Fedora Update System 2016-11-21 21:10:50 UTC
python-async-timeout-1.1.0-3.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-da89a216e8

Comment 12 Julien Enselme 2016-11-27 17:58:15 UTC
Can you push this package to fedora 24 too? I need it in one of my program.

Comment 13 Fedora Update System 2016-11-27 19:48:08 UTC
python-async-timeout-1.1.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-aea351b543

Comment 14 Othman Madjoudj 2016-11-27 19:49:54 UTC
Hi Julien, 

Pushed to f24 updates-testing

Comment 15 Fedora Update System 2016-11-28 09:33:50 UTC
python-async-timeout-1.1.0-3.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-aea351b543

Comment 16 Julien Enselme 2016-11-28 09:50:30 UTC
Thanks!

Comment 17 Fedora Update System 2016-12-01 15:55:19 UTC
python-async-timeout-1.1.0-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2016-12-10 00:25:36 UTC
python-async-timeout-1.1.0-3.fc24 has been pushed to the Fedora 24 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.