[neon/backports-noble/python-setuptools-noble/Neon/unstable] debian: import from questing for sip6

Carlos De Maine null at kde.org
Sun Aug 17 09:47:52 BST 2025


Git commit e31e9a5cb716e9eab2c2cfa5f8cb20dc3504e1d9 by Carlos De Maine.
Committed on 17/08/2025 at 08:47.
Pushed by carlosdem into branch 'Neon/unstable'.

import from questing for sip6

A  +1105 -0    debian/changelog
A  +1    -0    debian/compat
A  +90   -0    debian/control
A  +81   -0    debian/copyright
A  +11   -0    debian/patches/PKG-INFO-output-reproducible.diff
A  +18   -0    debian/patches/dont-require-vendored-modules.diff
A  +11   -0    debian/patches/fix-changes-link.diff
A  +163  -0    debian/patches/install-layout.diff
A  +74   -0    debian/patches/multiarch-extname.diff
A  +26   -0    debian/patches/multiple-entrypoints.diff
A  +12   -0    debian/patches/no-SOURCES.txt-in-egg-ingo.diff
A  +78   -0    debian/patches/no-sidebar.diff
A  +11   -0    debian/patches/no-sphinx-custom-icons.diff
A  +11   -0    debian/patches/no-sphinx-inline-tabs.diff
A  +11   -0    debian/patches/no-sphinx-jaraco-tidelift.diff
A  +17   -0    debian/patches/no-sphinx-rst.linker.diff
A  +11   -0    debian/patches/no-sphinx-towncrier.diff
A  +22   -0    debian/patches/reproducible.diff
A  +39   -0    debian/patches/revert-shebang-change.diff
A  +16   -0    debian/patches/series
A  +11   -0    debian/patches/sorted-requires.diff
A  +11   -0    debian/patches/sphinx-theme.diff
A  +1    -0    debian/pypy-pkg-resources.install
A  +2    -0    debian/pypy-setuptools.install
A  +1    -0    debian/python3-pkg-resources.install
A  +3    -0    debian/python3-setuptools.install
A  +72   -0    debian/rules
A  +1    -0    debian/source/format
A  +9    -0    debian/source/lintian-overrides
A  +2    -0    debian/watch

