Merge ~enr0n/ubuntu/+source/rdflib-sqlalchemy:fix-lp2025166 into ubuntu/+source/rdflib-sqlalchemy:ubuntu/devel

Proposed by Nick Rosbrook
Status: Merged
Merged at revision: f716afd905ac78bc7b571bd8aa27bb903f6824ec
Proposed branch: ~enr0n/ubuntu/+source/rdflib-sqlalchemy:fix-lp2025166
Merge into: ubuntu/+source/rdflib-sqlalchemy:ubuntu/devel
Diff against target: 67 lines (+28/-1)
4 files modified
debian/changelog (+8/-0)
debian/control (+3/-1)
debian/patches/series (+1/-0)
debian/patches/tox-ini-add-pytest-to-allowlist_externals.patch (+16/-0)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Athos Ribeiro (community) Needs Information
Review via email: mp+445579@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) wrote :

I mean this looks good to me, but I'd prefer someone not in foundations to sponsor this so we get more sponsor coverage for Nick's coredev application.

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Hi Nick,

This LGTM in the sense that the proposed change set does fix the FTBFS issues.

Still, there is no context explaining why these changes are necessary, neither in the changelog, nor in this MP or the related bug.

Would you mind providing such context as well? This would ease the review process for a potential sponsor.

In special, it would be nice to understand why the package FTBFS when building on mantic-proposed, but not on mantic or debian unstable, i.e., what delta is being introduced in mantic-proposed which is leading to this failure? This would help us understand if other python packages will also break for this change.

review: Needs Information
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

At a first glance, I suspect this is due to the fact that we pulled in dh-python from debian experimental. Here are the relevant dh-python changelog bits:

dh-python (6.20230603) experimental; urgency=medium

  * Bump major version, post-bookworm.

 -- Stefano Rivera <email address hidden> Sat, 03 Jun 2023 10:50:19 -0400

dh-python (5.20230510) experimental; urgency=medium

  * Add support for PEP440 standards-markers in PyDist files (which superseded
    PEP386 almost a decade ago).
  * Add support for tox 4. Avoid needing to do an isolated build of the
    package by using the wheel we built, ourselves. (Closes: #1035675)
    - Packages using the distutils plugin now need python3-wheel installed.
      Raise an error explaining that wheel is needed, if it's missing.
    - Support all 3 potential tox configuration files. (Closes: #1033486)
  * dh_python3: Write a "debian" INSTALLER file into dist-info directories.
    (Closes: #1032133)
  * Use tomllib (available since Python 3.11) instead of tomli.
    (Closes: #1032866)
  * Use cachy as an example dependency instead of tomli, in tests.
  * Add pyproject.toml and pytest.ini to the default testfiles.
    (Closes: #1031609)

I wonder how this affects other python package builds with tox setups in them.

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Once we have more context here (we could confirm if it is really FTBFS due to the dh-python changes), we can either add more context to the bug or to the delta (changelog or patch file).

Once this is done, please add ubuntu-sponsors back to the reviewers list.

Revision history for this message
Utkarsh Gupta (utkarsh) :
review: Approve
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Thanks for the review, Athos. I will circle back to this next week after vacation and do the upload myself.

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 a249a75..66272f6 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+rdflib-sqlalchemy (0.5.4-1ubuntu1) mantic; urgency=medium
7+
8+ * Fix FTBFS (LP: #2025166):
9+ - debian/control: Build-Depends: python3-wheel
10+ - d/p/tox-ini-add-pytest-to-allowlist_externals.patch: fix dh_auto_test
11+
12+ -- Nick Rosbrook <enr0n@ubuntu.com> Thu, 10 Aug 2023 17:06:21 -0400
13+
14 rdflib-sqlalchemy (0.5.4-1) unstable; urgency=low
15
16 * Initial release. (Closes: #1035108)
17diff --git a/debian/control b/debian/control
18index a964ac9..8a18c06 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,7 +1,8 @@
22 Source: rdflib-sqlalchemy
23 Section: python
24 Priority: optional
25-Maintainer: Debian Python Team <team+python@tracker.debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
28 Uploaders: Dominik George <natureshadow@debian.org>
29 Build-Depends:
30 debhelper-compat (= 13),
31@@ -16,6 +17,7 @@ Build-Depends:
32 python3-pytest-cov,
33 python3-psycopg2,
34 python3-mysqldb,
35+ python3-wheel,
36 tox,
37 Standards-Version: 4.6.2
38 Homepage: https://github.com/RDFLib/rdflib-sqlalchemy
39diff --git a/debian/patches/series b/debian/patches/series
40new file mode 100644
41index 0000000..e091edf
42--- /dev/null
43+++ b/debian/patches/series
44@@ -0,0 +1 @@
45+tox-ini-add-pytest-to-allowlist_externals.patch
46diff --git a/debian/patches/tox-ini-add-pytest-to-allowlist_externals.patch b/debian/patches/tox-ini-add-pytest-to-allowlist_externals.patch
47new file mode 100644
48index 0000000..10260c5
49--- /dev/null
50+++ b/debian/patches/tox-ini-add-pytest-to-allowlist_externals.patch
51@@ -0,0 +1,16 @@
52+Description: Add pytest to allowlist_externals
53+Author: Nick Rosbrook <nick.rosbrook@canonical.com>
54+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/rdflib-sqlalchemy/+bug/2025166
55+Forwarded: https://salsa.debian.org/python-team/packages/rdflib-sqlalchemy/-/merge_requests/1
56+Last-Update: 2023-06-27
57+--- a/tox.ini
58++++ b/tox.ini
59+@@ -14,6 +14,8 @@
60+ psycopg2
61+ mysqlclient
62+
63++allowlist_externals = pytest
64++
65+ [testenv:lint]
66+ commands = flake8 rdflib_sqlalchemy test
67+ deps =

Subscribers

People subscribed via source and target branches