Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-cliff


Commits:
be9773e4 by Antonio Rojas at 2025-12-26T21:41:06+01:00
upgpkg: 4.8.0-3: Python 3.14 rebuild

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + python-3.14.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-cliff
        pkgdesc = Command Line Interface Formulation Framework
        pkgver = 4.8.0
-       pkgrel = 2
+       pkgrel = 3
        url = https://docs.openstack.org/cliff/latest/
        arch = any
        license = Apache
@@ -18,6 +18,8 @@ pkgbase = python-cliff
        depends = python-yaml
        options = !emptydirs
        source = 
git+https://github.com/openstack/cliff.git#commit=4826a43b991fcb1c4e24d129c800f22f4dc52fa1
+       source = python-3.14.patch
        sha512sums = 
c6d63c3ded4008e4215b26fab8e2cd6d686b9712c2021960e33fd58cdbefe3a5ad12f2934d8f14e3a86b54e68d44359a5bd0a17e6a48aeec12ecbd7da56ada61
+       sha512sums = 
1e54f20b56e495177e42a37b74d4e495f3bb9dbb91d2662dcdafd87464214c466ebb8ba1be32313e4b1312dc26b5ea59d8e99f5e227422bac03231310e42ddbf
 
 pkgname = python-cliff


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 pkgname=python-cliff
 pkgver=4.8.0
 _commit=4826a43b991fcb1c4e24d129c800f22f4dc52fa1
-pkgrel=2
+pkgrel=3
 pkgdesc="Command Line Interface Formulation Framework"
 arch=('any')
 url="https://docs.openstack.org/cliff/latest/";
@@ -13,8 +13,15 @@ depends=('python-autopage' 'python-cmd2' 
'python-prettytable' 'python-stevedore'
 makedepends=('git' 'python-setuptools' 'python-pbr')
 checkdepends=('python-stestr' 'python-sphinx' 'python-testscenarios')
 options=('!emptydirs')
-source=("git+https://github.com/openstack/cliff.git#commit=$_commit";)
-sha512sums=('c6d63c3ded4008e4215b26fab8e2cd6d686b9712c2021960e33fd58cdbefe3a5ad12f2934d8f14e3a86b54e68d44359a5bd0a17e6a48aeec12ecbd7da56ada61')
+source=("git+https://github.com/openstack/cliff.git#commit=$_commit";
+         python-3.14.patch)
+sha512sums=('c6d63c3ded4008e4215b26fab8e2cd6d686b9712c2021960e33fd58cdbefe3a5ad12f2934d8f14e3a86b54e68d44359a5bd0a17e6a48aeec12ecbd7da56ada61'
+            
'1e54f20b56e495177e42a37b74d4e495f3bb9dbb91d2662dcdafd87464214c466ebb8ba1be32313e4b1312dc26b5ea59d8e99f5e227422bac03231310e42ddbf')
+
+prepare() {
+  cd cliff
+  patch -p1 -i ../python-3.14.patch # Fix tests
+}
 
 build() {
   cd cliff


=====================================
REUSE.toml
=====================================
@@ -17,6 +17,7 @@ path = [
     "*.timer",
     "*.desktop",
     "*.hook",
+    "python-3.14.patch",
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"


=====================================
python-3.14.patch
=====================================
@@ -0,0 +1,13 @@
+diff --git a/cliff/tests/test_help.py b/cliff/tests/test_help.py
+index 571211d..247b822 100644
+--- a/cliff/tests/test_help.py
++++ b/cliff/tests/test_help.py
+@@ -111,7 +111,7 @@ class TestHelp(base.TestBase):
+             pass
+         help_text = stdout.getvalue()
+         basecommand = os.path.split(sys.argv[0])[1]
+-        self.assertIn(f'usage: {basecommand} [--version]', help_text)
++        self.assertIn(f'usage: python -m stestr.subunit_runner.run 
[--version]', help_text)
+         self.assertRegex(help_text, 'option(s|al arguments):\n  --version')
+         expected = (
+             '  one            Test command\n'



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cliff/-/commit/be9773e4d591de35f686b2e23d68e8de611d865e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cliff/-/commit/be9773e4d591de35f686b2e23d68e8de611d865e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to