Lintian Fixes - python-hacking

Ready changes

Summary

Lintian Result

Diff

diff --git a/debian/changelog b/debian/changelog
index 4a3cd98..b14fd6b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+python-hacking (4.1.0-4) UNRELEASED; urgency=medium
+
+  * Bump debhelper from old 11 to 13.
+    + Drop check for DEB_BUILD_OPTIONS containing "nocheck", since debhelper now
+      does this.
+    + Replace python_distutils buildsystem with pybuild.
+  * Set upstream metadata fields: Repository-Browse.
+  * Update standards version to 4.6.2, no changes needed.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Tue, 22 Aug 2023 10:36:36 -0000
+
 python-hacking (4.1.0-3) unstable; urgency=medium
 
   * Cleans better (Closes: #1048850).
diff --git a/debian/control b/debian/control
index 83ec77b..f5d0915 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders:
  Thomas Goirand <zigo@debian.org>,
  Clint Adams <clint@debian.org>,
 Build-Depends:
- debhelper-compat (= 11),
+ debhelper-compat (= 13),
  dh-python,
  openstack-pkg-tools,
  python3-all,
@@ -30,7 +30,7 @@ Build-Depends-Indep:
  python3-testtools,
  python3-stestr,
  subunit,
-Standards-Version: 4.4.1
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/openstack-team/libs/python-hacking
 Vcs-Git: https://salsa.debian.org/openstack-team/libs/python-hacking.git
 Homepage: https://github.com/openstack-dev/hacking
diff --git a/debian/rules b/debian/rules
index 3957eb5..b0ccfb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ include /usr/share/openstack-pkg-tools/pkgos.make
 #export https_proxy=127.0.0.1:9
 
 %:
-	dh $@ --buildsystem=python_distutils --with python3,sphinxdoc
+	dh $@ --buildsystem=pybuild --with python3,sphinxdoc
 
 override_dh_auto_clean:
 	rm -rf build .stestr *.egg-info
@@ -30,6 +30,4 @@ ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
 endif
 
 override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	pkgos-dh_auto_test --no-py2 'hacking\.tests\.(?!.*test_doctest\.HackingTestCase\.test_flake8.*)'
-endif
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..932fe5e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,2 @@
+---
+Repository-Browse: https://github.com/openstack/hacking

Debdiff

File lists identical (after any substitutions)

No differences were encountered between the control files of package python-hacking-doc

No differences were encountered between the control files of package python3-hacking

Run locally

More details

Full run details