Control: reopen -1
Control: tags -1 + patch

Hi again,

Étienne Mollier, on 2024-09-04:
> The test suite is run, and the build goes through, so I close
> the bug.

Reopening, the issue is not affecting the build process, however
it does affect its autopkgtest:

        autopkgtest [10:13:17]: test run-tests: [-----------------------
        /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: 
UserWarning: Unknown distribution option: 'test_suite'
          warnings.warn(msg)
        usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
           or: setup.py --help [cmd1 cmd2 ...]
           or: setup.py --help-commands
           or: setup.py cmd --help
        
        error: invalid command 'test'
        autopkgtest [10:13:17]: test run-tests: -----------------------]

Dropping the manual debian/tests/run-tests in favor of autodep8
autopkgtest-pkg-pybuild (and nudging pybuild into fetching the
test directory hidden within the source code) resolves elegantly
this issue.

Salsa is being hammered on, and I didn't manage to clone the
team's repository, so I'm attaching a patch describing my
changes if I were to team upload the package.

Sorry for the noise,
-- 
  .''`.  Étienne Mollier <emoll...@debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/3, please excuse my verbosity
   `-    on air: Subsignal - Walking with Ghosts
diff -Nru isodate-0.6.1/debian/changelog isodate-0.6.1/debian/changelog
--- isodate-0.6.1/debian/changelog      2024-01-05 16:51:16.000000000 +0100
+++ isodate-0.6.1/debian/changelog      2024-09-04 10:14:25.000000000 +0200
@@ -1,3 +1,11 @@
+isodate (0.6.1-3) unstable; urgency=medium
+
+  * Team upload.
+  * Migrate to autopkgtest-pkg-pybuild to avoid reliance on setuptools test.
+    (Closes: #1079746)
+
+ -- Étienne Mollier <emoll...@debian.org>  Wed, 04 Sep 2024 10:14:25 +0200
+
 isodate (0.6.1-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru isodate-0.6.1/debian/control isodate-0.6.1/debian/control
--- isodate-0.6.1/debian/control        2024-01-05 16:49:49.000000000 +0100
+++ isodate-0.6.1/debian/control        2024-09-04 10:14:25.000000000 +0200
@@ -12,6 +12,7 @@
 Vcs-Git: https://salsa.debian.org/python-team/packages/isodate.git
 Homepage: https://github.com/gweis/isodate/
 Rules-Requires-Root: no
+Testsuite: autopkgtest-pkg-pybuild
 
 Package: python3-isodate
 Architecture: all
diff -Nru isodate-0.6.1/debian/pybuild.testfiles 
isodate-0.6.1/debian/pybuild.testfiles
--- isodate-0.6.1/debian/pybuild.testfiles      1970-01-01 01:00:00.000000000 
+0100
+++ isodate-0.6.1/debian/pybuild.testfiles      2024-09-04 10:14:25.000000000 
+0200
@@ -0,0 +1 @@
+src/isodate/tests
diff -Nru isodate-0.6.1/debian/tests/control isodate-0.6.1/debian/tests/control
--- isodate-0.6.1/debian/tests/control  2024-01-05 16:38:14.000000000 +0100
+++ isodate-0.6.1/debian/tests/control  1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-Tests: run-tests
-Depends: @, python3-setuptools
diff -Nru isodate-0.6.1/debian/tests/run-tests 
isodate-0.6.1/debian/tests/run-tests
--- isodate-0.6.1/debian/tests/run-tests        2024-01-05 16:38:14.000000000 
+0100
+++ isodate-0.6.1/debian/tests/run-tests        1970-01-01 01:00:00.000000000 
+0100
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-set -e
-
-python3 setup.py test 2>&1

Attachment: signature.asc
Description: PGP signature

Reply via email to