Bug#1069837: python3-doc8: internal version is wrongly reported as 0.0.0

2024-04-25 Thread Michael R. Crusoe

I have also added a commit to the MR which enables the use of pybuild to run 
the tests, and then turns on pybuild-autopkgtest to enable a quicker migration 
of the package to testing:

https://salsa.debian.org/openstack-team/libs/python-doc8/-/merge_requests/4/diffs?commit_id=29e749091707ef49d7c531c702124a832fe5e4b8



OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1069837: python3-doc8: internal version is wrongly reported as 0.0.0

2024-04-25 Thread Michael R. Crusoe

Package: python3-doc8
Version: 0.10.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/doc8-0.0.0.dist-info/INSTALLER
> /usr/lib/python3/dist-packages/doc8-0.0.0.dist-info/METADATA
> /usr/lib/python3/dist-packages/doc8-0.0.0.dist-info/WHEEL
> /usr/lib/python3/dist-packages/doc8-0.0.0.dist-info/entry_points.txt
> /usr/lib/python3/dist-packages/doc8-0.0.0.dist-info/top_level.txt

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

Attached is a patch to fix this. And for your convenience, I've opened a MR on 
Salsa 
https://salsa.debian.org/openstack-team/libs/python-doc8/-/merge_requests/4

Author: Michael R. Crusoe 
Date:   Thu Apr 25 19:03:38 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 781f221..ba65eba 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,8 @@ Build-Depends:
  pybuild-plugin-pyproject,
  python3-all,
  python3-pbr,
- python3-poetry-core,
+ python3-setuptools,
+ python3-setuptools-scm,
  python3-sphinx,
  python3-sphinx-rtd-theme,
 Build-Depends-Indep:


OpenPGP_signature.asc
Description: OpenPGP digital signature