Bug#1034585: lmfit-py: should use Build-Depends: python3-setuptools-scm instead of patching out scm

Drew Parsons dparsons at debian.org
Wed Apr 19 00:05:15 BST 2023


Source: lmfit-py
Version: 1.1.0-1
Severity: normal

lmfit-py 1.1.0-1 introduced debian patch preserve_version.patch to
prevent the python package build from introducing a spurious package
version.

If I correctly understand the way pybuild-plugin-pyproject interacts
with setuptools_scm, setuptools_scm itself already has a mechanism via
SETUPTOOLS_SCM_PRETEND_VERSION for preserving the package version.
pybuild will automatically activate this mechanism if
python3-setuptools-scm is listed in the Build-Depends.

If that's the case, then preserve_version.patch should be dropped, and
  Build-Depends: python3-setuptools-scm
should instead be added in debian/control.


-- System Information:
Debian Release: 12.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the debian-science-maintainers mailing list