Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 452388 - Review Request: python-migrate - Schema migration tools for SQLAlchemy
Summary: Review Request: python-migrate - Schema migration tools for SQLAlchemy
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-06-21 20:24 UTC by Toshio Ernie Kuratomi
Modified: 2016-09-20 02:38 UTC (History)
5 users (show)

Fixed In Version: 0.4.4-4.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-07-17 21:16:43 UTC
lmacken: fedora-review+
kevin: fedora-cvs+

Attachments (Terms of Use)

Description Toshio Ernie Kuratomi 2008-06-21 20:24:29 UTC
Spec URL:

Schema migration tools for SQLAlchemy designed to support an agile approach
to database design and make it easier to keep development and production
databases in sync as schema changes are required.  It allows you to manage.
database change sets and database repository versioning.

Comment 1 Toshio Ernie Kuratomi 2008-06-21 20:26:01 UTC
Ricky and I are working on this together.  Reviewers, it's fine with me if he
works on modifying the package to finish the review as I'm going on vacation for
a bit more than a week.

Comment 2 Jason Tibbitts 2008-06-21 21:37:43 UTC
Hmm, 404 on that URL.  I used instead.

Unfortunately it doesn't build in mock on rawhide:

+ /usr/bin/python build
Traceback (most recent call last):
  File "", line 2, in <module>
    from setuptools import setup,find_packages
ImportError: No module named setuptools

I added a python-setuptools dependency and it builds OK.  With that added it
builds OK.  Full review forthcoming....

Comment 3 Jason Tibbitts 2008-06-21 22:27:54 UTC
Aside from the build error, which I'll just assume is fixed in order to progress
with this review, I note that /usr/bin/migrate is just begging for conflicts. 
While no package in Fedora provides it, a quick search shows that it's used in
at least one clustering environment, an HSM system, something Zope related, and
some user migration tools.  Is there any other reasonable choice of name that
could be used?

I note that there's a test suite in the tarball; it looks like it should be
possible to run this with sqlite, but I have no idea how or if it's at all
possible to do that at runtime.

A minor nit, I guess, but you might as well remove the unneeded comments left
over from the specfile template.

* source files match upstream:
* 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 not included upstream.
* latest version is being packaged.
X BuildRequires missing python-setuptools (at least in rawhide)
* %clean is present.
* package builds in mock (after adding python-setuptools dependency).
* package installs properly.
* rpmlint is silent.
* final provides and requires are sane:
   python-migrate = 0.4.4-1.fc10
   python(abi) = 2.5

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

Comment 4 Ricky Zhou 2008-07-07 01:01:10 UTC
I wasn't sure how to handle the possible /usr/bin/migrate conflict, but here's
an updated spec with some updated Requires and BuildRequires:

Spec URL:

I did look into the %check thing a bit, and it looks like the tests require the
py library ( which isn't in Fedora yet.  Once py
is in,
should work (python test gave errors - it looks like py.test doesn't
have any classes to work with setuptools).  Overall, py wasn't that much fun to
work with, and I'm not sure if it was worth the hackyness in the specfile with
the BuildRequires on python-sqlite2 and everything.  

Comment 5 Toshio Kuratomi 2008-07-07 17:12:22 UTC
I queried upstream about the name.  They aren't too worried about potential
conflicts (their reasoning is Debian has imported it with /usr/bin/migrate).  I
asked and they did say that sqlalchemy-migrate seemed like a good name if we
wanted to do that locally.

So I'm in favour of renaming migrate => sqlalchemy-migrate.

I looked at py.test as well but it wasn't trivial to package.  I could probably
get it working with some more work but I'm still swamped with post-vacation work
so I concur with holding off on that until py.test is included.

Comment 6 Toshio Ernie Kuratomi 2008-07-16 01:31:37 UTC
Okay, new package ready for review.

* Binary renamed to /usr/bin/sqlalchemy-migrate
* Check section present but commented out.  If we get py.test in we can look at
enabling it.
* BuildRequires picked up from ricky's update
* Extraneous comments removed

tibbs: I know you're going on vacation.  I think lmacken might have time to look
at this so you can enjoy yourself :-)

Comment 7 Luke Macken 2008-07-16 20:23:13 UTC
With regard to the naming issue, I'm also in favor of s/migrate/sqlalchemy-migrate/.

? rpmlint complaint: python-migrate.noarch: E: non-executable-script
/usr/lib/python2.5/site-packages/migrate/versioning/templates/manage.py_tmpl 0644
* Package name is OK, and I'd be fine with the s/migrate/sqlalchemy-migrate/
rename as well.
* Package meets the packaging guidelines
* License is valid and meets guidelines
* Specfile is clean
* Source file matches upstream
* Package successfully builds in mock
* Requires and BuildRequires are correct
* Package owns everything it creates
* Does not contain duplicate files
* Permissions are set properly
* %clean section exists
* consistent use of macros
* code, not content
* small amounts of documentation, no subpackage
* %docs do not effect runtime
* buildroot is wiped before installation
* filenames are all valid utf-8

I don't see the rpmlint "error" as an issue, since it is a template that turns
into a script once installed.

So, the rename is up to you guys -- whether we want python-migrate or
python-sqlalchemy-migrate (I tend to lean towards the latter).  Other than that...


Comment 8 Toshio Ernie Kuratomi 2008-07-16 22:48:58 UTC
Cool.  The package naming is a bit of a pain:

If we think of this as primarily a python module with a program attached to it
then it should be: python-migrate to follow the naming guidelines for python
modules (import migrate => python-migrate)

If we think of it as a program with most functionality implemented in a module,
then it could be named migrate or sqlalchemy-migrate.

debian has python-migrate.  Gentoo doesn't seem to have it packaged yet.  So I
think I'll leave it at python-migrate for now.

Comment 9 Toshio Ernie Kuratomi 2008-07-16 22:51:14 UTC
New Package CVS Request
Package Name: python-migrate
Short Description: Schema migration tools for SQLAlchemy
Owners: toshio lmacken ricky
Branches: F-8 F-9 devel EL-5 
Cvsextras Commits: yes

Comment 10 Kevin Fenzi 2008-07-17 00:17:26 UTC
cvs done.

Comment 11 Fedora Update System 2008-07-17 21:13:25 UTC
python-migrate-0.4.4-4.fc8 has been submitted as an update for Fedora 8

Comment 12 Fedora Update System 2008-07-17 21:14:49 UTC
python-migrate-0.4.4-4.fc9 has been submitted as an update for Fedora 9

Comment 13 Toshio Ernie Kuratomi 2008-07-17 21:16:43 UTC
Thanks all!

Built in devel.  Will be pushed to F8 and F9.

Comment 14 Fedora Update System 2008-07-24 02:12:11 UTC
python-migrate-0.4.4-4.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2008-07-24 02:13:05 UTC
python-migrate-0.4.4-4.fc8 has been pushed to the Fedora 8 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.