[Python-modules-commits] r21200 - in packages/python-flexmock/trunk/debian (control rules watch)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Fri Apr 13 18:20:08 UTC 2012
Date: Friday, April 13, 2012 @ 18:20:07
Author: stefanor
Revision: 21200
Upstream replaced their pypi tarball with one that includes tests. So run em
Added:
packages/python-flexmock/trunk/debian/watch
Modified:
packages/python-flexmock/trunk/debian/control
packages/python-flexmock/trunk/debian/rules
Modified: packages/python-flexmock/trunk/debian/control
===================================================================
--- packages/python-flexmock/trunk/debian/control 2012-04-13 17:47:14 UTC (rev 21199)
+++ packages/python-flexmock/trunk/debian/control 2012-04-13 18:20:07 UTC (rev 21200)
@@ -6,7 +6,11 @@
Build-Depends:
debhelper (>= 8),
python-all (>= 2.6.6-3~),
- python3-all (>= 3.1.2)
+ python-nose,
+ python-pytest,
+ python3-all (>= 3.1.2),
+ python3-nose,
+ python3-pytest
Standards-Version: 3.9.3
Homepage: http://has207.github.com/flexmock/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-flexmock/trunk/
Modified: packages/python-flexmock/trunk/debian/rules
===================================================================
--- packages/python-flexmock/trunk/debian/rules 2012-04-13 17:47:14 UTC (rev 21199)
+++ packages/python-flexmock/trunk/debian/rules 2012-04-13 18:20:07 UTC (rev 21200)
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
-PYVERS = $(shell pyversions -r)
-PY3VERS = $(shell py3versions -r)
+PYVERS = $(shell pyversions -rv)
+PY3VERS = $(shell py3versions -rv)
%:
dh $@ --with python2,python3
@@ -9,20 +9,32 @@
override_dh_auto_build:
set -ex; \
for py in $(PYVERS) $(PY3VERS); do \
- $$py setup.py build; \
+ python$$py setup.py build; \
done
+override_dh_auto_test:
+ set -ex; \
+ export PYTHONPATH=.; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ python$$py tests/flexmock_unittest_test.py; \
+ nosetests-$$py tests/flexmock_nose_test.py; \
+ py.test-$$py tests/flexmock_pytest_test.py; \
+ done
+
override_dh_auto_install:
set -ex; \
for py in $(PYVERS); do \
- $$py setup.py install --skip-build --root debian/python-flexmock \
- --install-layout=deb; \
+ python$$py setup.py install --skip-build \
+ --root debian/python-flexmock \
+ --install-layout=deb; \
done
set -ex; \
for py in $(PY3VERS); do \
- $$py setup.py install --skip-build --root debian/python3-flexmock \
- --install-layout=deb; \
+ python$$py setup.py install --skip-build \
+ --root debian/python3-flexmock \
+ --install-layout=deb; \
done
override_dh_auto_clean:
+ find . -name '*.pyc' -delete
rm -rf build
Added: packages/python-flexmock/trunk/debian/watch
===================================================================
--- packages/python-flexmock/trunk/debian/watch (rev 0)
+++ packages/python-flexmock/trunk/debian/watch 2012-04-13 18:20:07 UTC (rev 21200)
@@ -0,0 +1,3 @@
+version=3
+
+https://pypi.python.org/packages/source/f/flexmock/flexmock-(.+)\.tar\.gz
More information about the Python-modules-commits
mailing list