Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-deprecation


Commits:
268528b7 by Felix Yan at 2026-02-03T03:22:52+08:00
upgpkg: 2.1.0-12

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,18 @@
 pkgbase = python-deprecation
        pkgdesc = A library to handle automated deprecations
        pkgver = 2.1.0
-       pkgrel = 11
+       pkgrel = 12
        url = https://deprecation.readthedocs.io
        arch = any
        license = Apache-2.0
+       makedepends = git
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-wheel
        depends = python
-       source = 
https://files.pythonhosted.org/packages/source/d/deprecation/deprecation-2.1.0.tar.gz
-       sha512sums = 
c184665d210c6eeb3f055b23e75c3714f3b18050e03bfe1384baf6c2504f1370116ae0e8c53ff818ccc54c0d633bbb3ba5791fe20b8029f3be0207b019a00275
+       depends = python-packaging
+       source = git+https://github.com/briancurtin/deprecation.git#tag=2.1.0
+       sha512sums = 
8c348fcdd8e35632fd5084fdb3ad24ee372433b4d6fd5123146e43430f10b8e2af8c23777cd0164911c3aaa188922d78dc139650cf38f073f7fa9f36b41dead7
 
 pkgname = python-deprecation


=====================================
PKGBUILD
=====================================
@@ -2,33 +2,33 @@
 
 pkgname=python-deprecation
 pkgver=2.1.0
-pkgrel=11
+pkgrel=12
 pkgdesc="A library to handle automated deprecations"
 arch=('any')
 license=('Apache-2.0')
 url="https://deprecation.readthedocs.io";
-depends=('python')
-makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
-source=("https://files.pythonhosted.org/packages/source/d/deprecation/deprecation-$pkgver.tar.gz";)
-sha512sums=('c184665d210c6eeb3f055b23e75c3714f3b18050e03bfe1384baf6c2504f1370116ae0e8c53ff818ccc54c0d633bbb3ba5791fe20b8029f3be0207b019a00275')
+depends=('python' 'python-packaging')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+source=("git+https://github.com/briancurtin/deprecation.git#tag=$pkgver";)
+sha512sums=('8c348fcdd8e35632fd5084fdb3ad24ee372433b4d6fd5123146e43430f10b8e2af8c23777cd0164911c3aaa188922d78dc139650cf38f073f7fa9f36b41dead7')
 
 prepare() {
-  sed -i 's/unittest2/unittest/g' deprecation-$pkgver/tests/*.py
-
-  export LC_CTYPE=en_US.UTF-8
+  cd deprecation
+  # https://github.com/briancurtin/deprecation/pull/66
+  git cherry-pick -n 2e48c2c07e3fd38ccc957fc3b33af59fda03f1e8
 }
 
 build() {
-  cd deprecation-$pkgver
+  cd deprecation
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd deprecation-$pkgver
+  cd deprecation
   python -m unittest discover
 }
 
 package() {
-  cd deprecation-$pkgver
+  cd deprecation
   python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-deprecation/-/commit/268528b7e9b0bdbaa668c0d959cc53bc722b72de

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


Reply via email to