Bug 500928 - Review Request: python-sqlparse - Non-validating SQL parser for Python
Summary: Review Request: python-sqlparse - Non-validating SQL parser for Python
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Tibbitts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-14 21:56 UTC by Dave Malcolm
Modified: 2014-05-12 11:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-06-10 22:01:19 UTC
Type: ---
Embargoed:
j: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Dave Malcolm 2009-05-14 21:56:50 UTC
Spec URL: http://people.redhat.com/dmalcolm/python/python-sqlparse.spec
SRPM URL: http://people.redhat.com/dmalcolm/python/python-sqlparse-0.1.1-1.src.rpm
Description:
sqlparse is a tool for parsing SQL strings.  It can generate pretty-printed
renderings of SQL in various formats.

It is a python module, together with a command-line tool.


Successful scratch build in koji here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1355440

Comment 1 Jason Tibbitts 2009-06-04 05:25:52 UTC
Builds fine and rpmlint is silent.

There seems to be a test suite included in the tarball.  Any reason not to run it at build time?

* source files match upstream.  sha256sum:
   6049385a7032628c9a9bc2ac578ce1826e4179b0a8a9f33b535f022fabd8d3ea  
   sqlparse-0.1.1.tar.gz
* package meets naming and versioning guidelines.
* specfile is properly named, is cleanly written and uses macros consistently.
* summary is OK.
* description is OK.
* dist tag is present.
* build root is OK.
* license field matches the actual license.
* license is open source-compatible.
* license text included in package.
* latest version is being packaged.
* BuildRequires are proper.
* %clean is present.
* package builds in mock (rawhide, x86_64).
* package installs properly.
* rpmlint is silent.
* final provides and requires are sane:
   python-sqlparse = 0.1.1-1.fc11
  =
   /usr/bin/python
   python(abi) = 2.6

X A test suite is present but not run.
* owns the directories it creates.
* doesn't own any directories it shouldn't.
* no duplicates in %files.
* file permissions are appropriate.
* no generically named files
* code, not content.
* documentation is small, so no -doc subpackage is necessary.
* %docs are not necessary for the proper functioning of the package.

Comment 2 Dave Malcolm 2009-06-05 18:32:47 UTC
Thanks.

I've added a run of the test suite to the %build phase (rather than to the %install as the tests aren't part of the final installed payload; at least, not according to how upstream has written the setup.py)

Updated specfile here:
http://people.redhat.com/dmalcolm/python/python-sqlparse.spec

Updated SRPM here:
http://people.redhat.com/dmalcolm/python/python-sqlparse-0.1.1-2.src.rpm

Successful scratch build in Koji here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1395571

Comment 3 Jason Tibbitts 2009-06-05 18:53:05 UTC
Is there some reason the test suite won't run from a %check section?  It's rather odd to run it from %build.

Comment 4 Jason Tibbitts 2009-06-05 18:54:25 UTC
Oh, I see the confusion.  By "at build time" I meant "when the package is built", not literally "in the %build section".  rpm gives us a nice %check section for the purpose of running tests.

Comment 5 Dave Malcolm 2009-06-05 19:11:51 UTC
Aha!  (Clearly I need more coffee/sleep).  Thanks.

Updated specfile here:
http://people.redhat.com/dmalcolm/python/python-sqlparse.spec

Updated SRPM here:
http://people.redhat.com/dmalcolm/python/python-sqlparse-0.1.1-3.src.rpm

Successful scratch build in Koji here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1395636

Comment 6 Jason Tibbitts 2009-06-10 19:53:45 UTC
Looks good; the test suite runs fine:
  Ran 55 tests in 0.130s
  OK

APPROVED

Comment 7 Dave Malcolm 2009-06-10 20:02:50 UTC
Thanks

New Package CVS Request
=======================
Package Name: python-sqlparse
Short Description: Non-validating SQL parser for Python
Owners: dmalcolm
Branches: 
InitialCC: 

(i.e. just for devel for now)

Comment 8 Jason Tibbitts 2009-06-10 21:11:07 UTC
CVS done.

Comment 9 Dave Malcolm 2009-06-10 22:01:19 UTC
Built into devel (f12):
http://koji.fedoraproject.org/koji/taskinfo?taskID=1404160

Closing as NEXTRELEASE; thanks!

Comment 10 Honza Horak 2014-05-12 08:33:38 UTC
Package Change Request
======================
Package Name: python-sqlparse
New Branches: el6 epel7
Owners: hhorak

Comment 11 Gwyn Ciesla 2014-05-12 11:50:39 UTC
Git done (by process-git-requests).


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