Dmitry Shachnev pushed to branch master at Debian Python Team / packages / sphinxcontrib-autoprogram
Commits: 5577199d by Dmitry Shachnev at 2026-09-19T20:28:14+03:00 Add a patch to stop using pkg_resources. Closes: #1147859. - - - - - 3 changed files: - debian/changelog - + debian/patches/Stop-using-deprecated-pkg_resources.patch - + debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +sphinxcontrib-autoprogram (0.1.9-2) UNRELEASED; urgency=medium + + * Add a patch to stop using pkg_resources (closes: #1147859). + + -- Dmitry Shachnev <[email protected]> Sat, 19 Sep 2026 20:09:43 +0300 + sphinxcontrib-autoprogram (0.1.9-1) unstable; urgency=medium * Team upload. ===================================== debian/patches/Stop-using-deprecated-pkg_resources.patch ===================================== @@ -0,0 +1,46 @@ +From: Dmitry Shachnev <[email protected]> +Date: Sat, 19 Sep 2026 16:26:12 +0300 +Subject: Stop using deprecated pkg_resources + +Rely on PEP 420 implicit namespace packages instead. + +(cherry picked from commit 39f788a89ef4b307fafd31788f9e7d5182b621c6) +--- + setup.py | 3 +-- + sphinxcontrib/__init__.py | 13 ------------- + 2 files changed, 1 insertion(+), 15 deletions(-) + delete mode 100644 sphinxcontrib/__init__.py + +diff --git a/setup.py b/setup.py +index 34621aa..9602325 100644 +--- a/setup.py ++++ b/setup.py +@@ -49,8 +49,7 @@ setup( + ], + python_requires='>=3.8', + platforms='any', +- packages=find_packages(), +- namespace_packages=['sphinxcontrib'], ++ py_modules=['sphinxcontrib.autoprogram'], + include_package_data=True, + install_requires=requires, + test_suite='sphinxcontrib.autoprogram.suite' +diff --git a/sphinxcontrib/__init__.py b/sphinxcontrib/__init__.py +deleted file mode 100644 +index 47685e7..0000000 +--- a/sphinxcontrib/__init__.py ++++ /dev/null +@@ -1,13 +0,0 @@ +-# -*- coding: utf-8 -*- +-""" +- sphinxcontrib +- ~~~~~~~~~~~~~ +- +- This package is a namespace package that contains all extensions +- distributed in the ``sphinx-contrib`` distribution. +- +- :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. +- :license: BSD, see LICENSE for details. +-""" +- +-__import__("pkg_resources").declare_namespace(__name__) ===================================== debian/patches/series ===================================== @@ -0,0 +1 @@ +Stop-using-deprecated-pkg_resources.patch View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/commit/5577199d7889070ee399b8698a175eeeee38603b -- View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/commit/5577199d7889070ee399b8698a175eeeee38603b You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
