Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-munch
Commits:
d5026b42 by Jelle van der Waa at 2024-11-20T20:27:49+01:00
upgpkg: 4.0.0-3: Rebuild for Python 3.13
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + python3.13-test-adjustments.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-munch
pkgdesc = A dot-accessible dictionary (a la JavaScript objects)
pkgver = 4.0.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/Infinidat/munch
arch = any
license = MIT
@@ -12,6 +12,8 @@ pkgbase = python-munch
makedepends = git
depends = python
source = https://pypi.io/packages/source/m/munch/munch-4.0.0.tar.gz
+ source = python3.13-test-adjustments.patch
sha512sums =
7beeee4d3fd084ac929e796cd62af097c2602a3ec06405f79b562bc6d14577350adbbe02848253c62f0938e706b9056799bfd5b9c2bdff6e559b3903b8cdca5c
+ sha512sums =
815235dd5cd09d8079c7c2a45258dd3468bd92c5fa5d9b6f8273ddf31f83dee4fc476baa9b031a6c9f94d298f00a86de97fedfee2d88ee9ae4b6bc6fe167e5da
pkgname = python-munch
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=python-munch
pkgver=4.0.0
-pkgrel=2
+pkgrel=3
pkgdesc="A dot-accessible dictionary (a la JavaScript objects)"
url="https://github.com/Infinidat/munch"
license=('MIT')
@@ -10,8 +10,15 @@ arch=('any')
depends=('python')
makedepends=('python-setuptools' 'python-pbr' 'git')
checkdepends=('python-pytest' 'python-yaml')
-source=(https://pypi.io/packages/source/m/munch/munch-${pkgver}.tar.gz)
-sha512sums=('7beeee4d3fd084ac929e796cd62af097c2602a3ec06405f79b562bc6d14577350adbbe02848253c62f0938e706b9056799bfd5b9c2bdff6e559b3903b8cdca5c')
+source=(https://pypi.io/packages/source/m/munch/munch-${pkgver}.tar.gz
+ python3.13-test-adjustments.patch)
+sha512sums=('7beeee4d3fd084ac929e796cd62af097c2602a3ec06405f79b562bc6d14577350adbbe02848253c62f0938e706b9056799bfd5b9c2bdff6e559b3903b8cdca5c'
+
'815235dd5cd09d8079c7c2a45258dd3468bd92c5fa5d9b6f8273ddf31f83dee4fc476baa9b031a6c9f94d298f00a86de97fedfee2d88ee9ae4b6bc6fe167e5da')
+
+prepare() {
+ cd munch-$pkgver
+ patch -Np1 -i ${srcdir}/python3.13-test-adjustments.patch
+}
build() {
cd munch-$pkgver
=====================================
python3.13-test-adjustments.patch
=====================================
@@ -0,0 +1,29 @@
+From 84651ee872f9ea6dbaed986fd3818202933a8b50 Mon Sep 17 00:00:00 2001
+From: Karolina Surma <[email protected]>
+Date: Wed, 5 Jun 2024 09:49:49 +0200
+Subject: [PATCH] Adjust tests for Python 3.13
+
+---
+ tests/test_munch.py | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/tests/test_munch.py b/tests/test_munch.py
+index c80b757..5886fdd 100644
+--- a/tests/test_munch.py
++++ b/tests/test_munch.py
+@@ -225,6 +225,15 @@ def test_reserved_attributes(attrname):
+ assert attr == 'munch'
+ elif attrname == '__dict__':
+ assert attr == {}
++ elif attrname == '__static_attributes__':
++ # Python 3.13: added __static_attributes__ attribute, populated by the
++ # compiler, containing a tuple of names of attributes of this class
++ # which are accessed through self.X from any function in its body.
++ assert isinstance(attr, tuple)
++ elif attrname == '__firstlineno__':
++ # Python 3.13: added __firstlineno__ attribute, populated by the
++ # compiler, containing the line number of the first line of the class
definition
++ assert isinstance(attr, int)
+ else:
+ assert callable(attr)
+
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-munch/-/commit/d5026b422db78f5c59d80acc453a9bfb4eb6c1a3
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-munch/-/commit/d5026b422db78f5c59d80acc453a9bfb4eb6c1a3
You're receiving this email because of your account on gitlab.archlinux.org.