[Python-modules-commits] r32963 - in packages/wheel/trunk/debian (14 files)
barry at users.alioth.debian.org
barry at users.alioth.debian.org
Fri Jun 12 18:14:00 UTC 2015
Date: Friday, June 12, 2015 @ 18:13:59
Author: barry
Revision: 32963
* d/control:
- Bump Standards-Version with no other changes necessary.
- Add XS-Testsuite header for DEP-8 tests.
* d/tests: Added smoke and reproducible .whl file DEP-8 tests.
Added:
packages/wheel/trunk/debian/tests/
packages/wheel/trunk/debian/tests/control
packages/wheel/trunk/debian/tests/dummy/
packages/wheel/trunk/debian/tests/dummy/dummy/
packages/wheel/trunk/debian/tests/dummy/dummy/__init__.py
packages/wheel/trunk/debian/tests/dummy/dummy/no.py
packages/wheel/trunk/debian/tests/dummy/dummy/yes.py
packages/wheel/trunk/debian/tests/dummy/setup.py
packages/wheel/trunk/debian/tests/reproduce-2
packages/wheel/trunk/debian/tests/reproduce-3
packages/wheel/trunk/debian/tests/smoketest-2
packages/wheel/trunk/debian/tests/smoketest-3
Modified:
packages/wheel/trunk/debian/changelog
packages/wheel/trunk/debian/control
Modified: packages/wheel/trunk/debian/changelog
===================================================================
--- packages/wheel/trunk/debian/changelog 2015-06-12 16:43:36 UTC (rev 32962)
+++ packages/wheel/trunk/debian/changelog 2015-06-12 18:13:59 UTC (rev 32963)
@@ -1,6 +1,8 @@
wheel (0.24.0-2) UNRELEASED; urgency=medium
- * d/control: Bump Standards-Version with no other changes necessary.
+ * d/control:
+ - Bump Standards-Version with no other changes necessary.
+ - Add XS-Testsuite header for DEP-8 tests.
* d/rules:
- Add commented out DH_VERBOSE setting.
- Override the manpage date for reproducible builds. (Closes: #782405)
@@ -8,6 +10,7 @@
from Reiner Herrmann, with further refinements by Barry Warsaw based
on upstream pull request review. (Closes: #776026)
* d/watch: Use the pypi.debian.net redirector.
+ * d/tests: Added smoke and reproducible .whl file DEP-8 tests.
-- Barry Warsaw <barry at debian.org> Wed, 04 Feb 2015 16:44:43 -0500
Modified: packages/wheel/trunk/debian/control
===================================================================
--- packages/wheel/trunk/debian/control 2015-06-12 16:43:36 UTC (rev 32962)
+++ packages/wheel/trunk/debian/control 2015-06-12 18:13:59 UTC (rev 32963)
@@ -18,6 +18,7 @@
Standards-Version: 3.9.6
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/wheel/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/wheel/trunk/
+XS-Testsuite: autopkgtest
Package: python-wheel
Architecture: all
Added: packages/wheel/trunk/debian/tests/control
===================================================================
--- packages/wheel/trunk/debian/tests/control (rev 0)
+++ packages/wheel/trunk/debian/tests/control 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,11 @@
+Tests: smoketest-2
+Depends: @, python-setuptools
+
+Tests: smoketest-3
+Depends: @, python3-setuptools
+
+Tests: reproduce-2
+Depends: @, python-setuptools, coreutils
+
+Tests: reproduce-3
+Depends: @, python3-setuptools, coreutils
Added: packages/wheel/trunk/debian/tests/dummy/dummy/__init__.py
===================================================================
--- packages/wheel/trunk/debian/tests/dummy/dummy/__init__.py (rev 0)
+++ packages/wheel/trunk/debian/tests/dummy/dummy/__init__.py 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,4 @@
+__version__ = '0.0'
+
+from dummy.no import no
+from dummy.yes import yes
Added: packages/wheel/trunk/debian/tests/dummy/dummy/no.py
===================================================================
--- packages/wheel/trunk/debian/tests/dummy/dummy/no.py (rev 0)
+++ packages/wheel/trunk/debian/tests/dummy/dummy/no.py 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,4 @@
+from __future__ import print_function
+
+def no():
+ print('no')
Added: packages/wheel/trunk/debian/tests/dummy/dummy/yes.py
===================================================================
--- packages/wheel/trunk/debian/tests/dummy/dummy/yes.py (rev 0)
+++ packages/wheel/trunk/debian/tests/dummy/dummy/yes.py 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,4 @@
+from __future__ import print_function
+
+def yes():
+ print('yes')
Added: packages/wheel/trunk/debian/tests/dummy/setup.py
===================================================================
--- packages/wheel/trunk/debian/tests/dummy/setup.py (rev 0)
+++ packages/wheel/trunk/debian/tests/dummy/setup.py 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,6 @@
+from setuptools import setup
+
+setup(name='dummy',
+ version='0.0',
+ packages=['dummy'],
+ )
Added: packages/wheel/trunk/debian/tests/reproduce-2
===================================================================
--- packages/wheel/trunk/debian/tests/reproduce-2 (rev 0)
+++ packages/wheel/trunk/debian/tests/reproduce-2 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# For reproducible .whl files. See bug ##776026.
+export WHEEL_FORCE_TIMESTAMP=315576060
+
+# Change to the directory with the setup.py.
+cd debian/tests/dummy
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python setup.py bdist_wheel -b $ADTTMP/build-1 -d $ADTTMP/wheels-1
+
+sleep 5
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python setup.py bdist_wheel -b $ADTTMP/build-2 -d $ADTTMP/wheels-2
+
+# For reproducibility, ensure that the checksums are identical.
+sum1=`sha256sum $ADTTMP/wheels-1/dummy-0.0-py2-none-any.whl | cut -c 1-64`
+sum2=`sha256sum $ADTTMP/wheels-2/dummy-0.0-py2-none-any.whl | cut -c 1-64`
+
+echo $sum1
+echo $sum2
+test $sum1 = $sum2
Added: packages/wheel/trunk/debian/tests/reproduce-3
===================================================================
--- packages/wheel/trunk/debian/tests/reproduce-3 (rev 0)
+++ packages/wheel/trunk/debian/tests/reproduce-3 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# For reproducible .whl files. See bug ##776026.
+export WHEEL_FORCE_TIMESTAMP=315576060
+
+# Change to the directory with the setup.py.
+cd debian/tests/dummy
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python3 setup.py bdist_wheel -b $ADTTMP/build-1 -d $ADTTMP/wheels-1
+
+sleep 5
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python3 setup.py bdist_wheel -b $ADTTMP/build-2 -d $ADTTMP/wheels-2
+
+# For reproducibility, ensure that the checksums are identical.
+sum1=`sha256sum $ADTTMP/wheels-1/dummy-0.0-py3-none-any.whl | cut -c 1-64`
+sum2=`sha256sum $ADTTMP/wheels-2/dummy-0.0-py3-none-any.whl | cut -c 1-64`
+
+echo $sum1
+echo $sum2
+test $sum1 = $sum2
Added: packages/wheel/trunk/debian/tests/smoketest-2
===================================================================
--- packages/wheel/trunk/debian/tests/smoketest-2 (rev 0)
+++ packages/wheel/trunk/debian/tests/smoketest-2 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Change to the directory with the setup.py.
+cd debian/tests/dummy
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python setup.py bdist_wheel -b $ADTTMP/build -d $ADTTMP/wheels
+
+# Guarantee that the source of the dummy package won't be on sys.path.
+cd $ADTTMP
+
+# See if the .whl has the contents we expect.
+export PYTHONPATH=wheels/dummy-0.0-py2-none-any.whl
+yes=`python -c "import dummy.yes; dummy.yes()"`
+no=`python -c "import dummy.no; dummy.no()"`
+
+echo "yes = $yes"
+echo "no = $no"
+test $yes = 'yes' -a $no = 'no'
Added: packages/wheel/trunk/debian/tests/smoketest-3
===================================================================
--- packages/wheel/trunk/debian/tests/smoketest-3 (rev 0)
+++ packages/wheel/trunk/debian/tests/smoketest-3 2015-06-12 18:13:59 UTC (rev 32963)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Change to the directory with the setup.py.
+cd debian/tests/dummy
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python3 setup.py bdist_wheel -b $ADTTMP/build -d $ADTTMP/wheels
+
+# Guarantee that the source of the dummy package won't be on sys.path.
+cd $ADTTMP
+
+# See if the .whl has the contents we expect.
+export PYTHONPATH=wheels/dummy-0.0-py3-none-any.whl
+yes=`python3 -c "import dummy.yes; dummy.yes()"`
+no=`python3 -c "import dummy.no; dummy.no()"`
+
+echo "yes = $yes"
+echo "no = $no"
+test $yes = 'yes' -a $no = 'no'
More information about the Python-modules-commits
mailing list