Package: python3-locust
Version: 2.12.1-1
Severity: normal
Tags: patch
X-Debbugs-Cc: cru...@debian.org

Dear Maintainer,

I noticed that your package dosage doesn't know its own version number, due to 
upstream using setuptools-scm:

> /usr/lib/python3/dist-packages/locust-0.0.0.dist-info/INSTALLER
> /usr/lib/python3/dist-packages/locust-0.0.0.dist-info/METADATA
> /usr/lib/python3/dist-packages/locust-0.0.0.dist-info/WHEEL
> /usr/lib/python3/dist-packages/locust-0.0.0.dist-info/entry_points.txt
> /usr/lib/python3/dist-packages/locust-0.0.0.dist-info/top_level.txt

https://packages.debian.org/sid/all/python3-locust/filelist

Attached is a patch to fix this. And for your convenience, I've opened a MR on 
Salsa https://salsa.debian.org/morph/locust/-/merge_requests/1

commit 6ff25b492074b540ae83807f532f09f925b2a9a3
Author: Michael R. Crusoe <cru...@debian.org>
Date:   Thu Apr 25 21:24:24 2024 +0300

    d/control: build-dep on setuptools-scm to fix wrong "0.0.0" version

diff --git a/debian/control b/debian/control
index 152e334..c2cf63d 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-retry <!nocheck>,
                python3-roundrobin <!nocheck>,
                python3-setuptools,
+               python3-setuptools-scm,
                python3-typing-extensions <!nocheck>,
                python3-zmq (>= 16.0.2) <!nocheck>,
 Standards-Version: 4.6.2.0
diff --git a/debian/rules b/debian/rules
index a7d2f09..4de9e15 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #! /usr/bin/make -f
 
 export PYBUILD_NAME=locust
-export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to