Update debian/rules to run `./setup.py test` during build

Bug #823288 reported by Jason Gerard DeRose on 2011-08-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Microfiber
High
Michael Chang

Bug Description

During Barry Warsaw's App Developer Week session, he mentioned how to make debian/rules run `setup.py test` during a build, so that tests are run during daily Launchpad builds and so on. Here's the IRC log:

https://wiki.ubuntu.com/MeetingLogs/appdevweek1104/RockSolidPython

And an example debian/rules (but we need Python3 only):

http://bazaar.launchpad.net/~barry/+junk/adw/view/head:/debian/rules

Also see equivalent bug in `filestore`:

https://bugs.launchpad.net/filestore/+bug/822413

Related branches

lp:~thenewme91/microfiber/lp823288
Jason Gerard DeRose: Approve on 2011-08-10
Michael Chang (thenewme91) wrote :

Initially, the project failed to build from source (FTBFS) upon adding the tests to the build proces; upon inspecting the logs, it appears that debhelper was calling python3.1 to run tests when only python3.2 was installed.

Updating debian/control to include X-Python-Version and X-Python3-Version headers (instead of the outdated XS-Python-Version header, as per the Debian Python Policy[0]) makes it build again.

[0] http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html

Michael Chang (thenewme91) wrote :

Merge request submitted, although not sure if I should have split the changes into two branches/requests (one for debian/rules, one for debian/control).

Changed in microfiber:
status: In Progress → Fix Committed
Changed in microfiber:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers