Your message dated Mon, 01 Apr 2024 17:49:10 +0000
with message-id <[email protected]>
and subject line Bug#883004: fixed in dh-python 6.20240401
has caused the Debian Bug report #883004,
regarding dh-python: pybuild autotest support for stestr, testrepository and 
ostestr
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
883004: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883004
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 2.20170125
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu bionic ubuntu-patch

Dear Maintainer,

The attached patch adds support to pybuild for the following unit testing tools:

  - stestr
  - testrepository
  - ostestr

these are used across some popular python modules including most of the 
OpenStack
driven projects.  This has not been uploaded to Ubuntu Bionic development, but
I have tested with a number of OpenStack modules.

Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers bionic
  APT policy: (500, 'bionic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-16-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru dh-python-2.20170125/dh/pybuild.pm 
dh-python-2.20170125ubuntu1/dh/pybuild.pm
--- dh-python-2.20170125/dh/pybuild.pm  2016-09-07 21:39:26.000000000 +0100
+++ dh-python-2.20170125ubuntu1/dh/pybuild.pm   2017-11-15 10:26:20.000000000 
+0000
@@ -128,12 +128,24 @@
                                push @py2opts, '--test-pytest'}
                        elsif (grep {$_ eq 'python-nose'} @deps and 
$ENV{'PYBUILD_TEST_NOSE'} ne '0') {
                                push @py2opts, '--test-nose'}
+                       elsif (grep {$_ eq 'python-stestr'} @deps and 
$ENV{'PYBUILD_TEST_STESTR'} ne '0') {
+                               push @py2opts, '--test-stestr'}
+                       elsif (grep {$_ eq 'python-testrepository'} @deps and 
$ENV{'PYBUILD_TEST_TESTR'} ne '0') {
+                               push @py2opts, '--test-testr'}
+                       elsif (grep {$_ eq 'python-os-testr'} @deps and 
$ENV{'PYBUILD_TEST_OSTESTR'} ne '0') {
+                               push @py2opts, '--test-ostestr'}
                        if (grep {$_ eq 'python3-tox'} @deps and 
$ENV{'PYBUILD_TEST_TOX'} ne '0') {
                                push @py3opts, '--test-tox'}
                        elsif (grep {$_ eq 'python3-pytest'} @deps and 
$ENV{'PYBUILD_TEST_PYTEST'} ne '0') {
                                push @py3opts, '--test-pytest'}
                        elsif (grep {$_ eq 'python3-nose'} @deps and 
$ENV{'PYBUILD_TEST_NOSE'} ne '0') {
                                push @py3opts, '--test-nose'}
