[med-svn] [Git][med-team/python-etelemetry][master] 2 commits: switched to PEP-517/Wheel build.
Karsten Schöke (@karso)
gitlab at salsa.debian.org
Wed Oct 28 10:21:09 GMT 2026
Karsten Schöke pushed to branch master at Debian Med / python-etelemetry
Commits:
13727531 by Karsten Schöke at 2026-10-28T11:18:26+01:00
switched to PEP-517/Wheel build.
- - - - -
5c2a7fc2 by Karsten Schöke at 2026-10-28T11:18:51+01:00
Update changelog for 0.3.1-3 release
- - - - -
6 changed files:
- debian/changelog
- debian/control
- + debian/patches/Drop-versioneer.patch
- + debian/patches/insert-pyproject.toml.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,10 +1,15 @@
-python-etelemetry (0.3.1-3) UNRELEASED; urgency=medium
+python-etelemetry (0.3.1-3) unstable; urgency=medium
+ * Team upload.
+ [ Ujjwal Sarswat ]
* d/rules: stop deleting the egg-info *.txt files; requires.txt is needed
by dh_python3 to generate the python3-ci-info and python3-packaging
dependencies.
- -- Ujjwal Sarswat <ujjwal.sarswat at canonical.com> Fri, 25 Sep 2026 10:31:20 +0530
+ [ Karsten Schöke ]
+ * switched to PEP-517/Wheel build.
+
+ -- Karsten Schöke <karsten.schoeke at geobasis-bb.de> Wed, 28 Oct 2026 11:18:47 +0100
python-etelemetry (0.3.1-2) unstable; urgency=medium
=====================================
debian/control
=====================================
@@ -5,6 +5,7 @@ Uploaders: Andreas Tille <tille at debian.org>,
Yaroslav Halchenko <debian at onerussian.com>,
Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
+ pybuild-plugin-pyproject,
python3-all,
python3-ci-info,
python3-requests <!nocheck>,
=====================================
debian/patches/Drop-versioneer.patch
=====================================
@@ -0,0 +1,51 @@
+From: =?utf-8?q?Karsten_Sch=C3=B6ke?= <karsten.schoeke at geobasis-bb.de>
+Date: Wed, 28 Oct 2026 09:26:04 +0100
+Subject: Drop versioneer
+Description: 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.
+
+Forwarded: not-needed
+---
+ etelemetry/__init__.py | 4 ++--
+ setup.py | 5 ++---
+ 2 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/etelemetry/__init__.py b/etelemetry/__init__.py
+index 7d17277..d6a2118 100644
+--- a/etelemetry/__init__.py
++++ b/etelemetry/__init__.py
+@@ -1,4 +1,4 @@
+ from .client import get_project, check_available_version, BadVersionError
+
+-from . import _version
+-__version__ = _version.get_versions()['version']
++from importlib.metadata import version as _pkg_version
++__version__ = _pkg_version("etelemetry")
+diff --git a/setup.py b/setup.py
+index 4638c81..0be0517 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,10 +1,9 @@
++import os
+ from setuptools import setup
+-import versioneer
+
+
+ if __name__ == "__main__":
+ setup(
+ name="etelemetry",
+- version=versioneer.get_version(),
+- cmdclass=versioneer.get_cmdclass(),
++ version=os.environ.get("DEB_VERSION_UPSTREAM") or "0.0.0",
+ )
=====================================
debian/patches/insert-pyproject.toml.patch
=====================================
@@ -0,0 +1,19 @@
+From: =?utf-8?q?Karsten_Sch=C3=B6ke?= <karsten.schoeke at geobasis-bb.de>
+Date: Wed, 28 Oct 2026 08:11:52 +0100
+Subject: insert pyproject.toml
+
+Forwarded: not-needed
+---
+ pyproject.toml | 3 +++
+ 1 file changed, 3 insertions(+)
+ create mode 100644 pyproject.toml
+
+diff --git a/pyproject.toml b/pyproject.toml
+new file mode 100644
+index 0000000..fed528d
+--- /dev/null
++++ b/pyproject.toml
+@@ -0,0 +1,3 @@
++[build-system]
++requires = ["setuptools"]
++build-backend = "setuptools.build_meta"
=====================================
debian/patches/series
=====================================
@@ -1 +1,3 @@
Remove-deprecated-distutils-usage-from-versioneer_py.patch
+insert-pyproject.toml.patch
+Drop-versioneer.patch
=====================================
debian/rules
=====================================
@@ -1,5 +1,6 @@
#!/usr/bin/make -f
+export DEB_VERSION_UPSTREAM ?= $(shell awk -F'[()]' 'NR==1{split($$2,v,"-");print v[1]}' debian/changelog)
export PYBUILD_NAME=etelemetry
export PYBUILD_TEST_ARGS=-v {dir}/etelemetry/tests/ \
-k 'not test_etrequest \
@@ -7,7 +8,8 @@ export PYBUILD_TEST_ARGS=-v {dir}/etelemetry/tests/ \
and not test_check_available \
'
-export PYBUILD_AFTER_INSTALL= rm -fr {destdir}/usr/lib/python3*/dist-packages/etelemetry/tests
+export PYBUILD_AFTER_INSTALL= rm -fr {destdir}/usr/lib/python3*/dist-packages/etelemetry/tests \
+ rm -fr {destdir}/usr/lib/python3*/dist-packages/$(PYBUILD_NAME)-*/top_level.txt
# Should redirect remote access but does not help either
# export https_proxy=http://127.0.0.1:9/
View it on GitLab: https://salsa.debian.org/med-team/python-etelemetry/-/compare/f5d3e2f5bca70562759604cebec6badc7be55666...5c2a7fc2f3b0e3a71fc56e88436a7de7965ee24f
--
View it on GitLab: https://salsa.debian.org/med-team/python-etelemetry/-/compare/f5d3e2f5bca70562759604cebec6badc7be55666...5c2a7fc2f3b0e3a71fc56e88436a7de7965ee24f
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261028/82b8d42b/attachment-0001.htm>
More information about the debian-med-commit
mailing list