[arch-commits] Commit in python-matrix-nio/trunk (PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Mon Apr 4 22:30:03 UTC 2022
Date: Monday, April 4, 2022 @ 22:30:02
Author: diabonas
Revision: 1181411
upgpkg: python-matrix-nio 0.19.0-3: remove dependency version pinning
Upstream pins the dependency versions to the minor version that was used during
development. Since the Arch repositories contain some newer versions, importing
the module can fail. Try e.g.
from pkg_resources import require
require("matrix-nio")
This fails with
pkg_resources.ContextualVersionConflict: (aiofiles 0.8.0 (/usr/lib/python3.10/site-packages), Requirement.parse('aiofiles<0.7.0,>=0.6.0'), {'matrix-nio'})
The package works fine with the latest versions available in the repositories
(that is what we run the test suite for after all), so remove the dependency
version pinning altogether.
Modified:
python-matrix-nio/trunk/PKGBUILD
----------+
PKGBUILD | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-04 22:11:10 UTC (rev 1181410)
+++ PKGBUILD 2022-04-04 22:30:02 UTC (rev 1181411)
@@ -2,7 +2,7 @@
pkgname=python-matrix-nio
pkgver=0.19.0
_tag=52109a160765f1a9e7f78be1aed8a282a83515f1 # git rev-parse "$pkgver"
-pkgrel=2
+pkgrel=3
pkgdesc='Python Matrix client library, designed according to sans I/O principles'
arch=('any')
url='https://github.com/poljar/matrix-nio'
@@ -22,6 +22,12 @@
git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
+prepare() {
+ cd "${pkgname#python-}"
+ # Remove unnecessary dependency version pinning
+ sed -i 's/= "^[0-9.]*"/= "*"/' pyproject.toml
+}
+
build() {
cd "${pkgname#python-}"
python -m build --wheel --no-isolation
More information about the arch-commits
mailing list