Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-pymacaroons


Commits:
7940471b by Daniel M. Capella at 2025-09-16T18:48:40-04:00
upgpkg: 0.13.0-14: Backport python-six removal and use PEP 517

Also fix namcap warnings and https://github.com/koalaman/shellcheck/wiki/SC1112

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,17 +1,20 @@
 pkgbase = python-pymacaroons
        pkgdesc = Python implementation of Macaroons. They’re better than 
cookies!
        pkgver = 0.13.0
-       pkgrel = 13
+       pkgrel = 14
        url = https://github.com/ecordell/pymacaroons
        arch = any
        license = MIT
-       makedepends = python
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        depends = python-pynacl
-       depends = python-six
        conflicts = python-pymacaroons-pynacl
        source = 
pymacaroons-0.13.0.tar.gz::https://github.com/ecordell/pymacaroons/archive/v0.13.0.tar.gz
+       source = 
pymacaroons-drop-python2-mock-six.patch::https://github.com/ecordell/pymacaroons/commit/68e096119d5aceee33fb817fd9ee5434c5857a78.patch
        sha256sums = 
780c67643126afe56f57fdc0f82b952d08e01a4df7eefaa929766dfb6edf6580
+       sha256sums = 
a720c58d679149601bfdb38f519313dd4fc7bb07433e170a2c99237136b75bf7
 
 pkgname = python-pymacaroons


=====================================
PKGBUILD
=====================================
@@ -3,33 +3,46 @@
 
 pkgname=python-pymacaroons
 pkgver=0.13.0
-pkgrel=13
+pkgrel=14
 
-pkgdesc='Python implementation of Macaroons. They’re better than cookies!'
+pkgdesc="Python implementation of Macaroons. They’re better than cookies!"
 url='https://github.com/ecordell/pymacaroons'
 arch=('any')
 license=('MIT')
 
 depends=('python'
-         'python-pynacl'
-         'python-six')
-makedepends=('python'
-             'python-setuptools')
+         'python-pynacl')
+makedepends=('python-build'
+             'python-installer'
+             'python-setuptools'
+             'python-wheel')
 
 conflicts=('python-pymacaroons-pynacl')
 
-source=("pymacaroons-$pkgver.tar.gz::https://github.com/ecordell/pymacaroons/archive/v$pkgver.tar.gz";)
+source=("pymacaroons-$pkgver.tar.gz::https://github.com/ecordell/pymacaroons/archive/v$pkgver.tar.gz";
+        
'pymacaroons-drop-python2-mock-six.patch::https://github.com/ecordell/pymacaroons/commit/68e096119d5aceee33fb817fd9ee5434c5857a78.patch')
 
-sha256sums=('780c67643126afe56f57fdc0f82b952d08e01a4df7eefaa929766dfb6edf6580')
+sha256sums=('780c67643126afe56f57fdc0f82b952d08e01a4df7eefaa929766dfb6edf6580'
+            'a720c58d679149601bfdb38f519313dd4fc7bb07433e170a2c99237136b75bf7')
+
+prepare() {
+       cd pymacaroons-$pkgver
+       patch --forward --strip=1 
--input=../pymacaroons-drop-python2-mock-six.patch || true
+}
 
 build() {
-       cd "$srcdir"/pymacaroons-$pkgver
-       python setup.py build
+       cd pymacaroons-$pkgver
+       python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 package() {
+       local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+       install -d "$pkgdir"/usr/share/licenses/$pkgname
+       ln -s "$site_packages"/pymacaroons-$pkgver.dist-info/licenses/LICENSE \
+               "$pkgdir"/usr/share/licenses/$pkgname
+
        cd pymacaroons-$pkgver
-       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+       python -m installer --destdir="$pkgdir" dist/*.whl
 }
 
 # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pymacaroons/-/commit/7940471b064c017e757aa0e00ee3f62156e4531d

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


Reply via email to