git » python-argcomplete.git » commit c3c3dfe

upgpkg: 3.1.2-1

author Felix Yan
2024-06-18 19:25:50 UTC
committer Felix Yan
2024-06-18 19:25:50 UTC
parent 23122e0ec67c5bb87e105f738afea63a5dc4d0a7

upgpkg: 3.1.2-1

.SRCINFO +4 -4
PKGBUILD +10 -9

diff --git a/.SRCINFO b/.SRCINFO
index 458f860..cf65aa8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-argcomplete
 	pkgdesc = Easy, extensible command line tab completion of arguments for your Python script
-	pkgver = 3.1.1
-	pkgrel = 3
+	pkgver = 3.1.2
+	pkgrel = 1
 	url = https://github.com/kislyuk/argcomplete
 	arch = any
 	license = Apache-2.0
@@ -16,8 +16,8 @@ pkgbase = python-argcomplete
 	makedepends = python-setuptools-scm
 	makedepends = python-wheel
 	depends = python
-	source = argcomplete::git+https://github.com/kislyuk/argcomplete?signed#tag=v3.1.1
+	source = argcomplete::git+https://github.com/kislyuk/argcomplete?signed#tag=v3.1.2
 	validpgpkeys = 29BCBADB4ECAAAC2382699388AFAFCD242818A52
-	sha512sums = 5431f1c9309d6e29f5d867744245647214c0a5ce00dc516aef21e7de89881d15ff04fe1e33c3d43f256021e5670cd4d3e3cdab589e03147d68bb6b88563bd3ca
+	sha512sums = 4dfbc2b3542d791948602b05fb7939b22509f8a81d7870be92ef37af045132198ef28add76c3e4485f431ebb6cf52b489a443a48e6a0580e72be642b68770d15
 
 pkgname = python-argcomplete
diff --git a/PKGBUILD b/PKGBUILD
index adfac33..6a57e61 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
 
 pkgname=python-argcomplete
 _pyname=argcomplete
-pkgver=3.1.1
-pkgrel=3
+pkgver=3.1.2
+pkgrel=1
 pkgdesc='Easy, extensible command line tab completion of arguments for your Python script'
 url='https://github.com/kislyuk/argcomplete'
 arch=('any')
@@ -13,7 +13,7 @@ depends=('python')
 makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
 checkdepends=('fish' 'python-pexpect' 'python-pip' 'tcsh' 'zsh')
 source=(${_pyname}::"git+$url?signed#tag=v$pkgver")
-sha512sums=('5431f1c9309d6e29f5d867744245647214c0a5ce00dc516aef21e7de89881d15ff04fe1e33c3d43f256021e5670cd4d3e3cdab589e03147d68bb6b88563bd3ca')
+sha512sums=('4dfbc2b3542d791948602b05fb7939b22509f8a81d7870be92ef37af045132198ef28add76c3e4485f431ebb6cf52b489a443a48e6a0580e72be642b68770d15')
 validpgpkeys=('29BCBADB4ECAAAC2382699388AFAFCD242818A52') # Andrey Kislyuk <kislyuk@gmail.com>
 
 pkgver() {
@@ -23,8 +23,8 @@ pkgver() {
 
 prepare() {
   cd ${_pyname}
-  # fix test issues with Python 3.12: https://github.com/kislyuk/argcomplete/issues/440
-  git cherry-pick -n 59f4f9d37d7da3001829db67d22a4581798a0639
+  # Python 3.12.3 compatibility
+  git cherry-pick -n 54a4846b3a774cd9037167898f3cce38ba9d58e8
 }
 
 build() {
@@ -43,10 +43,11 @@ package() {
   cd ${_pyname}
   python -m installer --destdir="$pkgdir" dist/*.whl
 
-  local _site_packages=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
-  install -dm755 "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/zsh/site-functions
-  ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/bash-completion/completions/
-  ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/zsh/site-functions/
+  # Disabled again, see https://gitlab.archlinux.org/archlinux/packaging/packages/python-argcomplete/-/issues/3
+  # local _site_packages=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
+  # install -dm755 "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/zsh/site-functions
+  # ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/bash-completion/completions/
+  # ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/zsh/site-functions/
 }
 
 # vim: ts=2 sw=2 et: