Bug 1361340 - Review Request: python-fadvise - Python interface to posix_fadvise(2)
Summary: Review Request: python-fadvise - Python interface to posix_fadvise(2)
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:
TreeView+ depends on / blocked
 
Reported: 2016-07-28 21:08 UTC by Piotr Popieluch
Modified: 2016-09-27 03:50 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-12 12:21:48 UTC
Type: ---
Embargoed:
zbyszek: fedora-review+


Attachments (Terms of Use)

Description Piotr Popieluch 2016-07-28 21:08:49 UTC
Spec URL: https://piotrp.fedorapeople.org/python-fadvise.spec
SRPM URL: https://piotrp.fedorapeople.org/python-fadvise-4.0.0-1.fc24.src.rpm

Description:
python-fadvise is a Python interface to posix_fadvise(2) which is used to
predeclare an access pattern for file data in order that the kernel may make
informed decisions regarding (but not limited to) scheduling I/O and caching.

It uses a private C extension module to invoke the underlying syscall. In
addition, it provides a simple client so that advice may be given via the
command-line.

Fedora Account System Username: piotrp

Comment 1 Igor Gnatenko 2016-08-08 10:56:19 UTC
> %{python2_sitearch}
don't own directory.

Comment 2 Piotr Popieluch 2016-08-08 19:57:17 UTC
(In reply to Igor Gnatenko from comment #1)
> > %{python2_sitearch}
> don't own directory.

aj.. this should be better
> %{python2_sitearch}/*

spec/srpm updated, same url.

Comment 3 Zbigniew Jędrzejewski-Szmek 2016-08-11 02:21:39 UTC
Why don't you just build from the github tarball? That's simpler than mucking around with pypi and a separate license file [https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL#Git_Tags].

It isn't strictly required, but it's considered good practice to specify more specific patterns in %files:
%{python2_sitearch}/%{srcname}/
%{python2_sitearch}/%{srcname}-egg.info...

I would be much much better to not install a private module in the top level python namespace: /usr/lib/python2.7/site-packages/_fadvise.so should become /usr/lib/python2.7/site-packages/fadvise/_fadvise.so. Of course this is an upstream issue, but maybe you could try to work with them to fix this.
Actually patching this is trivial:
1. move the .so file
2. change from _fadvise import ... → from ._fadvise import ...

There is no man page, and pyadvise --help isn't exactly verbose. It would be nice to extend the description in --help.

Comment 4 Piotr Popieluch 2016-08-12 22:42:24 UTC
Thanks for reviewing.

I've switched to github source.

Made %files more specific. 

The pyadvise script got dropped: https://github.com/lamby/python-fadvise/issues/1

I'm thinking on how to improve the api, I'll also move _fadvise.so. 

Updated spec and srpm for now:
Spec URL: https://piotrp.fedorapeople.org/python-fadvise.spec
SRPM URL: https://piotrp.fedorapeople.org/python-fadvise-4.0.1-1.fc24.src.rpm

Comment 5 Zbigniew Jędrzejewski-Szmek 2016-08-13 16:15:40 UTC
+ package name is OK
+ latest version
+ license is acceptable (BSD)
+ license is specified correctly
+ modern python packaging is used
+ %python_provide macro is used
+ python3 support is not needed
+ P/R/BR look OK
+ builds and install OK

Package is APPROVED.

Comment 6 Gwyn Ciesla 2016-08-15 15:04:31 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python-fadvise

Comment 7 Fedora Update System 2016-09-02 18:39:19 UTC
python-fadvise-5.0.0-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d6fcbadcf1

Comment 8 Fedora Update System 2016-09-02 18:39:49 UTC
python-fadvise-5.0.0-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-19e20103d3

Comment 9 Fedora Update System 2016-09-02 18:40:19 UTC
python-fadvise-5.0.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-25d018f640

Comment 10 Fedora Update System 2016-09-04 01:19:34 UTC
python-fadvise-5.0.0-1.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-25d018f640

Comment 11 Fedora Update System 2016-09-04 01:21:53 UTC
python-fadvise-5.0.0-1.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-19e20103d3

Comment 12 Fedora Update System 2016-09-04 01:24:13 UTC
python-fadvise-5.0.0-1.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-d6fcbadcf1

Comment 13 Fedora Update System 2016-09-09 21:49:47 UTC
python-fadvise-5.0.0-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2016-09-11 13:40:30 UTC
python-fadvise-5.0.0-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-74ea06d61c

Comment 15 Fedora Update System 2016-09-11 13:48:13 UTC
python-fadvise-5.0.0-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-30d3474e91

Comment 16 Fedora Update System 2016-09-12 06:50:56 UTC
python-fadvise-5.0.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2016-09-12 07:17:45 UTC
python-fadvise-5.0.0-1.el6 has been pushed to the Fedora EPEL 6 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-EPEL-2016-74ea06d61c

Comment 18 Fedora Update System 2016-09-12 07:19:14 UTC
python-fadvise-5.0.0-1.el7 has been pushed to the Fedora EPEL 7 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-EPEL-2016-30d3474e91

Comment 19 Fedora Update System 2016-09-12 12:21:46 UTC
python-fadvise-5.0.0-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2016-09-27 03:47:12 UTC
python-fadvise-5.0.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2016-09-27 03:50:59 UTC
python-fadvise-5.0.0-1.el7 has been pushed to the Fedora EPEL 7 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.