Debian Patches
Status for python-etelemetry/0.3.1-3
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| Remove-deprecated-distutils-usage-from-versioneer_py.patch | Remove deprecated distutils usage from versioneer.py The bundled versioneer.py uses the deprecated Python standard library module 'distutils', which has been deprecated since Python 3.10 and removed in Python 3.12. This patch replaces all remaining imports of distutils with their setuptools equivalents and removes legacy fallback code paths that attempted to support both distutils and setuptools. In the Debian build environment, setuptools is always available, so these fallbacks are no longer necessary. This ensures compatibility with Python 3.12+ and avoids Lintian warnings about deprecated distutils usage. |
Karsten Schöke <karsten.schoeke@geobasis-bb.de> | not-needed | 2026-04-13 | ||
| insert-pyproject.toml.patch | insert pyproject.toml | Karsten Schöke <karsten.schoeke@geobasis-bb.de> | not-needed | 2026-10-28 | ||
| Drop-versioneer.patch | Drop versioneer dependency from build and runtime versioneer derives the version via "git describe", which cannot work in the Debian build (no git tree). It would fall back to the placeholder version "0+unknown" and, since Python 3.12, also fails to load because it relies on the removed distutils module. This patch removes versioneer entirely: - in setup.py the upstream version is read from the DEB_VERSION_UPSTREAM environment variable (set by dpkg-buildpackage from debian/changelog), so the PEP 517 wheel build gets a stable, PEP 440 compliant version without invoking the versioneer engine; - in etelemetry/__init__.py __version__ is read from the installed package metadata via importlib.metadata, so the vendored _version.py and its git invocation are no longer needed at runtime. |
Karsten Schöke <karsten.schoeke@geobasis-bb.de> | not-needed | 2026-10-28 |
