Your message dated Fri, 05 Nov 2021 08:34:02 +0000
with message-id <[email protected]>
and subject line Bug#960048: fixed in dh-python 5.20211105
has caused the Debian Bug report #960048,
regarding dh-python: Fails to execute tox tests properly, if there are deps
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.)


-- 
960048: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960048
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 4.20200315
Severity: normal

Dear Maintainer,


I have python3-pip installed, but, in any python3 project I have that uses tox
and has deps can't seem to be handled by dh-python.

Here's an example: 

$ python3 -m pip show # let's show that pip is instapped
ERROR: Please provide a package name or names.
$ cat tox.ini 
[tox]
envlist = py37

[testenv]
deps = pytest
$ tox|tail -3
___________________________________ summary ____________________________________
  py37: commands succeeded
  congratulations :)
$ sudo pybuild --test-tox
I: pybuild base:217: python3.7 setup.py clean 
running clean
removing '/tmp/test/.pybuild/cpython3_3.7/build' (and everything under it)
'build/bdist.linux-amd64' does not exist -- can't clean it
'build/scripts-3.7' does not exist -- can't clean it
I: pybuild base:217: python3.7 setup.py config 
running config
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
running build_py
creating /tmp/test/.pybuild/cpython3_3.7/build/test
copying test/__init__.py -> /tmp/test/.pybuild/cpython3_3.7/build/test
I: pybuild base:217: /usr/bin/python3 setup.py install --root 
/tmp/test/debian/tmp 
running install
running build
running build_py
running install_lib
copying /tmp/test/.pybuild/cpython3_3.7/build/test/__init__.py -> 
/tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/test
byte-compiling 
/tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/test/__init__.py to 
__init__.cpython-37.pyc
running install_egg_info
running egg_info
writing example_pkg_YOUR_USERNAME_HERE.egg-info/PKG-INFO
writing dependency_links to 
example_pkg_YOUR_USERNAME_HERE.egg-info/dependency_links.txt
writing top-level names to example_pkg_YOUR_USERNAME_HERE.egg-info/top_level.txt
reading manifest file 'example_pkg_YOUR_USERNAME_HERE.egg-info/SOURCES.txt'
writing manifest file 'example_pkg_YOUR_USERNAME_HERE.egg-info/SOURCES.txt'
removing 
'/tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/example_pkg_YOUR_USERNAME_HERE-0.0.1.egg-info'
 (and everything under it)
Copying example_pkg_YOUR_USERNAME_HERE.egg-info to 
/tmp/test/debian/tmp/usr/lib/python3.7/dist-packages/example_pkg_YOUR_USERNAME_HERE-0.0.1.egg-info
Skipping SOURCES.txt
running install_scripts
I: pybuild base:217: cd /tmp/test/.pybuild/cpython3_3.7/build; tox -c 
/tmp/test/tox.ini -e py37
GLOB sdist-make: /tmp/test/setup.py
py37 create: /tmp/test/.tox/py37
py37 installdeps: pytest
WARNING: Discarding $PYTHONPATH from environment, to override specify 
PYTHONPATH in 'passenv' in your configuration.
ERROR: invocation failed (exit code 1), logfile: 
/tmp/test/.tox/py37/log/py37-1.log
ERROR: actionid: py37
msg: getenv
cmdargs: '/tmp/test/.tox/py37/bin/python -m pip install pytest'

/tmp/test/.tox/py37/bin/python: No module named pip

ERROR: could not install deps [pytest]; v = 
InvocationError('/tmp/test/.tox/py37/bin/python -m pip install pytest (see 
/tmp/test/.tox/py37/log/py37-1.log)', 1)
___________________________________________________________________________________________________________________________________
 summary 
___________________________________________________________________________________________________________________________________
ERROR:   py37: could not install deps [pytest]; v = 
InvocationError('/tmp/test/.tox/py37/bin/python -m pip install pytest (see 
/tmp/test/.tox/py37/log/py37-1.log)', 1)
E: pybuild pybuild:390: plugin distutils failed: exit code=1: cd 
/tmp/test/.pybuild/cpython3_3.7/build; tox -c /tmp/test/tox.ini -e py37
$



I'm sorry if this is not a bug, and I'm the one doing something wrong... if
that is the case, can you point me to the correct direction? :-)



-- System Information:
Debian Release: buster/sid
  APT prefers eoan-updates
  APT policy: (500, 'eoan-updates'), (500, 'eoan-security'), (500, 'eoan'), 
(100, 'eoan-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-46-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii  python3            3.7.5-1
ii  python3-distutils  3.7.5-1build1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii  dpkg-dev      1.19.7ubuntu2
ii  libdpkg-perl  1.19.7ubuntu2

-- no debconf information

Best regards,
-- 
Marcos Marado

--- End Message ---
--- Begin Message ---
Source: dh-python
Source-Version: 5.20211105
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: Fri, 05 Nov 2021 00:44:25 -0700
Source: dh-python
Architecture: source
Version: 5.20211105
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 960048 997469 997485 998581
Changes:
 dh-python (5.20211105) unstable; urgency=medium
 .
   * Add tpb03 - a test covering pybuild building Python 2 and 3 packages.
   * Document pybuild environment variables in pybuild(1) (closes: #997469)
   * pybuild: Only generate --test-* dependencies in the test target.
   * pybuild: Fix tox autodetection, broken since it was renamed from
     python3-tox.
   * pybuild tox plugin: Delete pydistutils.cfg before calling tox, to avoid
     breaking it. Switching keys to underscores in 5.20211022 brought them to
     pip's attention, and it tried to install to /usr. (closes: 997485, 998581)
   * pybuild tox plugin: Use tox --sitepackages to use Debian packages to
     resolve test dependencies (closes: 960048)
Checksums-Sha1:
 ae9f62f7eb9fc6eaed90e22429ce0c47185f50a4 1458 dh-python_5.20211105.dsc
 4ffa2df6f34338557b4783fd3994c4ad914ced4c 102728 dh-python_5.20211105.tar.xz
 268a1b525c2a14cb47cf25b7b07edc2b8fc456ce 6147 
dh-python_5.20211105_source.buildinfo
Checksums-Sha256:
 a0265dc4325e54531eb298d4368d6e8e61da6c38a5c3bc83d615b3dfd707bf9e 1458 
dh-python_5.20211105.dsc
 20915bbb46aae244cd76758c8bba970efc16a6698e89fae601e790d52d73e360 102728 
dh-python_5.20211105.tar.xz
 d3ac91e6ec19ba2479e7fa274b597989a28884858f0dfc28740cade7cceb8907 6147 
dh-python_5.20211105_source.buildinfo
Files:
 de423223a63653144c107273541be6ed 1458 python optional dh-python_5.20211105.dsc
 f856ce4af23a1ab0e699da06a13dab8d 102728 python optional 
dh-python_5.20211105.tar.xz
 e8e1794201615584f003cbc3ff73da63 6147 python optional 
dh-python_5.20211105_source.buildinfo

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

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCYYThHBQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2K3xAQD7G0MY4GENkbPSRPci3j2IJxz1FII1
okLUVbrrZFcm0AEAy5rwQYB/e+8s+hx5ywHkOUG1Iz2nlZbdZ72cdH8G3wo=
=46iG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to