Your message dated Fri, 2 Dec 2022 16:39:59 -0400
with message-id <20221202203959.utwhjv7yr6dko...@haydn.kardiogramm.net>
and subject line dh-python dropped 2.x support
has caused the Debian Bug report #634271,
regarding dh-python: generate dependency on python{,3}-pkg-resources ?
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 ow...@bugs.debian.org
immediately.)


-- 
634271: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634271
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dh-python
Version: 3.20180723
Severity: normal

Hi,

should dh_python{,3} generate a dependency on python{,3}-pkg-resources
if needed?

There are a lot of packages in the archive using a construct like

$ cat /usr/bin/thonny
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'thonny==2.1.17','gui_scripts','thonny'
__requires__ = 'thonny==2.1.17'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('thonny==2.1.17', 'gui_scripts', 'thonny')()
    )

but missing a dependency on python{,3}-pkg-resources, resulting in

$ thonny
Traceback (most recent call last):
  File "/usr/bin/thonny", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

I started filing bugs, but didn't expect the huge number of failures.
Right now I have about 230 (mostly unchecked) logfiles for sid with
related failures. And 180 for stretch.

Since this is a rather common pattern, could the tooling be improved to
add this missing dependency automatically?

Since most/all affected packages are arch:all, they will need a sourceful
upload to fix the dependency anyway, but still having the dependency
generated instead of hardcoding it should have benefits.

A few bugs: #904772, #904771, #904769, #904768, #904762, #904748,
  #842393, #870359, 

We should give them a usertag, what would you prefer?


Andreas

--- End Message ---
--- Begin Message ---
Version: 5.20221202

Python 2.x (and PyPy 2.x) support was removed in 5.20221202:

dh-python (5.20221202) unstable; urgency=medium

  * Deprecate the flit plugin in favour of pyproject.
    - Reduce the auto-detect score of the flit plugin.
  * dh_python3: Clean up more license files from dist-info directories.
  * Write to debhelper.log files, in overrides.
  * Add support for --remaining-packages to dh_python*. (closes: 1021875)
  * Add a test that demonstrates building multiple libraries in a single
    source package. (closes: 1018952)
  * Remove dh_python2, dh_pypy, and related debhelper sequences, supporting
    the removal of the Python 2.7 stack before bookworm release.
    (closes: 942959)

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

--- End Message ---

Reply via email to