Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-calmjs
Commits:
73c74efa by Carl Smedstad at 2024-11-18T07:04:06+01:00
upgpkg: 3.4.4-4: Python 3.13 rebuild
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + fix-tests-python-3.13.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-calmjs
pkgdesc = Framework for building toolchains and utilities for working
with the JavaScript/Node.js ecosystem
pkgver = 3.4.4
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/calmjs/calmjs
arch = any
license = GPL-2.0-or-later
@@ -13,7 +13,10 @@ pkgbase = python-calmjs
depends = python-calmjs.types
depends = python-setuptools
source =
python-calmjs-3.4.4.tar.gz::https://github.com/calmjs/calmjs/archive/refs/tags/3.4.4.tar.gz
+ source = fix-tests-python-3.13.patch
sha512sums =
eb70d2d57b7d3cf22134f80c8c47b443893419e4f052b39102b04938b55c8afb950b6154f929a1a6cb74c2e67ae34ecf757b7b5765c47e9a74b805659eb6f22c
+ sha512sums =
bc9ef2466f649a1240b7b452b2abbaec3e6f6dd4bc39aac8e1c4d7c91d6a441786366b53f9a2184446f419d90a26d6ac8eca528d274fb307308338fb0749ec7f
b2sums =
51ee6b24eaf59259140b9cbf3ba8a713b19934659688c02529cb8b4946ac7628b3bd07e8e4025d368f12db1eebaff41939e8b18ec3843938129d0943d4400216
+ b2sums =
7399b63b4f98071283728dfdb9b715d3743507c67dfae0e8b005e1312079a09b02ff4b1014039bdc0d34cef6c6328f86c04f093e4fef39eeb3e2114c4dd43f9a
pkgname = python-calmjs
=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
pkgname=python-calmjs
_name="${pkgname#python-}"
pkgver=3.4.4
-pkgrel=3
+pkgrel=4
pkgdesc="Framework for building toolchains and utilities for working with the
JavaScript/Node.js ecosystem"
arch=(any)
url="https://github.com/calmjs/calmjs"
@@ -19,9 +19,19 @@ makedepends=(
python-installer
python-wheel
)
-source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz)
-sha512sums=('eb70d2d57b7d3cf22134f80c8c47b443893419e4f052b39102b04938b55c8afb950b6154f929a1a6cb74c2e67ae34ecf757b7b5765c47e9a74b805659eb6f22c')
-b2sums=('51ee6b24eaf59259140b9cbf3ba8a713b19934659688c02529cb8b4946ac7628b3bd07e8e4025d368f12db1eebaff41939e8b18ec3843938129d0943d4400216')
+source=(
+ "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
+ "fix-tests-python-3.13.patch"
+)
+sha512sums=('eb70d2d57b7d3cf22134f80c8c47b443893419e4f052b39102b04938b55c8afb950b6154f929a1a6cb74c2e67ae34ecf757b7b5765c47e9a74b805659eb6f22c'
+
'bc9ef2466f649a1240b7b452b2abbaec3e6f6dd4bc39aac8e1c4d7c91d6a441786366b53f9a2184446f419d90a26d6ac8eca528d274fb307308338fb0749ec7f')
+b2sums=('51ee6b24eaf59259140b9cbf3ba8a713b19934659688c02529cb8b4946ac7628b3bd07e8e4025d368f12db1eebaff41939e8b18ec3843938129d0943d4400216'
+
'7399b63b4f98071283728dfdb9b715d3743507c67dfae0e8b005e1312079a09b02ff4b1014039bdc0d34cef6c6328f86c04f093e4fef39eeb3e2114c4dd43f9a')
+
+prepare() {
+ cd $_name-$pkgver
+ patch -Np1 -i ../fix-tests-python-3.13.patch
+}
build() {
cd $_name-$pkgver
=====================================
fix-tests-python-3.13.patch
=====================================
@@ -0,0 +1,30 @@
+diff --unified --recursive --text --new-file
calmjs-3.4.4.orig/src/calmjs/tests/test_argparse.py
calmjs-3.4.4/src/calmjs/tests/test_argparse.py
+--- calmjs-3.4.4.orig/src/calmjs/tests/test_argparse.py 2024-11-18
06:57:10.555417502 +0100
++++ calmjs-3.4.4/src/calmjs/tests/test_argparse.py 2024-11-18
07:02:48.931181190 +0100
+@@ -108,7 +108,7 @@
+ stream = StringIO()
+ parser.print_help(file=stream)
+ options = [
+- line.split()[0]
++ line.split()[0].rstrip(',')
+ for line in stream.getvalue().splitlines() if
+ '--' in line
+ ]
+@@ -126,7 +126,7 @@
+ stream = StringIO()
+ parser.print_help(file=stream)
+ options = [
+- line.split()[0]
++ line.split()[0].rstrip(',')
+ for line in stream.getvalue().splitlines() if
+ '--' in line
+ ]
+@@ -145,7 +145,7 @@
+ stream = StringIO()
+ parser.print_help(file=stream)
+ options = [
+- line.split()[0]
++ line.split()[0].rstrip(',')
+ for line in stream.getvalue().splitlines() if
+ '--' in line and '[' not in line
+ ]
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-calmjs/-/commit/73c74efacc2d39f7e93aad3e3d37c28bafcde757
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-calmjs/-/commit/73c74efacc2d39f7e93aad3e3d37c28bafcde757
You're receiving this email because of your account on gitlab.archlinux.org.