+                       elsif (grep {$_ eq 'python3-stestr'} @deps and 
$ENV{'PYBUILD_TEST_STESTR'} ne '0') {
+                               push @py3opts, '--test-stestr'}
+                       elsif (grep {$_ eq 'python3-testrepository'} @deps and 
$ENV{'PYBUILD_TEST_TESTR'} ne '0') {
+                               push @py3opts, '--test-testr'}
+                       elsif (grep {$_ eq 'python3-os-testr'} @deps and 
$ENV{'PYBUILD_TEST_OSTESTR'} ne '0') {
+                               push @py3opts, '--test-ostestr'}
                        if (grep {$_ eq 'pypy-tox'} @deps and 
$ENV{'PYBUILD_TEST_TOX'} ne '0') {
                                push @pypyopts, '--test-tox'}
                        elsif (grep {$_ eq 'pypy-pytest'} @deps and 
$ENV{'PYBUILD_TEST_PYTEST'} ne '0') {
diff -Nru dh-python-2.20170125/dhpython/build/base.py 
dh-python-2.20170125ubuntu1/dhpython/build/base.py
--- dh-python-2.20170125/dhpython/build/base.py 2016-06-17 21:05:56.000000000 
+0100
+++ dh-python-2.20170125ubuntu1/dhpython/build/base.py  2017-11-15 
10:26:20.000000000 +0000
@@ -169,6 +169,14 @@
             return 'cd {build_dir}; {interpreter} -m pytest {args}'
         elif self.cfg.test_tox:
             return 'cd {build_dir}; tox -c {dir}/tox.ini -e 
py{version.major}{version.minor}'
+        elif self.cfg.test_stestr:
+            return ('python{version.major}-stestr init;'
+                    'PYTHON=python{version.major}.{version.minor} 
python{version.major}-stestr run')
+        elif self.cfg.test_testr:
+            return ('testr-python{version.major} init;'
+                    'PYTHON=python{version.major}.{version.minor} 
testr-python{version.major} run')
+        elif self.cfg.test_ostestr:
+            return ('PYTHON=python{version.major}.{version.minor} 
python{version.major}-ostestr')
         elif args['version'] == '2.7' or args['version'] >> '3.1' or 
args['interpreter'] == 'pypy':
             return 'cd {build_dir}; {interpreter} -m unittest discover -v 
{args}'
 
diff -Nru dh-python-2.20170125/pybuild dh-python-2.20170125ubuntu1/pybuild
--- dh-python-2.20170125/pybuild        2017-01-25 11:29:41.000000000 +0000
+++ dh-python-2.20170125ubuntu1/pybuild 2017-11-15 10:09:23.000000000 +0000
@@ -407,6 +407,15 @@
     tests.add_argument('--test-tox', action='store_true',
                        default=environ.get('PYBUILD_TEST_TOX') == '1',
                        help='use tox in --test step')
+    tests.add_argument('--test-stestr', action='store_true',
+                       default=environ.get('PYBUILD_TEST_STESTR') == '1',
+                       help='use stestr in --test step')
+    tests.add_argument('--test-testr', action='store_true',
+                       default=environ.get('PYBUILD_TEST_TESTR') == '1',
+                       help='use testr in --test step')
+    tests.add_argument('--test-ostestr', action='store_true',
+                       default=environ.get('PYBUILD_TEST_OSTESTR') == '1',
+                       help='use ostestr in --test step')
 
     dirs = parser.add_argument_group('DIRECTORIES')
     dirs.add_argument('-d', '--dir', action='store', metavar='DIR',
@@ -454,6 +463,7 @@
         args.versions = versions
 
     if args.test_nose or args.test_pytest or args.test_tox\
+       or args.test_stestr or args.test_testr or args.test_ostestr\
        or args.system == 'custom':
         args.custom_tests = True
     else:
diff -Nru dh-python-2.20170125/pybuild.rst 
dh-python-2.20170125ubuntu1/pybuild.rst
--- dh-python-2.20170125/pybuild.rst    2016-06-17 21:05:56.000000000 +0100
+++ dh-python-2.20170125ubuntu1/pybuild.rst     2017-11-15 10:26:20.000000000 
+0000
@@ -86,6 +86,16 @@
     --test-tox
         use tox command in test step, remember to add python-tox
         to Build-Depends. Requires tox.ini file
+    --test-stestr
+        use stestr command in test step, remember to add python-stestr and/or
+        python3-stestr to Build-Depends.
+    --test-testr
+        use testr command in test step, remember to add python-testrepository
+        and/or python3-testrepository to Build-Depends.
+    --test-ostestr
+        use ostestr command in test step, remember to add python-os-testr 
and/or
+        python3-os-testr to Build-Depends.
+
 
 BUILD SYSTEM ARGUMENTS
 ----------------------

--- End Message ---
--- Begin Message ---
Source: dh-python
Source-Version: 6.20240401
Done: Stefano Rivera <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dh-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated dh-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 01 Apr 2024 13:23:32 -0400
Source: dh-python
Architecture: source
Version: 6.20240401
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 883004 1066833 1067822
Changes:
 dh-python (6.20240401) unstable; urgency=medium
 .
   [ Stefano Rivera ]
   * Remove python3-distutils from dh-python Depends. It doesn't exist as a
     package for 3.12, and is provided as a compatibility shim by setuptools.
     (Closes: #1066833)
   * Add support for testing with stestr. Thanks James Page for the patch.
     (Closes: #883004)
 .
   [ Julian Gilbey ]
   * Add python3-flit-scm to list of build-dependencies requiring
     SETUPTOOLS_SCM_PRETEND_VERSION (Closes: #1067822)
Checksums-Sha1:
 b24b01bcbc42a9001ee370394c4c031937670473 1688 dh-python_6.20240401.dsc
 3b7c3777edf06289465150eb1bc8b807289ea12b 122764 dh-python_6.20240401.tar.xz
 4cc71b369478ec9bd35587fbc6af3e01012e8c97 7475 
dh-python_6.20240401_source.buildinfo
Checksums-Sha256:
 c1694cc7faf2a7989216490b71f71be2e82c70ab860634ac1d819828500557c4 1688 
dh-python_6.20240401.dsc
 f9590a3214f3eaff322f2b3d9bf9a8d9408ab1e18bce6ce54a0a513374478815 122764 
dh-python_6.20240401.tar.xz
 7061797ee1e91600af941b7f0ead0bca2e7d4fde9644470f7218242a79115318 7475 
dh-python_6.20240401_source.buildinfo
Files:
 ac2d676a92f6c8b494a9bc2cebdc46bb 1688 python optional dh-python_6.20240401.dsc
 77acc3fda752bb2d0caa135ab61d4bc2 122764 python optional 
dh-python_6.20240401.tar.xz
 76b07a2535314a1f3c916354fea17e73 7475 python optional 
dh-python_6.20240401_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZgrwjhQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2E19AQDsT0A1rJVMJr1C66QRBF3PHUqib3LS
C12ntuQDtSfwUQEA2M3BEh44psvaJgNOf21oLMYZ7Mz+wBy+rCj5EQ36+gk=
=G3Lw
-----END PGP SIGNATURE-----

Attachment: pgp4L6Ewrv1Fj.pgp
Description: PGP signature


--- End Message ---

Reply via email to