https://invent.kde.org/neon/backports-noble/python-setuptools-noble/-/commit/e31e9a5cb716e9eab2c2cfa5f8cb20dc3504e1d9

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8e09d67
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,1105 @@
+setuptools (78.1.1-0.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Update to upstream 78.1.1 which fixes CVE-2025-47273 (Closes: #1105970)
+    - Path traversal in PackageIndex.download leads to Arbitrary File Write.
+  * debian/watch: Update URI to https.
+
+ -- Lee Garrett <debian at rocketjump.eu>  Tue, 27 May 2025 15:19:40 +0200
+
+setuptools (78.1.0-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Make python3-setuptools break python3-wheel < 0.46.0.
+  * Revert upstream change to use #!python shebang (closes: #1103186).
+
+ -- Dmitry Shachnev <mitya57 at debian.org>  Fri, 18 Apr 2025 14:51:13 +0300
+
+setuptools (78.1.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Upload to unstable.
+
+ -- Stefano Rivera <stefanor at debian.org>  Thu, 10 Apr 2025 17:02:12 -0400
+
+setuptools (78.1.0-1) experimental; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 05 Apr 2025 08:35:21 +0200
+
+setuptools (77.0.3-1) experimental; urgency=medium
+
+  * New upstream version. Closes: #1100972.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 21 Mar 2025 11:01:05 +0100
+
+setuptools (75.8.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 19 Feb 2025 12:13:08 +0100
+
+setuptools (75.6.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Fix build with multiple supported python versions.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 17 Dec 2024 13:20:49 +0100
+
+setuptools (75.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 24 Oct 2024 13:00:40 +0200
+
+setuptools (74.1.2-2) unstable; urgency=medium
+
+  * generate nondeterministic PKG-INFO files (Chris Lamb).
+    Closes: #1077601.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 09 Sep 2024 16:20:00 +0200
+
+setuptools (74.1.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 09 Sep 2024 15:05:44 +0200
+
+setuptools (73.0.1-1) unstable; urgency=medium
+
+  * New upstream version. Closes: #1079282.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 22 Aug 2024 16:18:52 +0200
+
+setuptools (73.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Move some vendored modules to python3-pkg-resources. Closes: #1079175.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 21 Aug 2024 10:10:08 +0200
+
+setuptools (72.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 20 Aug 2024 13:06:47 +0200
+
+setuptools (70.3.0-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 13 Jul 2024 10:20:32 +0200
+
+setuptools (70.3.0-1) experimental; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 10 Jul 2024 09:18:06 +0200
+
+setuptools (68.1.2-4) unstable; urgency=medium
+
+  * python3-setuptools: Drop dependency on python3-distutils.
+    Closes: #1056198, #1076036.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 10 Jul 2024 09:14:25 +0200
+
+setuptools (68.1.2-2) unstable; urgency=medium
+
+  * Don't run dh_auto_clean, just remove the .pybuild directory manually.
+    dh-python would remove the egg-info dir during the dh_auto_clean call.
+    Closes: #1052540, #1052783. LP: #2037205.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 04 Oct 2023 10:28:14 +0200
+
+setuptools (68.1.2-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Refresh patches.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 24 Aug 2023 20:49:08 +0200
+
+setuptools (68.0.0-2) unstable; urgency=medium
+
+  * Exclude the debian dir from namespace_package searches by default.
+    Stefano Rivera. Closes: #1041091.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 10 Aug 2023 05:21:32 +0200
+
+setuptools (68.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 05 Jul 2023 13:39:33 +0200
+
+setuptools (67.8.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 12 Jun 2023 09:47:57 +0200
+
+setuptools (66.1.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 27 Jan 2023 07:49:44 +0100
+
+setuptools (65.6.3-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 31 Dec 2022 10:00:07 +0100
+
+setuptools (65.5.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Install distutils-precedence.pth, to avoid packages need to hack import
+    order in setup.py. Closes: #1025216
+
+ -- Stefano Rivera <stefanor at debian.org>  Sat, 03 Dec 2022 10:16:50 -0400
+
+setuptools (65.5.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 21 Oct 2022 16:45:14 +0200
+
+setuptools (65.3.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix a merge error in multiarch-extname.diff, causing sysconfig to be an
+    unbound local in easy_install.py
+
+ -- Stefano Rivera <stefanor at debian.org>  Thu, 15 Sep 2022 10:01:42 +0200
+
+setuptools (65.3.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Build-depend on python3-sphinx-notfound-page.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 14 Sep 2022 16:54:08 +0200
+
+setuptools (63.2.0-1) experimental; urgency=medium
+
+  * New upstream version.
+  * Build-depend on python3-sphinx-reredirects.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 17 Jul 2022 17:53:39 +0200
+
+setuptools (59.6.0-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Source-only upload.
+
+ -- Stefano Rivera <stefanor at debian.org>  Tue, 18 Jan 2022 08:56:42 -0400
+
+setuptools (59.6.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build a python3-setuptools-whl package. Closes: #1003573.
+
+ -- Stefano Rivera <stefanor at debian.org>  Wed, 12 Jan 2022 13:21:21 -0400
+
+setuptools (59.6.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 16 Dec 2021 02:16:07 +0100
+
+setuptools (59.4.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 02 Dec 2021 14:38:34 +0100
+
+setuptools (59.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 27 Nov 2021 09:19:38 +0100
+
+setuptools (58.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Still build the docs with the old alabaster theme.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 11 Oct 2021 13:44:59 +0200
+
+setuptools (57.0.0-1) experimental; urgency=medium
+
+  * New upstream version.
+  * Build the docs without the towncrier sphinx extension for now.
+  * Don't include the exe installer files in the binary package, not
+    rebuilt using the mingw64 toolchain. Closes: #989346.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 29 Jun 2021 12:38:01 +0200
+
+setuptools (56.0.0-1) experimental; urgency=medium
+
+  * New upstream version.
+  * Build the docs without the sphinx_inline_tabs extension for now.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 04 May 2021 12:57:29 +0200
+
+setuptools (54.1.0-1) experimental; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 09 Mar 2021 12:00:51 +0100
+
+setuptools (52.0.0-3) unstable; urgency=medium
+
+  * Use sysconfig.get_platform instead of distutils.util.get_platform.
+    in the vendored packaging module. Addresses: #982921.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 03 Mar 2021 11:04:50 +0100
+
+setuptools (52.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Drop the easy_install scripts, removed upstream.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 03 Feb 2021 09:53:25 +0100
+
+setuptools (51.3.3-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 20 Jan 2021 17:11:54 +0100
+
+setuptools (51.1.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump debhelper and standards versions.
+  * Take the docs/Makefile from the 50.3.0 release, and don't build the docs
+    with the advertising sidebar.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 23 Dec 2020 11:42:50 +0100
+
+setuptools (50.3.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 06 Oct 2020 13:06:30 +0200
+
+setuptools (49.3.1-2) unstable; urgency=medium
+
+  * Include _distutils_hack in the packge. Closes: #968410.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 15 Aug 2020 11:56:47 +0200
+
+setuptools (49.3.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 14 Aug 2020 13:36:56 +0200
+
+setuptools (46.1.3-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Add lintian overrides for source-contains-prebuilt-windows-binary
+    to document why these files are acceptable for Debian (Scott Kitterman).
+    Closes: #958324.
+  * Bump debhelper version.
+  * Update debian/copyright, add license for the vendored packaging module.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 26 Apr 2020 12:43:26 +0200
+
+setuptools (45.2.0-1) unstable; urgency=medium
+
+  * New upstream version, Python3 only. Keep building the Python2 and
+    PyPy packages from the python-setuptools sources.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 25 Feb 2020 13:20:41 +0100
+
+python-setuptools (44.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 06 Jan 2020 12:25:00 +0100
+
+python-setuptools (41.4.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 26 Oct 2019 16:02:41 +0200
+
+python-setuptools (41.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 04 Sep 2019 08:34:04 +0200
+
+python-setuptools (41.1.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 17 Aug 2019 13:52:19 +0200
+
+python-setuptools (41.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 28 Jun 2019 17:49:32 +0200
+
+python-setuptools (40.8.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 09 Feb 2019 14:36:03 +0100
+
+python-setuptools (40.7.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 02 Feb 2019 15:50:37 +0100
+
+python-setuptools (40.6.3-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 18 Jan 2019 11:49:41 +0100
+
+python-setuptools (40.6.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 04 Dec 2018 11:42:29 +0100
+
+python-setuptools (40.5.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 06 Nov 2018 09:30:02 +0100
+
+python-setuptools (40.4.3-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 18 Oct 2018 12:11:52 +0200
+
+python-setuptools (40.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 31 Aug 2018 12:10:30 +0200
+
+python-setuptools (39.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 16 Jun 2018 04:43:17 +0200
+
+python-setuptools (39.1.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 12 May 2018 15:44:00 -0400
+
+python-setuptools (39.0.1-2) unstable; urgency=medium
+
+  * Make the PKG-INFO output reproducible (Chris Lamb). Closes: #894215.
+  * Stop shipping the easy_install scripts.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 02 Apr 2018 11:46:01 +0200
+
+python-setuptools (39.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 25 Mar 2018 13:29:55 +0800
+
+python-setuptools (38.5.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 09 Mar 2018 15:17:32 +0700
+
+python-setuptools (38.4.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 31 Jan 2018 11:46:56 +0100
+
+python-setuptools (38.2.4-2) unstable; urgency=medium
+
+  * python3-setuptools: Depend on python3-distutils.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 14 Dec 2017 02:06:50 +0100
+
+python-setuptools (38.2.4-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 04 Dec 2017 19:55:21 +0100
+
+python-setuptools (36.7.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 13 Nov 2017 12:20:17 +0100
+
+python-setuptools (36.6.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Bump standards version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 01 Nov 2017 05:45:52 +0100
+
+python-setuptools (36.2.7-2) unstable; urgency=medium
+
+  * Add d/patches/fix-invalid-escapes.diff to prevent warnings from appearing
+    on stderr and causing autopkgtests to fail (Michael Hudson-Doyle).
+
+ -- Matthias Klose <doko at debian.org>  Sat, 05 Aug 2017 11:16:52 -0400
+
+python-setuptools (36.2.7-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 04 Aug 2017 08:11:49 -0400
+
+python-setuptools (36.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Generate entry points for 3.6.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 20 Jun 2017 15:12:53 +0200
+
+python-setuptools (33.1.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Generate sorted requires.txt files. Closes: #804249.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 19 Jan 2017 18:02:25 +0100
+
+python-setuptools (32.3.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 09 Jan 2017 00:07:07 +0100
+
+python-setuptools (32.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Generate reproducible install_files.txt (Chris Lamb). Closes: #848136.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 15 Dec 2016 12:48:40 +0100
+
+python-setuptools (28.7.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 02 Nov 2016 16:13:06 +0200
+
+python-setuptools (28.0.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 28 Sep 2016 02:18:01 +0200
+
+python-setuptools (27.1.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 10 Sep 2016 03:38:14 +0200
+
+python-setuptools (26.1.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 30 Aug 2016 08:17:49 +0200
+
+python-setuptools (26.1.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 29 Aug 2016 20:48:21 +0200
+
+python-setuptools (25.2.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 15 Aug 2016 23:17:15 +0200
+
+python-setuptools (20.10.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Re-add the changes file, missing upstream.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 14 Apr 2016 21:52:22 +0200
+
+python-setuptools (20.3.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 18 Mar 2016 17:08:58 +0100
+
+python-setuptools (20.1.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Stop building the -whl package.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 15 Feb 2016 19:11:35 +0100
+
+python-setuptools (20.0-2) unstable; urgency=medium
+
+  * Use the pkg_resources from the source when building the docs.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 11 Feb 2016 13:28:36 +0100
+
+python-setuptools (20.0-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 10 Feb 2016 11:08:25 +0100
+
+python-setuptools (18.8-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 13 Dec 2015 14:51:22 +0100
+
+python-setuptools (18.7.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 11 Dec 2015 17:32:09 +0100
+
+python-setuptools (18.7-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 01 Dec 2015 13:14:59 +0100
+
+python-setuptools (18.4-2) unstable; urgency=medium
+
+  * Don't install the SOURCES.txt egg-info file when setup.py is called
+    with --install-layout=deb. Closes: #802792.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 24 Oct 2015 16:07:48 +0200
+
+python-setuptools (18.4-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Provide a unified entry_points.txt file.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 11 Oct 2015 13:06:42 +0200
+
+python-setuptools (18.3.1-2) unstable; urgency=medium
+
+  * Don't blow away egg-info on clean (Stefano Rivera).
+  * Remove the build dependency on python-setuptools.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 11 Sep 2015 20:33:13 +0200
+
+python-setuptools (18.3.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Build-depend on python-setuptools. Without this dependency, the scripts
+    are not installed. Not yet known, why.  Closes: #795455.
+  * Install the upstream changes file, not the empty history file.
+    Closes: #798078.
+  * Suggests the python-setuptools-doc package. Closes: #797731.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 10 Sep 2015 18:28:54 +0200
+
+python-setuptools (18.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 04 Sep 2015 22:29:34 +0200
+
+python-setuptools (18.0.1-2) unstable; urgency=medium
+
+  [ Stefano Rivera ]
+  * Port to pybuild:
+    - Build-Depend on dh-python.
+  * Bump debhelper compat to 9 (and Build-Depends to >= 9)
+  * Replace unnecessary dependencies on python*-all-dev packages with -all.
+  * Drop deprecated ${python:Versions} and ${python:Provides} substitutions.
+  * Drop constraints on packages that pre-date oldoldstable.
+  * Add Suggests: python-setuptools on python-pkg-resources, matching
+    python3-pkg-resources.
+  * Drop ancient and irrelevant README.Debian.
+  * Use dh_sphinxdoc's generated dependencies.
+  * Replace accidental /usr/share/doc/html symlink with the intended
+    /usr/share/doc/python3-setuptools/html.
+  * Drop unnecessary easy_install-X.Y binaries.
+    Users can use pythonX.Y -m easy_install, instead.
+  * Drop .pth file. No longer necessary, we don't install eggs.
+  * Add binary packages for pypy. Requires Build-Depends: pypy. Closes: #735855.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 03 Aug 2015 14:21:28 +0200
+
+python-setuptools (18.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 21 Jul 2015 21:45:52 +0200
+
+python-setuptools (17.0-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Fix another issue with the multiarch patch (which can be dropped once
+    3.5 is the only version in the distro).
+
+ -- Matthias Klose <doko at debian.org>  Fri, 29 May 2015 15:13:19 +0200
+
+python-setuptools (16.0-2) unstable; urgency=medium
+
+  * Fix syntax error in multiarch patch (Brian Warner). Closes: #786446.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 21 May 2015 23:43:05 +0200
+
+python-setuptools (16.0-1) unstable; urgency=medium
+
+  * New upstream version. Closes: #784364.
+  * Build for python 3.5.
+  * Fix lintian warnings.
+  * Build without the rst.linker plugin, not yet packaged.
+  * python3-setuptools: Conflict with python3.5 (<< 3.5.0~a4-5).
+
+ -- Matthias Klose <doko at debian.org>  Tue, 19 May 2015 11:56:21 +0200
+
+python-setuptools (12.2-1) experimental; urgency=medium
+
+  * New upstream version. Closes: #779036, #773969.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 26 Feb 2015 15:04:59 +0100
+
+python-setuptools (5.5.1-1) unstable; urgency=medium
+
+  * New upstream version. Closes: #754089.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 12 Aug 2014 13:50:59 +0200
+
+python-setuptools (5.4.1-1) unstable; urgency=medium
+
+  * New upstream version. Closes: #754089.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 07 Jul 2014 19:33:26 +0200
+
+python-setuptools (5.3-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 02 Jul 2014 00:18:03 +0200
+
+python-setuptools (4.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Stop building for python 3.3. Closes: #751070.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 10 Jun 2014 17:38:45 +0200
+
+python-setuptools (3.6-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Build a python-setuptools-whl package (Barry Warsaw). Closes: #748299.
+  * Fix installation of the html documentation. Closes: #737889, #748586.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 21 May 2014 11:19:00 +0200
+
+python-setuptools (3.4.4-1) unstable; urgency=medium
+
+  * New upstream version.
+    - Fix #184, build directory included into the package. Closes: #743644.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 12 Apr 2014 21:28:18 +0200
+
+python-setuptools (3.4.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 03 Apr 2014 22:02:29 +0200
+
+python-setuptools (3.3-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 22 Mar 2014 18:36:35 +0100
+
+python-setuptools (2.2-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 18 Feb 2014 14:59:08 +0100
+
+python-setuptools (2.1-1) unstable; urgency=medium
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 26 Jan 2014 21:55:39 +0100
+
+python-setuptools (2.0.2-1) unstable; urgency=medium
+
+  * New upstream version.
+  * On installation with --install-layout=deb, rename extensions for
+    python 3.3 (and newer) to include the multiarch tag.
+    Renaming of extensions for python3.4 is currently not done by dh-python.
+    See Debian #733128.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 31 Dec 2013 13:08:43 +0100
+
+python-setuptools (2.0.1-2) unstable; urgency=medium
+
+  * Build for python3.4.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 26 Dec 2013 00:20:51 +0100
+
+python-setuptools (2.0.1-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Depend on python:any/python3:any rather than python/python3.
+  * Rename python-distribute-doc to python-setuptools-doc.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 21 Dec 2013 20:40:24 +0100
+
+python-setuptools (1.4.2-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 02 Dec 2013 16:55:48 +0100
+
+python-setuptools (1.3.2-1) experimental; urgency=low
+
+  * New upstream version (converged setuptools / distribute release).
+
+ -- Matthias Klose <doko at debian.org>  Mon, 11 Nov 2013 21:45:15 +0100
+
+distribute (0.6.49-2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix typo on python version in rules file. Closes: #715556.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 04 Aug 2013 12:21:20 +0200
+
+distribute (0.6.49-1) unstable; urgency=low
+
+  * New upstream version.
+  * Stop building for python3.2.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 04 Aug 2013 12:13:21 +0200
+
+distribute (0.6.37-1) unstable; urgency=low
+
+  * New upstream version.
+  * Stop building for python2.6. Closes: #707140.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 08 May 2013 23:55:38 +0200
+
+distribute (0.6.36-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 07 Apr 2013 21:56:28 +0200
+
+distribute (0.6.34-1) experimental; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 20 Jan 2013 17:46:12 +0100
+
+distribute (0.6.29-1) experimental; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 21 Oct 2012 19:41:01 +0200
+
+distribute (0.6.28-1) experimental; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 29 Aug 2012 11:43:26 +0200
+
+distribute (0.6.24-1) unstable; urgency=low
+
+  * New upstream version. Closes: #632516.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 22 Oct 2011 22:38:22 +0200
+
+distribute (0.6.16-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Support Python >=3.1.4 and >=3.2.1.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 20 May 2011 11:30:25 +0200
+
+distribute (0.6.15-2) unstable; urgency=low
+
+  * Stop building for python2.5 and python3.1.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 18 Apr 2011 21:58:45 +0200
+
+distribute (0.6.15-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 21 Mar 2011 01:37:31 +0100
+
+distribute (0.6.14-5) experimental; urgency=low
+
+  * Build for python 2.7 and 3.2.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 14 Oct 2010 15:45:57 +0200
+
+distribute (0.6.14-4) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 06 Oct 2010 01:54:38 +0200
+
+distribute (0.6.14-3) experimental; urgency=low
+
+  * Tighten build dependency on python3, remove b-d on python-central.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 12 Sep 2010 16:56:04 +0200
+
+distribute (0.6.14-2) experimental; urgency=low
+
+  * For python3, install into /usr/lib/python3/dist-packages by
+    default, when setup.py install is called with --install-layout=deb.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 09 Sep 2010 19:04:09 +0200 
+
+distribute (0.6.14-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 17 Jul 2010 13:41:28 +0200
+
+distribute (0.6.10-4) unstable; urgency=low
+
+  * Don't include 3.1 related files in the filelists of python-* packages.
+    Closes: #574153.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 18 Mar 2010 12:27:47 +0100
+
+distribute (0.6.10-3) unstable; urgency=low
+
+  * Don't ship the python3 files in the python-* packages. Closes: #574079.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 16 Mar 2010 08:23:18 +0100
+
+distribute (0.6.10-2) unstable; urgency=low
+
+  * Build packages for python3.1.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 14 Mar 2010 16:51:00 +0100
+
+distribute (0.6.10-1) unstable; urgency=low
+
+  * New upstream version.
+  * Stop building for python2.4. Closes: #557000.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 28 Dec 2009 23:52:40 +0100
+
+distribute (0.6.8-1) unstable; urgency=low
+
+  * New upstream version.
+  * Stop building for python2.4. Closes: #557000.
+
+ -- Matthias Klose <doko at debian.org>  Thu, 12 Nov 2009 02:12:16 +0100
+
+distribute (0.6.6-1) unstable; urgency=low
+
+  * New upstream version.
+  * Don't build python-distribute (yet). Move the egg-info into
+    python-setuptools. Closes: #552154.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 24 Oct 2009 13:13:23 +0200
+
+distribute (0.6.4-1) unstable; urgency=low
+
+  * Build python-setuptools from the `distribute' fork.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 20 Oct 2009 00:12:26 +0200
+
+python-setuptools (0.6c9-0ubuntu5) karmic; urgency=low
+
+  * Fix building extensions with recent python 2.6.2+. Patch taken from
+    http://bitbucket.org/tarek/distribute/issue/41/. LP: #428004.
+
+ -- Matthias Klose <doko at ubuntu.com>  Sun, 13 Sep 2009 12:11:58 +0200
+
+python-setuptools (0.6c9-0ubuntu4) jaunty; urgency=low
+
+  * Update the installation schemes in easy_install to follow the modified
+    distutils install command:
+    - When the --prefix option is used for setup.py install, Use the
+      `posix' scheme. LP: #344410.
+    - Use the `deb_system' scheme if --install-layout=deb is specified.
+    - Use the the `unix_local' scheme if neither --install-layout=deb
+      nor --prefix is specified.
+  * Always use the `posix' scheme for setup.py install in a virtualenv
+    setup. LP: #339904.
+  * Error out when easy_install tries to install into /usr, unless the
+    (new) option --force-installation-into-system-dir is given (heh, this
+    option name is even longer than --single-version-externally-managed).
+
+ -- Matthias Klose <doko at ubuntu.com>  Sat, 04 Apr 2009 13:13:59 +0200
+
+python-setuptools (0.6c9-0ubuntu3) jaunty; urgency=low
+
+  * Fix interpreter name for the easy_install-2.6 script. LP: #332656.
+
+ -- Matthias Klose <doko at ubuntu.com>  Sun, 22 Feb 2009 22:25:32 +0100
+
+python-setuptools (0.6c9-0ubuntu2) jaunty; urgency=low
+
+  * Rebuild to add python2.6 support.
+
+ -- Matthias Klose <doko at ubuntu.com>  Wed, 18 Feb 2009 19:05:11 +0100
+
+python-setuptools (0.6c9-0ubuntu1) intrepid; urgency=low
+
+  * New upstream version (bug fixes from the stable branch).
+    - Adds subversion 1.5 compatibility. LP: #262636.
+
+ -- Matthias Klose <doko at ubuntu.com>  Thu, 25 Sep 2008 10:40:35 +0200
+
+python-setuptools (0.6c8-4) unstable; urgency=low
+
+  * Don't break with subversion-1.5. Closes: #489263.
+
+ -- Matthias Klose <doko at debian.org>  Sat, 12 Jul 2008 09:25:36 +0200
+
+python-setuptools (0.6c8-3) unstable; urgency=low
+
+  * Move site.py into the python-pkg-resources package.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 09 Apr 2008 22:44:47 +0200
+
+python-setuptools (0.6c8-2) unstable; urgency=low
+
+  * python-pkg-resources: Conflict with python-setuptools. Closes: #468944.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 02 Mar 2008 15:34:10 +0100
+
+python-setuptools (0.6c8-1) unstable; urgency=low
+
+  * New upstream version. Closes: #467012.
+  * Split out a python-pkg-resources package (to be used as a runtime
+    dependency instead of python-setuptools).
+
+ -- Matthias Klose <doko at debian.org>  Fri, 29 Feb 2008 01:20:15 +0100
+
+python-setuptools (0.6c7-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Matthias Klose <doko at ubuntu.com>  Fri, 02 Nov 2007 10:57:34 -0400
+
+python-setuptools (0.6c6-1) unstable; urgency=low
+
+  * New upstream version (release candidate 6). Closes: #433556.
+
+ -- Matthias Klose <doko at debian.org>  Wed, 25 Jul 2007 02:11:49 +0200
+
+python-setuptools (0.6c5-1ubuntu1) feisty; urgency=low
+
+  * Use the unversioned interpreter name for scripts without
+    version suffix. Ubuntu #94309.
+
+ -- Matthias Klose <doko at ubuntu.com>  Thu, 29 Mar 2007 10:18:33 +0000
+
+python-setuptools (0.6c5-1) unstable; urgency=low
+
+  * New upstream version (release candidate 5).
+
+ -- Matthias Klose <doko at debian.org>  Wed, 17 Jan 2007 18:00:39 +0000
+
+python-setuptools (0.6c3-3) unstable; urgency=low
+
+  * Drop 2.3.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 24 Oct 2006 00:47:58 +0200
+
+python-setuptools (0.6c3-2) unstable; urgency=low
+
+  * Build for 2.3, 2.4, 2.5.
+
+ -- Matthias Klose <doko at debian.org>  Sun, 22 Oct 2006 22:03:03 +0000
+
+python-setuptools (0.6c3-1) unstable; urgency=medium
+
+  * New upstream version (release candidate 3). Closes: #389780.
+
+ -- Matthias Klose <doko at debian.org>  Wed,  4 Oct 2006 00:49:36 +0200
+
+python-setuptools (0.6c2-1) unstable; urgency=low
+
+  * New upstream version (release candidate 2). Closes: #382573.
+  * /usr/bin/easy_install-2.3: Use python2.3 s interpreter. Closes: #386318.
+
+ -- Matthias Klose <doko at debian.org>  Fri,  8 Sep 2006 03:19:43 +0200
+
+python-setuptools (0.6b3-3) unstable; urgency=low
+
+  * Workaround #375437.
+
+ -- Matthias Klose <doko at debian.org>  Mon,  3 Jul 2006 14:08:53 +0000
+
+python-setuptools (0.6b3-2) unstable; urgency=low
+
+  * Add entry points for all versioned console scripts. Closes: #375975.
+
+ -- Matthias Klose <doko at debian.org>  Sun,  2 Jul 2006 15:14:35 +0000
+
+python-setuptools (0.6b3-1) unstable; urgency=low
+
+  * New upstream version (closes: #354621).
+    - OverflowError for amd64 build fixed (closes: #352176).
+
+ -- Matthias Klose <doko at debian.org>  Fri,  9 Jun 2006 22:14:10 +0200
+
+python-setuptools (0.6a8-0.1) unstable; urgency=low
+
+  * NMU with maintainer approval
+  * New upstream release
+  * debian/rules: Create setuptools.pth to instruct python where the
+    module is located. Closes: #330562
+
+ -- Otavio Salvador <otavio at debian.org>  Thu, 24 Nov 2005 19:26:43 -0200
+
+python-setuptools (0.6a6-1) unstable; urgency=low
+
+  * New upstream version (closes: #335101).
+
+ -- Matthias Klose <doko at debian.org>  Sun, 23 Oct 2005 13:14:22 +0000
+
+python-setuptools (0.6a2-0.1) unstable; urgency=low
+
+  * NMU with maintainer approval
+  * New upstream release
+  * Include a watch file to be easier to upgrade next time
+  * Bump Standards-Version to 3.6.2 (no changes need)
+  * Use Build-Depends-Indep since we don't build architecture dependent
+    packages
+  * Don't remove setuptools.egg-info directory on clean target since it's
+    used now on building system since it use entry_points feature to its
+    install
+
+ -- Otavio Salvador <otavio at debian.org>  Sat, 24 Sep 2005 17:00:56 -0300
+
+python-setuptools (0.5a13-1) unstable; urgency=low
+
+  * New upstream version 0.5a13.
+
+ -- Matthias Klose <doko at debian.org>  Mon, 18 Jul 2005 12:58:21 +0200
+
+python-setuptools (0.0.1.041214-0ubuntu1) hoary; urgency=low
+
+  * Initial Release.
+
+ -- Matthias Klose <m at klose.in-berlin.de>  Tue, 14 Dec 2004 12:45:14 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..57aac3c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,90 @@
+Source: setuptools
+Section: python
+Priority: optional
+Maintainer: Matthias Klose <doko at debian.org>
+Build-Depends:
+ debhelper (>= 11),
+ dh-python,
+ python3-all,
+ python3-alabaster,
+ python3-sphinx,
+ python3-sphinx-favicon,
+ python3-sphinx-reredirects,
+ python3-sphinx-notfound-page,
+ python3-wheel
+#Build-Conflicts: python-setuptools, python3-setuptools, pypy-setuptools
+Standards-Version: 4.7.0
+Homepage: https://pypi.python.org/pypi/setuptools
+
+Package: python-setuptools-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Python Distutils Enhancements (documentation)
+ Extensions to the Python distutils for large or complex distributions.
+ The package contains the documentation in html format.
+
+Package: python3-pkg-resources
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python3-setuptools
+Breaks: python3-setuptools (<< 75.2)
+Replaces: python3-setuptools (<< 75.2)
+Description: Package Discovery and Resource Access using pkg_resources
+ The pkg_resources module provides an API for Python libraries to
+ access their resource files, and for extensible applications and
+ frameworks to automatically discover plugins.  It also provides
+ runtime support for using C extensions that are inside zipfile-format
+ eggs, support for merging packages that have separately-distributed
+ modules or subpackages, and APIs for managing Python's current
+ "working set" of active packages.
+
+Package: python3-setuptools
+Architecture: all
+Multi-Arch: foreign
+Depends:
+ python3-pkg-resources (= ${binary:Version}),
+ ${misc:Depends},
+ ${python3:Depends}
+Suggests: python-setuptools-doc
+Breaks: python3-wheel (<< 0.46.0)
+Description: Python3 Distutils Enhancements
+ Extensions to the python-distutils for large or complex distributions.
+
+Package: python3-setuptools-whl
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: python-pip-whl (<< 21.3.1+dfsg-2~)
+Replaces: python-pip-whl (<< 21.3.1+dfsg-2~)
+Description: Python Distutils Enhancements (wheel package)
+ Extensions to the python-distutils for large or complex distributions.
+ .
+ This is the support package for the PEP 427 wheel version of the package,
+ required for using setuptools inside a virtual environment.
+
+#Package: pypy-pkg-resources
+#Suggests: pypy-setuptools
+#Architecture: all
+#Multi-Arch: foreign
+#Depends: ${misc:Depends}, ${pypy:Depends}
+#Description: Package Discovery and Resource Access using pkg_resources
+# The pkg_resources module provides an API for Python libraries to
+# access their resource files, and for extensible applications and
+# frameworks to automatically discover plugins.  It also provides
+# runtime support for using C extensions that are inside zipfile-format
+# eggs, support for merging packages that have separately-distributed
+# modules or subpackages, and APIs for managing Python's current
+# "working set" of active packages.
+
+#Package: pypy-setuptools
+#Architecture: all
+#Multi-Arch: foreign
+#Depends:
+# pypy-pkg-resources (= ${binary:Version}),
+# ${misc:Depends},
+# ${pypy:Depends}
+#Suggests: python-setuptools-doc
+#Description: PyPy Distutils Enhancements
+# Extensions to the python-distutils for large or complex distributions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d9046fc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,81 @@
+This package was debianized by Matthias Klose <doko at debian.org> on
+Tue, 14 Dec 2004 12:45:14 +0100.
+
+It was downloaded from
+http://pypi.python.org/pypi/setuptools
+
+Copyright:
+
+Upstream Author: Phillip J. Eby, Tarek Ziade, Jason R Coombs and
+the distutils SIG.
+
+License:
+
+Formerly, PSF or ZPL (both appended in this file). re-licensed in 19.5
+with a MIT license.
+
+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.
+
+setuptools/_vendor/packaging:
+
+Copyright: Copyright (C) 2014 Donald Stufft
+           Copyright (C) 2012-2013 Vinay Sajip
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ Complete license text at /usr/share/common-licenses/Apache-2.0.
+
+Files: debian/*
+Copyright: 2004-2020 Matthias Klose <doko at debian.org>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
+ A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE HOLDERS OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/patches/PKG-INFO-output-reproducible.diff b/debian/patches/PKG-INFO-output-reproducible.diff
new file mode 100644
index 0000000..cf4752f
--- /dev/null
+++ b/debian/patches/PKG-INFO-output-reproducible.diff
@@ -0,0 +1,11 @@
+--- a/setuptools/dist.py
++++ b/setuptools/dist.py
+@@ -226,7 +226,7 @@ def write_pkg_file(self, file):  # noqa:
+     if self.long_description_content_type:
+         write_field('Description-Content-Type', self.long_description_content_type)
+     if self.provides_extras:
+-        for extra in self.provides_extras:
++        for extra in sorted(self.provides_extras):
+             write_field('Provides-Extra', extra)
+ 
+     self._write_list(file, 'License-File', self.license_files or [])
diff --git a/debian/patches/dont-require-vendored-modules.diff b/debian/patches/dont-require-vendored-modules.diff
new file mode 100644
index 0000000..5e16acb
--- /dev/null
+++ b/debian/patches/dont-require-vendored-modules.diff
@@ -0,0 +1,18 @@
+--- a/PKG-INFO
++++ b/PKG-INFO
+@@ -57,15 +57,6 @@ Requires-Dist: towncrier<24.7; extra ==
+ Provides-Extra: ssl
+ Provides-Extra: certs
+ Provides-Extra: core
+-Requires-Dist: packaging>=24.2; extra == "core"
+-Requires-Dist: more_itertools>=8.8; extra == "core"
+-Requires-Dist: jaraco.text>=3.7; extra == "core"
+-Requires-Dist: importlib_metadata>=6; python_version < "3.10" and extra == "core"
+-Requires-Dist: tomli>=2.0.1; python_version < "3.11" and extra == "core"
+-Requires-Dist: wheel>=0.43.0; extra == "core"
+-Requires-Dist: platformdirs>=4.2.2; extra == "core"
+-Requires-Dist: jaraco.functools>=4; extra == "core"
+-Requires-Dist: more_itertools; extra == "core"
+ Provides-Extra: check
+ Requires-Dist: pytest-checkdocs>=2.4; extra == "check"
+ Requires-Dist: pytest-ruff>=0.2.1; sys_platform != "cygwin" and extra == "check"
diff --git a/debian/patches/fix-changes-link.diff b/debian/patches/fix-changes-link.diff
new file mode 100644
index 0000000..3bbf3af
--- /dev/null
+++ b/debian/patches/fix-changes-link.diff
@@ -0,0 +1,11 @@
+--- a/docs/history.rst
++++ b/docs/history.rst
+@@ -7,7 +7,7 @@ History
+ 
+ .. towncrier-draft-entries:: DRAFT, unreleased as on |today|
+ 
+-.. include:: ../CHANGES (links).rst
++.. include:: ../CHANGES.rst
+ 
+ Credits
+ *******
diff --git a/debian/patches/install-layout.diff b/debian/patches/install-layout.diff
new file mode 100644
index 0000000..9a5a9c8
--- /dev/null
+++ b/debian/patches/install-layout.diff
@@ -0,0 +1,163 @@
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -143,6 +143,8 @@ class easy_install(Command):
+         ('allow-hosts=', 'H', "pattern(s) that hostnames must match"),
+         ('local-snapshots-ok', 'l', "allow building eggs from local checkouts"),
+         ('version', None, "print version information and exit"),
++        ('install-layout=', None, "installation layout to choose (known values: deb)"),
++        ('force-installation-into-system-dir', '0', "force installation into /usr"),
+         (
+             'no-find-links',
+             None,
+@@ -157,7 +159,7 @@ class easy_install(Command):
+         'upgrade',
+         'always-copy',
+         'editable',
+-        'no-deps',
++        'no-deps', 'local-snapshots-ok', 'force-installation-into-system-dir'
+         'local-snapshots-ok',
+         'version',
+         'user',
+@@ -200,6 +202,10 @@ class easy_install(Command):
+         self.pth_file = self.always_copy_from = None
+         self.site_dirs = None
+         self.installed_projects = {}
++        # enable custom installation, known values: deb
++        self.install_layout = None
++        self.force_installation_into_system_dir = None
++
+         # Always read easy_install options, even if we are subclassed, or have
+         # an independent instance created.  This ensures that defaults will
+         # always come from the standard configuration file(s)' "easy_install"
+@@ -282,6 +288,11 @@ class easy_install(Command):
+         self.expand_basedirs()
+         self.expand_dirs()
+ 
++        if self.install_layout:
++            if not self.install_layout.lower() in ['deb']:
++                raise DistutilsOptionError("unknown value for --install-layout")
++            self.install_layout = self.install_layout.lower()
++
+         self._expand(
+             'install_dir',
+             'script_dir',
+@@ -306,6 +317,15 @@ class easy_install(Command):
+         if self.user and self.install_purelib:
+             self.install_dir = self.install_purelib
+             self.script_dir = self.install_scripts
++
++        if self.prefix == '/usr' and not self.force_installation_into_system_dir:
++            raise DistutilsOptionError("""installation into /usr
++
++Trying to install into the system managed parts of the file system. Please
++consider to install to another location, or use the option
++--force-installation-into-system-dir to overwrite this warning.
++""")
++
+         # default --record from the install command
+         self.set_undefined_options('install', ('record', 'record'))
+         self.all_site_dirs = get_site_dirs()
+@@ -1377,11 +1397,28 @@ class easy_install(Command):
+                 self.debug_print(f"os.makedirs('{path}', 0o700)")
+                 os.makedirs(path, 0o700)
+ 
++    if sys.version[:3] in ('2.3', '2.4', '2.5') or 'real_prefix' in sys.__dict__:
++        sitedir_name = 'site-packages'
++    else:
++        sitedir_name = 'dist-packages'
++
+     INSTALL_SCHEMES = dict(
+         posix=dict(
+             install_dir='$base/lib/python$py_version_short/site-packages',
+             script_dir='$base/bin',
+         ),
++        unix_local = dict(
++            install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
++            script_dir  = '$base/local/bin',
++        ),
++        posix_local = dict(
++            install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
++            script_dir  = '$base/local/bin',
++        ),
++        deb_system = dict(
++            install_dir = '$base/lib/python3/%s' % sitedir_name,
++            script_dir  = '$base/bin',
++        ),
+     )
+ 
+     DEFAULT_SCHEME = dict(
+@@ -1392,11 +1429,18 @@ class easy_install(Command):
+     def _expand(self, *attrs):
+         config_vars = self.get_finalized_command('install').config_vars
+ 
+-        if self.prefix:
++        if self.prefix or self.install_layout:
++            if self.install_layout and self.install_layout in ['deb']:
++                    scheme_name = "deb_system"
++                    self.prefix = '/usr'
++            elif self.prefix or 'real_prefix' in sys.__dict__:
++                scheme_name = os.name
++            else:
++                scheme_name = "posix_local"
+             # Set default install_dir/scripts from --prefix
+             config_vars = dict(config_vars)
+             config_vars['base'] = self.prefix
+-            scheme = self.INSTALL_SCHEMES.get(os.name, self.DEFAULT_SCHEME)
++            scheme = self.INSTALL_SCHEMES.get(scheme_name,self.DEFAULT_SCHEME)
+             for attr, val in scheme.items():
+                 if getattr(self, attr, None) is None:
+                     setattr(self, attr, val)
+@@ -1440,9 +1484,15 @@ def get_site_dirs():
+             sitedirs.extend([
+                 os.path.join(
+                     prefix,
++                    "local/lib",
++                    f"python{sys.version_info.major}.{sys.version_info.minor}",
++                    "dist-packages",
++                ),
++                os.path.join(
++                    prefix,
+                     "lib",
+                     f"python{sys.version_info.major}.{sys.version_info.minor}",
+-                    "site-packages",
++                    "dist-packages",
+                 ),
+                 os.path.join(prefix, "lib", "site-python"),
+             ])
+--- a/setuptools/command/install_egg_info.py
++++ b/setuptools/command/install_egg_info.py
+@@ -1,4 +1,4 @@
+-import os
++import os, sys
+ 
+ from setuptools import Command, namespaces
+ from setuptools.archive_util import unpack_archive
+@@ -19,11 +19,28 @@ class install_egg_info(namespaces.Instal
+ 
+     def initialize_options(self):
+         self.install_dir = None
++        self.install_layout = None
++        self.prefix_option = None
+ 
+     def finalize_options(self) -> None:
+         self.set_undefined_options('install_lib', ('install_dir', 'install_dir'))
++        self.set_undefined_options('install',('install_layout','install_layout'))
++        if sys.hexversion > 0x2060000:
++            self.set_undefined_options('install',('prefix_option','prefix_option'))
+         ei_cmd = self.get_finalized_command("egg_info")
+         basename = f"{ei_cmd._get_egg_basename()}.egg-info"
++
++        if self.install_layout:
++            if not self.install_layout.lower() in ['deb']:
++                raise DistutilsOptionError("unknown value for --install-layout")
++            self.install_layout = self.install_layout.lower()
++            basename = basename.replace('-py%s' % sys.version[:4], '')
++        elif self.prefix_option or 'real_prefix' in sys.__dict__:
++            # don't modify for virtualenv
++            pass
++        else:
++            basename = basename.replace('-py%s' % sys.version[:4], '')
++
+         self.source = ei_cmd.egg_info
+         self.target = os.path.join(self.install_dir, basename)
+         self.outputs: list[str] = []
diff --git a/debian/patches/multiarch-extname.diff b/debian/patches/multiarch-extname.diff
new file mode 100644
index 0000000..731796f
--- /dev/null
+++ b/debian/patches/multiarch-extname.diff
@@ -0,0 +1,74 @@
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -205,6 +205,7 @@ class easy_install(Command):
+         # enable custom installation, known values: deb
+         self.install_layout = None
+         self.force_installation_into_system_dir = None
++        self.multiarch = None
+ 
+         # Always read easy_install options, even if we are subclassed, or have
+         # an independent instance created.  This ensures that defaults will
+@@ -293,6 +294,9 @@ class easy_install(Command):
+                 raise DistutilsOptionError("unknown value for --install-layout")
+             self.install_layout = self.install_layout.lower()
+ 
++            if sys.version_info[:2] >= (3, 3):
++                self.multiarch = sysconfig.get_config_var('MULTIARCH')
++
+         self._expand(
+             'install_dir',
+             'script_dir',
+--- a/setuptools/command/install_lib.py
++++ b/setuptools/command/install_lib.py
+@@ -15,6 +15,18 @@ class install_lib(orig.install_lib):
+ 
+     distribution: Distribution  # override distutils.dist.Distribution with setuptools.dist.Distribution
+ 
++    def initialize_options(self):
++        orig.install_lib.initialize_options(self)
++        self.multiarch = None
++        self.install_layout = None
++
++    def finalize_options(self):
++        orig.install_lib.finalize_options(self)
++        self.set_undefined_options('install',('install_layout','install_layout'))
++        if self.install_layout == 'deb' and sys.version_info[:2] >= (3, 3):
++            import sysconfig
++            self.multiarch = sysconfig.get_config_var('MULTIARCH')
++
+     def run(self) -> None:
+         self.build()
+         outfiles = self.install()
+@@ -107,6 +119,8 @@ class install_lib(orig.install_lib):
+         exclude = self.get_exclusions()
+ 
+         if not exclude:
++            import distutils.dir_util
++            distutils.dir_util._multiarch = self.multiarch
+             return orig.install_lib.copy_tree(self, infile, outfile)
+ 
+         # Exclude namespace package __init__.py* files from the output
+@@ -117,11 +131,23 @@ class install_lib(orig.install_lib):
+ 
+         outfiles: list[str] = []
+ 
++        if self.multiarch:
++            import sysconfig
++            ext_suffix = sysconfig.get_config_var ('EXT_SUFFIX')
++            if ext_suffix.endswith(self.multiarch + ext_suffix[-3:]):
++                new_suffix = None
++            else:
++                new_suffix = "%s-%s%s" % (ext_suffix[:-3], self.multiarch, ext_suffix[-3:])
++
+         def pf(src: str, dst: str):
+             if dst in exclude:
+                 log.warn("Skipping installation of %s (namespace package)", dst)
+                 return False
+ 
++            if self.multiarch and new_suffix and dst.endswith(ext_suffix) and not dst.endswith(new_suffix):
++                dst = dst.replace(ext_suffix, new_suffix)
++                log.info("renaming extension to %s", os.path.basename(dst))
++
+             log.info("copying %s -> %s", src, os.path.dirname(dst))
+             outfiles.append(dst)
+             return dst
diff --git a/debian/patches/multiple-entrypoints.diff b/debian/patches/multiple-entrypoints.diff
new file mode 100644
index 0000000..2b0779f
--- /dev/null
+++ b/debian/patches/multiple-entrypoints.diff
@@ -0,0 +1,26 @@
+# this patch is currently not used, not providing entry points for all interpreters
+
+Index: b/setup.py
+===================================================================
+--- a/setup.py
++++ b/setup.py
+@@ -45,8 +45,17 @@ def _gen_console_scripts():
+     )
+     if any(os.environ.get(var) not in (None, "", "0") for var in var_names):
+         return
+-    yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
+-        .format(shortver=sys.version[:3]))
++    if sys.version_info[0] < 3 and 'XPYVERSISONS' in os.environ:
++        for version in os.environ['XPYVERSIONS'].split():
++            yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
++                   .format(shortver=version))
++    elif sys.version_info[0] >= 3 and 'XPY3VERSIONS' in os.environ:
++        for version in os.environ['XPY3VERSIONS'].split():
++            yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
++                   .format(shortver=version))
++    else:
++        yield ("easy_install-{shortver} = setuptools.command.easy_install:main"
++               .format(shortver=sys.version[:3]))
+ 
+ 
+ readme_path = os.path.join(here, 'README.rst')
diff --git a/debian/patches/no-SOURCES.txt-in-egg-ingo.diff b/debian/patches/no-SOURCES.txt-in-egg-ingo.diff
new file mode 100644
index 0000000..05c0204
--- /dev/null
+++ b/debian/patches/no-SOURCES.txt-in-egg-ingo.diff
@@ -0,0 +1,12 @@
+--- a/setuptools/command/install_egg_info.py
++++ b/setuptools/command/install_egg_info.py
+@@ -68,6 +68,9 @@ class install_egg_info(namespaces.Instal
+             for skip in '.svn/', 'CVS/':
+                 if src.startswith(skip) or '/' + skip in src:
+                     return None
++            if self.install_layout and self.install_layout in ['deb'] and src.startswith('SOURCES.txt'):
++                log.info("Skipping SOURCES.txt")
++                return None
+             self.outputs.append(dst)
+             log.debug("Copying %s to %s", src, dst)
+             return dst
diff --git a/debian/patches/no-sidebar.diff b/debian/patches/no-sidebar.diff
new file mode 100644
index 0000000..fc3d287
--- /dev/null
+++ b/debian/patches/no-sidebar.diff
@@ -0,0 +1,78 @@
+--- /dev/null
++++ b/docs/Makefile
+@@ -0,0 +1,75 @@
++# Makefile for Sphinx documentation
++#
++
++# You can set these variables from the command line.
++SPHINXOPTS    =
++SPHINXBUILD   = sphinx-build
++PAPER         =
++
++# Internal variables.
++PAPEROPT_a4     = -D latex_paper_size=a4
++PAPEROPT_letter = -D latex_paper_size=letter
++ALLSPHINXOPTS   = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
++
++.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
++
++help:
++	@echo "Please use \`make <target>' where <target> is one of"
++	@echo "  html      to make standalone HTML files"
++	@echo "  pickle    to make pickle files"
++	@echo "  json      to make JSON files"
++	@echo "  htmlhelp  to make HTML files and a HTML help project"
++	@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
++	@echo "  changes   to make an overview over all changed/added/deprecated items"
++	@echo "  linkcheck to check all external links for integrity"
++
++clean:
++	-rm -rf build/*
++
++html:
++	mkdir -p build/html build/doctrees
++	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
++	@echo
++	@echo "Build finished. The HTML pages are in build/html."
++
++pickle:
++	mkdir -p build/pickle build/doctrees
++	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
++	@echo
++	@echo "Build finished; now you can process the pickle files."
++
++web: pickle
++
++json:
++	mkdir -p build/json build/doctrees
++	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
++	@echo
++	@echo "Build finished; now you can process the JSON files."
++
++htmlhelp:
++	mkdir -p build/htmlhelp build/doctrees
++	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
++	@echo
++	@echo "Build finished; now you can run HTML Help Workshop with the" \
++	      ".hhp project file in build/htmlhelp."
++
++latex:
++	mkdir -p build/latex build/doctrees
++	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
++	@echo
++	@echo "Build finished; the LaTeX files are in build/latex."
++	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
++	      "run these through (pdf)latex."
++
++changes:
++	mkdir -p build/changes build/doctrees
++	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
++	@echo
++	@echo "The overview file is in build/changes."
++
++linkcheck:
++	mkdir -p build/linkcheck build/doctrees
++	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
++	@echo
++	@echo "Link check complete; look for any errors in the above output " \
++	      "or in build/linkcheck/output.txt."
diff --git a/debian/patches/no-sphinx-custom-icons.diff b/debian/patches/no-sphinx-custom-icons.diff
new file mode 100644
index 0000000..4e4fcd6
--- /dev/null
+++ b/debian/patches/no-sphinx-custom-icons.diff
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -213,7 +213,7 @@ towncrier_draft_include_empty = False
+ #extensions += ['jaraco.tidelift']
+ 
+ # Add icons (aka "favicons") to documentation
+-extensions += ['sphinx-favicon']
++#extensions += ['sphinx-favicon']
+ html_static_path = ['images']  # should contain the folder with icons
+ 
+ # Add support for nice Not Found 404 pages
diff --git a/debian/patches/no-sphinx-inline-tabs.diff b/debian/patches/no-sphinx-inline-tabs.diff
new file mode 100644
index 0000000..14d02e2
--- /dev/null
+++ b/debian/patches/no-sphinx-inline-tabs.diff
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -159,7 +159,7 @@ redirects = {
+ }
+ 
+ # Add support for inline tabs
+-extensions += ['sphinx_inline_tabs']
++#extensions += ['sphinx_inline_tabs']
+ 
+ # Support for distutils
+ 
diff --git a/debian/patches/no-sphinx-jaraco-tidelift.diff b/debian/patches/no-sphinx-jaraco-tidelift.diff
new file mode 100644
index 0000000..f10a3bf
--- /dev/null
+++ b/debian/patches/no-sphinx-jaraco-tidelift.diff
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -220,7 +220,7 @@ towncrier_draft_include_empty = False
+ # sphinx-contrib/sphinxcontrib-towncrier#81
+ towncrier_draft_config_path = 'towncrier.toml'
+ 
+-extensions += ['jaraco.tidelift']
++#extensions += ['jaraco.tidelift']
+ 
+ # Add icons (aka "favicons") to documentation
+ extensions += ['sphinx_favicon']
diff --git a/debian/patches/no-sphinx-rst.linker.diff b/debian/patches/no-sphinx-rst.linker.diff
new file mode 100644
index 0000000..3f21d9a
--- /dev/null
+++ b/debian/patches/no-sphinx-rst.linker.diff
@@ -0,0 +1,17 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -2,12 +2,13 @@ extensions = [
+     'sphinx.ext.autodoc',
+     'jaraco.packaging.sphinx',
+ ]
++extensions = []
+ 
+ master_doc = "index"
+ html_theme = "furo"
+ 
+ # Link dates and other references in the changelog
+-extensions += ['rst.linker']
++#extensions += ['rst.linker']
+ link_files = {
+     '../NEWS.rst': dict(
+         using=dict(
diff --git a/debian/patches/no-sphinx-towncrier.diff b/debian/patches/no-sphinx-towncrier.diff
new file mode 100644
index 0000000..9f9c6db
--- /dev/null
+++ b/debian/patches/no-sphinx-towncrier.diff
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -212,7 +212,7 @@ intersphinx_mapping.update(
+ )
+ 
+ # Add support for the unreleased "next-version" change notes
+-extensions += ['sphinxcontrib.towncrier']
++#extensions += ['sphinxcontrib.towncrier']
+ # Extension needs a path from here to the towncrier config.
+ towncrier_draft_working_directory = '..'
+ # Avoid an empty section for unpublished changes.
diff --git a/debian/patches/reproducible.diff b/debian/patches/reproducible.diff
new file mode 100644
index 0000000..1386ad4
--- /dev/null
+++ b/debian/patches/reproducible.diff
@@ -0,0 +1,22 @@
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -460,7 +460,7 @@ consider to install to another location,
+             for spec in self.args:
+                 self.easy_install(spec, not self.no_deps)
+             if self.record:
+-                outputs = self.outputs
++                outputs = list(sorted(self.outputs))
+                 if self.root:  # strip any package prefix
+                     root_len = len(self.root)
+                     for counter in range(len(outputs)):
+--- a/setuptools/_core_metadata.py
++++ b/setuptools/_core_metadata.py
+@@ -226,7 +226,7 @@ def _write_requirements(self, file):
+ 
+         if extra:
+             _write_provides_extra(file, processed_extras, extra, unsafe_extra)
+-        for req in _reqs.parse_strings(reqs):
++        for req in sorted(_reqs.parse_strings(reqs)):
+             r = _include_extra(req, extra, condition.strip())
+             file.write(f"Requires-Dist: {r}\n")
+ 
diff --git a/debian/patches/revert-shebang-change.diff b/debian/patches/revert-shebang-change.diff
new file mode 100644
index 0000000..22a9cbb
--- /dev/null
+++ b/debian/patches/revert-shebang-change.diff
@@ -0,0 +1,39 @@
+Description: revert "Always rewrite a Python shebang to #!python"
+ In Debian, we have no /usr/bin/python executable, and this change
+ broke build of some packages.
+ .
+ This reverts commit c71266345c64fd662b5f95bbbc6e4536172f496d.
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: not-needed
+Last-Update: 2025-04-18
+
+--- a/setuptools/_distutils/command/build_scripts.py
++++ b/setuptools/_distutils/command/build_scripts.py
+@@ -5,6 +5,7 @@ Implements the Distutils 'build_scripts'
+ import os
+ import re
+ import tokenize
++from distutils import sysconfig
+ from distutils._log import log
+ from stat import ST_MODE
+ from typing import ClassVar
+@@ -105,8 +106,18 @@ class build_scripts(Command):
+         if shebang_match:
+             log.info("copying and adjusting %s -> %s", script, self.build_dir)
+             if not self.dry_run:
++                if not sysconfig.python_build:
++                    executable = self.executable
++                else:
++                    executable = os.path.join(
++                        sysconfig.get_config_var("BINDIR"),
++                        "python{}{}".format(
++                            sysconfig.get_config_var("VERSION"),
++                            sysconfig.get_config_var("EXE"),
++                        ),
++                    )
+                 post_interp = shebang_match.group(1) or ''
+-                shebang = f"#!python{post_interp}\n"
++                shebang = "#!" + executable + post_interp + "\n"
+                 self._validate_shebang(shebang, f.encoding)
+                 with open(outfile, "w", encoding=f.encoding) as outf:
+                     outf.write(shebang)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e0f24f1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,16 @@
+install-layout.diff
+multiarch-extname.diff
+no-sphinx-rst.linker.diff
+#fix-changes-link.diff
+#multiple-entrypoints.diff
+no-SOURCES.txt-in-egg-ingo.diff
+reproducible.diff
+sorted-requires.diff
+#PKG-INFO-output-reproducible.diff
+no-sidebar.diff
+no-sphinx-inline-tabs.diff
+no-sphinx-towncrier.diff
+no-sphinx-jaraco-tidelift.diff
+sphinx-theme.diff
+dont-require-vendored-modules.diff
+revert-shebang-change.diff
diff --git a/debian/patches/sorted-requires.diff b/debian/patches/sorted-requires.diff
new file mode 100644
index 0000000..dd67eae
--- /dev/null
+++ b/debian/patches/sorted-requires.diff
@@ -0,0 +1,11 @@
+--- a/setuptools/command/_requirestxt.py
++++ b/setuptools/command/_requirestxt.py
+@@ -108,7 +108,7 @@ def _write_requirements(stream, reqs):
+     def append_cr(line):
+         return line + '\n'
+ 
+-    lines = map(append_cr, lines)
++    lines = map(append_cr, sorted(lines))
+     stream.writelines(lines)
+ 
+ 
diff --git a/debian/patches/sphinx-theme.diff b/debian/patches/sphinx-theme.diff
new file mode 100644
index 0000000..e9a1e40
--- /dev/null
+++ b/debian/patches/sphinx-theme.diff
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -136,7 +136,7 @@ extensions += ['sphinx.ext.extlinks']
+ default_role = 'any'
+ 
+ # HTML theme
+-html_theme = 'furo'
++html_theme = 'alabaster'
+ html_logo = "images/logo.svg"
+ 
+ html_theme_options = {
diff --git a/debian/pypy-pkg-resources.install b/debian/pypy-pkg-resources.install
new file mode 100644
index 0000000..4ca7ae8
--- /dev/null
+++ b/debian/pypy-pkg-resources.install
@@ -0,0 +1 @@
+/usr/lib/pypy/dist-packages/pkg_resources
diff --git a/debian/pypy-setuptools.install b/debian/pypy-setuptools.install
new file mode 100644
index 0000000..9661712
--- /dev/null
+++ b/debian/pypy-setuptools.install
@@ -0,0 +1,2 @@
+/usr/lib/pypy/dist-packages/setuptools*
+/usr/lib/pypy/dist-packages/_distutils_hack
diff --git a/debian/python3-pkg-resources.install b/debian/python3-pkg-resources.install
new file mode 100644
index 0000000..49470c3
--- /dev/null
+++ b/debian/python3-pkg-resources.install
@@ -0,0 +1 @@
+/usr/lib/python3.*/*-packages/pkg_resources
diff --git a/debian/python3-setuptools.install b/debian/python3-setuptools.install
new file mode 100644
index 0000000..73f4c46
--- /dev/null
+++ b/debian/python3-setuptools.install
@@ -0,0 +1,3 @@
+/usr/lib/python3.*/*-packages/setuptools*
+/usr/lib/python3.*/*-packages/_distutils_hack
+/usr/lib/python3.*/*-packages/distutils-precedence.pth
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..30986a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,72 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python3,sphinxdoc --buildsystem pybuild
+
+override_dh_auto_test:
+
+v_dir := usr/lib/$(shell py3versions -d)/dist-packages/setuptools/_vendor
+
+override_dh_auto_install:
+	dh_auto_install
+
+	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
+
+	mkdir -p debian/python3-setuptools-whl/usr/share/python-wheels
+	python3 setup.py bdist_wheel \
+	        -d debian/python3-setuptools-whl/usr/share/python-wheels
+
+	# dh_pypy from dh-python < 1.20150705-1 falls over requires.txt
+	# and our requires.txt aren't useful
+	find debian/tmp -name requires.txt -delete
+
+	find debian/tmp -name '*.exe' | xargs -r rm -f
+
+override_dh_install:
+	dh_install
+	find debian/python3-pkg-resources
+	find debian/python3-setuptools
+	: # move vendored modules required by pkg_resources
+	set -e; \
+	for py in $$(py3versions -s); do \
+	  vdir=usr/lib/$$py/dist-packages/setuptools/_vendor; \
+	  mkdir -p debian/python3-pkg-resources/$$vdir/jaraco; \
+	  mv \
+	    debian/python3-setuptools/$$vdir/packaging \
+	    debian/python3-setuptools/$$vdir/packaging-*.dist-info \
+	    debian/python3-setuptools/$$vdir/platformdirs \
+	    debian/python3-setuptools/$$vdir/platformdirs-*.dist-info \
+	    debian/python3-setuptools/$$vdir/jaraco.text-*.dist-info \
+		debian/python3-pkg-resources/$$vdir/.; \
+	  mv \
+	    debian/python3-setuptools/$$vdir/jaraco/text \
+		debian/python3-pkg-resources/$$vdir/jaraco/.; \
+	done
+	find debian/python3-pkg-resources
+	find debian/python3-setuptools
+
+
+override_dh_installchangelogs:
+	dh_installchangelogs NEWS.rst
+
+override_dh_auto_clean:
+#	Dont run dh_auto_clean, dh-python now removes the egg-info dir.
+#	dh_auto_clean
+	rm -rf .pybuild
+	rm -rf build
+
+	rm -rf .eggs docs/build
+
+override_dh_installdocs:
+	dh_installdocs -p python3-pkg-resources \
+	               docs/pkg_resources.rst
+	dh_installdocs -p python3-setuptools \
+	               -X pkg_resources docs/*.rst
+	dh_installdocs -p python-setuptools-doc docs/build/html
+	dh_installdocs --remaining-packages
+	dh_link -p python-setuptools-doc \
+	        /usr/share/doc/python-setuptools-doc/html \
+	        /usr/share/doc/python3-setuptools/html \
+
+#	        /usr/share/doc/python-setuptools-doc/html \
+#	        /usr/share/doc/pypy-setuptools/html
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..6e7c1a7
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,9 @@
+# Source is included for these files, they can be built in Debian with the
+# mingw toolchain, and the are not shipped in the binary, so this is OK for
+# Debian.  It is not worth repacking the tarball just for this.
+setuptools source: source-contains-prebuilt-windows-binary setuptools/cli-32.exe
+setuptools source: source-contains-prebuilt-windows-binary setuptools/cli-64.exe
+setuptools source: source-contains-prebuilt-windows-binary setuptools/cli.exe
+setuptools source: source-contains-prebuilt-windows-binary setuptools/gui-32.exe
+setuptools source: source-contains-prebuilt-windows-binary setuptools/gui-64.exe
+setuptools source: source-contains-prebuilt-windows-binary setuptools/gui.exe
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..083a287
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://pypi.debian.net/setuptools/setuptools-(78\..*)\.(?:tar\.gz|zip)


More information about the Neon-commits mailing list