[neon/backports-noble/python-wheel-noble/Neon/unstable] debian: backport from questing for sip6
Carlos De Maine
null at kde.org
Sun Aug 17 13:29:27 BST 2025
Git commit 78a0de95190f1506535062bea1fa0dd7c68a14fd by Carlos De Maine.
Committed on 17/08/2025 at 12:29.
Pushed by carlosdem into branch 'Neon/unstable'.
backport from questing for sip6
A +366 -0 debian/changelog
A +5 -0 debian/clean
A +60 -0 debian/control
A +47 -0 debian/copyright
A +1 -0 debian/patches/series
A +36 -0 debian/patches/tox-envpython
A +1 -0 debian/python-wheel-common.manpages
A +22 -0 debian/rules
A +1 -0 debian/source/format
A +2 -0 debian/source/lintian-overrides
A +15 -0 debian/tests/control
A +4 -0 debian/tests/dummy/dummy/__init__.py
A +4 -0 debian/tests/dummy/dummy/no.py
A +4 -0 debian/tests/dummy/dummy/yes.py
A +6 -0 debian/tests/dummy/setup.py
A +23 -0 debian/tests/reproduce-3
A +19 -0 debian/tests/smoketest-3
A +8 -0 debian/tests/unittests-3
A +10 -0 debian/upstream/metadata
A +3 -0 debian/watch
https://invent.kde.org/neon/backports-noble/python-wheel-noble/-/commit/78a0de95190f1506535062bea1fa0dd7c68a14fd
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..79470ad
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,366 @@
+wheel (0.46.1-2) unstable; urgency=medium
+
+ * Actually upload to unstable.
+
+ -- Stefano Rivera <stefanor at debian.org> Sat, 12 Apr 2025 18:38:59 -0400
+
+wheel (0.46.1-1) experimental; urgency=medium
+
+ * New upstream point release.
+ * Upload to unstable.
+ * python3-wheel-whl: Depend on python3-packaging-whl, until we can retire
+ both of these binary packages.
+
+ -- Stefano Rivera <stefanor at debian.org> Sat, 12 Apr 2025 17:59:42 -0400
+
+wheel (0.46.0-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Drop patch skip-macos-tests, superseded upstream.
+ * Bump Standards-Version to 4.7.2, no changes needed.
+ * Update copyright.
+ * Build-Depend on python3-packaging, it's no longer vendored.
+ * Bump python3-setuptools Build-Depends.
+ - Upload to experimental, as python3-setuptools (>=77) is not available in
+ unstable, yet.
+ * Patch: Run tox commands via {envpython}.
+
+ -- Stefano Rivera <stefanor at debian.org> Sat, 05 Apr 2025 18:24:08 -0400
+
+wheel (0.45.1-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Stefano Rivera <stefanor at debian.org> Sat, 23 Nov 2024 17:00:19 +0100
+
+wheel (0.45.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Stefano Rivera <stefanor at debian.org> Fri, 15 Nov 2024 09:32:45 +0100
+
+wheel (0.44.0-2) unstable; urgency=medium
+
+ * Add missing Build-Depends on python3-setuptools, required for tests.
+ * Bump Standards-Version to 4.7.0, no changes needed.
+ * Bump copyright years.
+
+ -- Stefano Rivera <stefanor at debian.org> Thu, 05 Sep 2024 12:00:50 +0200
+
+wheel (0.44.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Stefano Rivera <stefanor at debian.org> Mon, 12 Aug 2024 10:59:40 +0200
+
+wheel (0.43.0-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 13 Mar 2024 09:54:40 -0400
+
+wheel (0.42.0-2) unstable; urgency=medium
+
+ * Drop Depends on python3-distutils, no longer required.
+
+ -- Stefano Rivera <stefanor at debian.org> Tue, 05 Mar 2024 09:16:51 -0400
+
+wheel (0.42.0-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 29 Nov 2023 17:27:17 +0000
+
+wheel (0.41.2-1) unstable; urgency=medium
+
+ * New upstream point release.
+
+ -- Stefano Rivera <stefanor at debian.org> Fri, 22 Sep 2023 22:40:48 +0530
+
+wheel (0.41.0-2) unstable; urgency=medium
+
+ * Upload to unstable.
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 02 Aug 2023 18:04:16 +0200
+
+wheel (0.41.0-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Revert tox 4 workarounds, dh-python now supports it.
+ * Bump dh-python Build-Depends, the version we need is still only in
+ experimental.
+
+ -- Stefano Rivera <stefanor at debian.org> Sun, 30 Jul 2023 14:28:15 +0200
+
+wheel (0.40.0-2) experimental; urgency=medium
+
+ * Correctly clean. (Closes: #1034079)
+
+ -- Stefano Rivera <stefanor at debian.org> Tue, 11 Apr 2023 14:11:59 -0400
+
+wheel (0.40.0-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Drop patch sphinx-manpage, superseded upstream.
+ * Migrate to pybuild-plugin-pyproject, upstream is using flit.
+ * Drop reproducible sphinx tweaks in debian/rules, it's now reproducible out
+ of the box.
+ * Bump tox Build-Dep, following upstream.
+ * Use pybuild --test-custom to drive tox, because we don't have a tox.ini.
+ * Use --installpkg to get around tox 4 requiring isolated builds.
+ * Update copyright (packaging is now vendored).
+ * Bump Standards-Version to 4.6.2, no changes needed.
+
+ -- Stefano Rivera <stefanor at debian.org> Sun, 26 Mar 2023 11:07:48 -0400
+
+wheel (0.38.4-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Drop patch docs-version-parser, superseded upstream.
+
+ -- Stefano Rivera <stefanor at debian.org> Thu, 10 Nov 2022 12:24:48 +0200
+
+wheel (0.38.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+ * Python 2.7 support was dropped, drop the provide.
+ * The wheel filename has changed, drop the breaks+replaces.
+ * Patch: Fix the documentation build version parser.
+
+ -- Stefano Rivera <stefanor at debian.org> Tue, 01 Nov 2022 15:17:01 +0200
+
+wheel (0.37.1-5) unstable; urgency=medium
+
+ * Prefer execute_after to overrides in debian/rules.
+ * Support the nodoc and nocheck build profiles.
+
+ -- Stefano Rivera <stefanor at debian.org> Tue, 18 Oct 2022 18:26:21 +0200
+
+wheel (0.37.1-4) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Bump debhelper from old 12 to 13.
+ * Apply multi-arch hints. + python3-wheel-whl: Add Multi-Arch: foreign.
+
+ -- Jelmer Vernooij <jelmer at debian.org> Sun, 16 Oct 2022 18:16:15 +0100
+
+wheel (0.37.1-3) unstable; urgency=medium
+
+ * Team upload
+
+ [ Scott Kitterman ]
+ * Add d/s/lintian-overrides for build-depends-on-python-dev-with-no-arch-any
+ since -dev packages are needed for tests
+
+ [ Emanuele Rocca ]
+ * Add PYTHONPATH to `python3 setup.py bdist_wheel` in d/rules to fix FTBFS
+ (Closes: #1019994)
+ * Update Standards-Version to 4.6.1
+
+ -- Emanuele Rocca <ema at debian.org> Sat, 24 Sep 2022 13:33:06 +0200
+
+wheel (0.37.1-2) unstable; urgency=medium
+
+ * Source-only upload.
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 12 Jan 2022 19:39:47 -0400
+
+wheel (0.37.1-1) unstable; urgency=medium
+
+ [ Stefano Rivera ]
+ * New upstream release.
+ * Add myself as an uploader.
+ * Update copyright.
+ * Bump Standards-Version to 4.6.0, no changes needed.
+ * Bump watch format to 4.
+ * Build upstream's RST manpage with Sphinx (requiring a patch).
+ * Run tests at build time with tox.
+ - Patch: Skip MacOS tests.
+ * Run test suite as an autopkgtest.
+ * Mark existing autopkgtests as allow-stderr, due to deprecation warning
+ emitted by newer setuptools. (Closes: #1002533)
+ * Explicitly depend on python3-distutils (Closes: #1003150)
+ * Extend upstream metadata.
+ * Build a python3-wheel-whl package. (Closes: #1003573)
+
+ [ Ondřej Nový ]
+ * d/control: Update Maintainer field with new Debian Python Team
+ contact address.
+ * d/control: Update Vcs-* fields with new Debian Python Team Salsa
+ layout.
+
+ [ Debian Janitor ]
+ * Remove MIA uploader Barry Warsaw <barry at debian.org>. Closes: #970183
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 12 Jan 2022 13:29:30 -0400
+
+wheel (0.34.2-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release 0.34.2.
+ * Update Standards-Version to 4.5.0 (no changes).
+
+ -- Nicolas Dandrimont <olasd at debian.org> Fri, 20 Mar 2020 19:36:29 +0100
+
+wheel (0.33.6-3) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
+
+ [ Dmitry Shachnev ]
+ * Update Homepage, upstream moved from BitBucket to GitHub.
+ * Drop python-keyring, python-keyrings.alt and python-xdg Recommends.
+ They were needed for signing and verifying features that were removed
+ in wheel 0.32.0.
+
+ [ Sandro Tosi ]
+ * Drop python2 support; Closes: #938819
+
+ -- Sandro Tosi <morph at debian.org> Mon, 16 Mar 2020 00:51:23 -0400
+
+wheel (0.33.6-2) unstable; urgency=medium
+
+ * Team upload.
+ * Use /usr/bin/python2 for autopkgtests (Closes: #944342)
+
+ -- Nicolas Dandrimont <olasd at debian.org> Tue, 19 Nov 2019 18:57:35 +0100
+
+wheel (0.33.6-1) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Nicolas Dandrimont ]
+ * New upstream release
+ * Use Rules-Requires-Root: no
+ * Bump standards version to 4.4.1
+ * Use debhelper compat 12
+ * Use /usr/share/dpkg/pkg-info.mk instead of parsing dpkg-
+ parsechangelog
+ * Deduplicate short package descriptions
+
+ [ Ondřej Nový ]
+ * Use debhelper-compat instead of debian/compat.
+
+ -- Nicolas Dandrimont <olasd at debian.org> Thu, 17 Oct 2019 15:24:20 +0200
+
+wheel (0.32.3-2) unstable; urgency=medium
+
+ * Team upload
+
+ [ Ondřej Nový ]
+ * Use 'python3 -m sphinx' instead of sphinx-build for building docs.
+
+ [ Andreas Tille ]
+ * Upstream removed dir wheel/test - thus removing part of autopkgtest
+ relying on that dir
+ Closes: #915013
+ * Standards-Version: 4.3.0
+
+ -- Andreas Tille <tille at debian.org> Fri, 08 Feb 2019 07:55:06 +0100
+
+wheel (0.32.3-1) unstable; urgency=medium
+
+ * Team upload
+
+ [ Barry Warsaw ]
+ * d/control: Put DPMT in Maintainers and myself in Uploaders.
+
+ [ Ondřej Nový ]
+ * d/control: Set Vcs-* to salsa.debian.org
+ * d/copyright: Use https protocol in Format field
+ * d/watch: Use https protocol
+ * d/control: Remove ancient X-Python-Version field
+ * d/control: Remove ancient X-Python3-Version field
+ * Convert git repository from git-dpm to gbp layout
+ * d/tests: Use AUTOPKGTEST_TMP instead of ADTTMP
+
+ [ Andreas Tille ]
+ * debhelper 11
+ * Point Vcs fields to salsa.debian.org
+ * Standards-Version: 4.2.1
+ * Fix maintainer field
+ * Build-Depends: python3-sphinx
+
+ -- Andreas Tille <tille at debian.org> Wed, 28 Nov 2018 16:09:39 +0100
+
+wheel (0.29.0-2) unstable; urgency=medium
+
+ * d/patches/reproducible-builds.patch: Added to sort Requires-Dist
+ headers into a deterministic order. Given by Chris Lamb.
+ (Closes: #845325)
+ * d/control:
+ - Bump Standards-Version to 3.9.8 with no other changes necessary.
+ - Add Recommends for python{,3}-keyring, python{,3}-keyrings.alt, and
+ python{,3}-xdg for signature/keyring support.
+ * d/tests/control: Add additional Depends for pytest commands.
+ * wrap-and-sort -at
+
+ -- Barry Warsaw <barry at debian.org> Thu, 01 Dec 2016 11:04:31 -0500
+
+wheel (0.29.0-1) unstable; urgency=medium
+
+ * New upstream release. (Closes: #813992)
+ * d/control:
+ - Bump Standards-Version to 3.9.7 with no other changes necessary.
+ - Remove XS-Testsuite field; it's no longer needed.
+ - Use https: URL in Vcs-Git field.
+ * d/rules: Don't explicitly remove the python3.Y/*.egg-info directory.
+ * d/patches/reproducible-whls.diff: Drop; applied upstream.
+
+ -- Barry Warsaw <barry at debian.org> Wed, 24 Feb 2016 14:44:18 -0500
+
+wheel (0.26.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * d/patches/python35-support.patch: Removed; applied upstream.
+ * d/patches/reproducible-whls.diff:
+ - Update patch to use $SOURCE_DATE_EPOCH instead of $WHEEL_FORCE_TIMESTAMP.
+ (Closes: #795942)
+ - Use time.gmtime() instead of .localtime() to avoid timezone issues.
+ (Closes: #789981)
+ * d/rules: The test suite requires an installed package, so defer this
+ to DEP-8 tests. (Closes: #796520)
+ * d/tests/control: Add two tests of the package's test suite.
+ * d/control: Now that the test suite isn't run at package build time,
+ remove the Build-Depends on python-pytest and python3-pytest.
+ * wrap-and-sort
+
+ -- Barry Warsaw <barry at debian.org> Thu, 01 Oct 2015 19:21:50 -0400
+
+wheel (0.24.0-3) unstable; urgency=medium
+
+ * d/patches/python35-support.patch: Fix a bug on Python 3.5.
+
+ -- Barry Warsaw <barry at debian.org> Wed, 24 Jun 2015 09:51:36 -0400
+
+wheel (0.24.0-2) unstable; urgency=medium
+
+ * 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)
+ * d/patch/reproducible-whls.diff: Add based on initial contribution
+ 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: Add smoke and reproducible .whl file DEP-8 tests.
+
+ -- Barry Warsaw <barry at debian.org> Fri, 12 Jun 2015 14:14:29 -0400
+
+wheel (0.24.0-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Barry Warsaw <barry at debian.org> Sun, 13 Jul 2014 13:17:07 -0400
+
+wheel (0.23.0-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #745673)
+
+ -- Barry Warsaw <barry at debian.org> Mon, 05 May 2014 18:02:18 -0400
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..91231f8
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,5 @@
+.tox/
+dist/
+docs/_build/
+tests/testdata/*/*.egg-info/
+tests/testdata/*/build/
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..571e854
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,60 @@
+Source: wheel
+Maintainer: Debian Python Team <team+python at tracker.debian.org>
+Uploaders: Stefano Rivera <stefanor at debian.org>
+Section: python
+Priority: optional
+Rules-Requires-Root: no
+Build-Depends: debhelper-compat (= 13),
+ dh-python (>= 6),
+ flit,
+ pybuild-plugin-pyproject,
+ python3-all-dev,
+ python3-packaging (>= 24) <!nocheck>,
+ python3-pytest <!nocheck>,
+ python3-pytest-cov <!nocheck>,
+ python3-setuptools (>= 77) <!nocheck>,
+ python3-sphinx <!nodoc>,
+ tox (>= 4) <!nocheck>
+Standards-Version: 4.7.2
+Vcs-Browser: https://salsa.debian.org/python-team/packages/wheel
+Vcs-Git: https://salsa.debian.org/python-team/packages/wheel.git
+Homepage: https://github.com/pypa/wheel
+
+Package: python3-wheel
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python3-setuptools
+Description: built-package format for Python
+ A wheel is a ZIP-format archive with a specially formatted filename and the
+ `.whl` extension. It is designed to contain all the files for a PEP 376
+ compatible install in a way that is very close to the on-disk format.
+ .
+ The wheel project provides a `bdist_wheel` command for setuptools. Wheel
+ files can be installed with `pip`.
+ .
+ This is the Python 3 compatible package.
+
+Package: python-wheel-common
+Architecture: all
+Depends: python3, python3-wheel, ${misc:Depends}
+Description: built-package format for Python (command-line scripts)
+ A wheel is a ZIP-format archive with a specially formatted filename and the
+ `.whl` extension. It is designed to contain all the files for a PEP 376
+ compatible install in a way that is very close to the on-disk format.
+ .
+ The wheel project provides a `bdist_wheel` command for setuptools. Wheel
+ files can be installed with `pip`.
+ .
+ These are the command line scripts and manpages.
+
+Package: python3-wheel-whl
+Architecture: all
+Depends: ${misc:Depends}, python3-packaging-whl
+Multi-Arch: foreign
+Description: built-package format for Python (wheel wheel)
+ A wheel is a ZIP-format archive with a specially formatted filename and the
+ `.whl` extension. It is designed to contain all the files for a PEP 376
+ compatible install in a way that is very close to the on-disk format.
+ .
+ This is the support package for the PEP 427 wheel version of the package,
+ required for using wheel inside a virtual environment.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..224b92a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: wheel
+Source: https://pypi.python.org/pypi/wheel
+
+Files: *
+Copyright: 2012-2025, Daniel Holth <dholth at fastmail.fm> and contributors.
+License: Expat
+
+Files: debian/*
+Copyright: 2014, Barry A. Warsaw
+ 2022-2025, Stefano Rivera <stefanor at debian.org>
+License: GPL-3
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+License: GPL-3
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 3,
+ as published by the Free Software Foundation.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian-based systems the full text of the GPL, version 3, can be found at
+ /usr/share/common-licenses/GPL-3.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d9e0788
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+tox-envpython
diff --git a/debian/patches/tox-envpython b/debian/patches/tox-envpython
new file mode 100644
index 0000000..127d7e1
--- /dev/null
+++ b/debian/patches/tox-envpython
@@ -0,0 +1,36 @@
+From: Stefano Rivera <stefanor at debian.org>
+Date: Sat, 5 Apr 2025 18:50:16 -0400
+Subject: Run tox commands via envpython
+
+Otherwise we need to list the commands in allowlist_externals, with our
+system virtualenv tox approach.
+
+Forwarded: not-needed
+---
+ pyproject.toml | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 28d318b..65e3110 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -121,7 +121,7 @@ skip_missing_interpreters = true
+ [tool.tox.env_run_base]
+ depends = ["lint"]
+ package = "wheel"
+-commands = [["pytest", { replace = "posargs", extend = true }]]
++commands = [["{envpython}", "-m", "pytest", { replace = "posargs", extend = true }]]
+ extras = ["test"]
+ set_env = { PYTHONWARNDEFAULTENCODING = "1" }
+
+@@ -129,8 +129,8 @@ set_env = { PYTHONWARNDEFAULTENCODING = "1" }
+ depends = []
+ deps = ["pre-commit"]
+ package = "skip"
+-commands = [["pre-commit", "run", "-a"]]
++commands = [["{envpython}", "-m", "pre_commit", "run", "-a"]]
+
+ [tool.tox.env.pkg]
+ deps = ["build", "flit >= 3.8"]
+-commands = [["pytest", "tests/test_sdist.py", { replace = "posargs", extend = true }]]
++commands = [["{envpython}", "-m", "pytest", "tests/test_sdist.py", { replace = "posargs", extend = true }]]
diff --git a/debian/python-wheel-common.manpages b/debian/python-wheel-common.manpages
new file mode 100644
index 0000000..287dba2
--- /dev/null
+++ b/debian/python-wheel-common.manpages
@@ -0,0 +1 @@
+docs/_build/man/wheel.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..85d19e7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=wheel
+export PYBUILD_VERBOSE=1
+export DH_VERBOSE=1
+export PYBUILD_AFTER_INSTALL=mkdir -p {dir}/debian/python3-wheel-whl/usr/share/python-wheels && cp {home_dir}/*.whl {dir}/debian/python3-wheel-whl/usr/share/python-wheels
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+execute_before_dh_installman:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+ (cd docs; \
+ python3 -m sphinx \
+ -b man \
+ -d _build/doctrees . _build/man)
+endif
+
+override_dh_python3:
+ dh_python3 --shebang=/usr/bin/python3
+ mkdir -p debian/python-wheel-common/usr
+ mv debian/python3-wheel/usr/bin debian/python-wheel-common/usr
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..10ddfc5
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# Dev packages needed for tests
+wheel source: build-depends-on-python-dev-with-no-arch-any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5339fa1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,15 @@
+Tests: smoketest-3
+Depends: python3-setuptools, python3-wheel
+Restrictions: allow-stderr
+
+Tests: reproduce-3
+Depends: coreutils, python3-setuptools, python3-wheel
+Restrictions: allow-stderr
+
+Tests: unittests-3
+Depends: build-essential,
+ python3-all-dev,
+ python3-pytest,
+ python3-pytest-cov,
+ python3-setuptools,
+ python3-wheel
diff --git a/debian/tests/dummy/dummy/__init__.py b/debian/tests/dummy/dummy/__init__.py
new file mode 100644
index 0000000..18f9189
--- /dev/null
+++ b/debian/tests/dummy/dummy/__init__.py
@@ -0,0 +1,4 @@
+__version__ = '0.0'
+
+from dummy.no import no
+from dummy.yes import yes
diff --git a/debian/tests/dummy/dummy/no.py b/debian/tests/dummy/dummy/no.py
new file mode 100644
index 0000000..db9da19
--- /dev/null
+++ b/debian/tests/dummy/dummy/no.py
@@ -0,0 +1,4 @@
+from __future__ import print_function
+
+def no():
+ print('no')
diff --git a/debian/tests/dummy/dummy/yes.py b/debian/tests/dummy/dummy/yes.py
new file mode 100644
index 0000000..87abb84
--- /dev/null
+++ b/debian/tests/dummy/dummy/yes.py
@@ -0,0 +1,4 @@
+from __future__ import print_function
+
+def yes():
+ print('yes')
diff --git a/debian/tests/dummy/setup.py b/debian/tests/dummy/setup.py
new file mode 100644
index 0000000..5b22d12
--- /dev/null
+++ b/debian/tests/dummy/setup.py
@@ -0,0 +1,6 @@
+from setuptools import setup
+
+setup(name='dummy',
+ version='0.0',
+ packages=['dummy'],
+ )
diff --git a/debian/tests/reproduce-3 b/debian/tests/reproduce-3
new file mode 100644
index 0000000..577ef28
--- /dev/null
+++ b/debian/tests/reproduce-3
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# For reproducible .whl files. See bug ##776026.
+export SOURCE_DATE_EPOCH=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 $AUTOPKGTEST_TMP/build-1 -d $AUTOPKGTEST_TMP/wheels-1
+
+sleep 5
+
+# Create the .whl file. Both build it and write it to a temporary directory.
+python3 setup.py bdist_wheel -b $AUTOPKGTEST_TMP/build-2 -d $AUTOPKGTEST_TMP/wheels-2
+
+# For reproducibility, ensure that the checksums are identical.
+sum1=`sha256sum $AUTOPKGTEST_TMP/wheels-1/dummy-0.0-py3-none-any.whl | cut -c 1-64`
+sum2=`sha256sum $AUTOPKGTEST_TMP/wheels-2/dummy-0.0-py3-none-any.whl | cut -c 1-64`
+
+echo $sum1
+echo $sum2
+test $sum1 = $sum2
diff --git a/debian/tests/smoketest-3 b/debian/tests/smoketest-3
new file mode 100644
index 0000000..333950a
--- /dev/null
+++ b/debian/tests/smoketest-3
@@ -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 $AUTOPKGTEST_TMP/build -d $AUTOPKGTEST_TMP/wheels
+
+# Guarantee that the source of the dummy package won't be on sys.path.
+cd $AUTOPKGTEST_TMP
+
+# 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'
diff --git a/debian/tests/unittests-3 b/debian/tests/unittests-3
new file mode 100755
index 0000000..a0a3dcc
--- /dev/null
+++ b/debian/tests/unittests-3
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -euf
+
+# We run out of the source tree, because the tests operate on the wheel source
+# package.
+for py in $(py3versions -s); do
+ $py -m pytest tests/
+done
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..7615c9b
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,10 @@
+---
+Bug-Database: https://github.com/pypa/wheel/issues
+Bug-Submit: https://github.com/pypa/wheel/issues/new
+Changelog: https://wheel.readthedocs.io/en/stable/news.html
+Documentation: https://wheel.readthedocs.io/
+Registry:
+ - Name: PyPI
+ Entry: wheel
+Repository: https://github.com/pypa/wheel.git
+Repository-Browse: https://github.com/pypa/wheel
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e156800
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/wheel/wheel-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
More information about the Neon-commits
mailing list