Merge ~ahasenack/ubuntu/+source/lazygal:jammy-distutils-deprecated into ubuntu/+source/lazygal:ubuntu/devel

Proposed by Andreas Hasenack
Status: Merged
Merged at revision: 0104bf36bd2cbb30a1217bc4f9e397c42e4b2a8a
Proposed branch: ~ahasenack/ubuntu/+source/lazygal:jammy-distutils-deprecated
Merge into: ubuntu/+source/lazygal:ubuntu/devel
Diff against target: 38 lines (+11/-1)
3 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/tests/control (+2/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server Pending
Review via email: mp+415141@code.launchpad.net

Description of the change

Unfortunately I don't know how to convert from distutils to setuptools, at least not quickly, so this MP just adds the allow-stderr restriction to the dep8 test.

I filed an upstream bug at https://github.com/niol/lazygal/issues/14, and with debian at https://bugs.debian.org/1004983

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

setuptools is pretty straightforward to migrate to from distutils, although some packages may have idiosyncrasies depending on how they're architected and/or coded. So bumping this upstream is probably the right way to go.

So, +1 to sidestep the warning, for Ubuntu purposes.

---

Fwiw, here's an example of setup.py showing the style I use for my python projects:

  https://git.launchpad.net/pdbq/tree/setup.py

The get_version() logic would likely need adopted to whatever the given package uses, but this shows how to load the version from a <package>/_version.py module.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, uploaded

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index a691f8c..530f9a5 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+lazygal (0.10.3-2ubuntu1) jammy; urgency=medium
7+
8+ * d/t/control: allow stderr for now, due to deprecation of python
9+ distutils (LP: #1959932)
10+
11+ -- Andreas Hasenack <andreas@canonical.com> Fri, 04 Feb 2022 20:42:39 +0000
12+
13 lazygal (0.10.3-2) unstable; urgency=medium
14
15 * add d/upstream/metadata
16diff --git a/debian/control b/debian/control
17index 4c36b03..40823c8 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -1,7 +1,8 @@
21 Source: lazygal
22 Section: graphics
23 Priority: optional
24-Maintainer: Michal Čihař <nijel@debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Michal Čihař <nijel@debian.org>
27 Uploaders: Debian Python Team <team+python@tracker.debian.org>, Alexandre Rossi <alexandre.rossi@gmail.com>
28 Build-Depends: debhelper-compat (= 13), pandoc
29 Build-Depends-Indep: python3, dh-python, python3-distutils
30diff --git a/debian/tests/control b/debian/tests/control
31index 3b452d8..b918b60 100644
32--- a/debian/tests/control
33+++ b/debian/tests/control
34@@ -1,2 +1,4 @@
35 Tests: smoke
36 Depends: @, python3-distutils, ffmpeg
37+# XXX - https://bugs.launchpad.net/bugs/1959932
38+Restrictions: allow-stderr

Subscribers

People subscribed via source and target branches