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


Commits:
f21f1024 by loqs at 2024-02-29T10:10:23+00:00
Change to a PEP 517 based workflow

- - - - -
4b7d02cd by loqs at 2024-02-29T10:11:58+00:00
Stop hardcoding the Python version

- - - - -
a59bbaf8 by loqs at 2024-02-29T10:13:37+00:00
Change to SPDX license identifier

https://github.com/zopefoundation/zope.proxy/blob/8307de41648dd661708a2e4ad77be310822a1d82/LICENSE.txt

- - - - -
0bd0058d by Daniel M. Capella at 2024-02-29T19:13:07-05:00
Bump SRCINFO

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,10 +4,13 @@ pkgbase = python-zope-proxy
        pkgrel = 1
        url = https://github.com/zopefoundation/zope.proxy
        arch = x86_64
-       license = ZPL
+       license = ZPL-2.1
        checkdepends = python-zope-security
        checkdepends = python-zope-testrunner
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
        depends = python-setuptools
        depends = python-zope-interface
        source = 
git+https://github.com/zopefoundation/zope.proxy.git#commit=8307de41648dd661708a2e4ad77be310822a1d82


=====================================
PKGBUILD
=====================================
@@ -7,26 +7,27 @@ pkgrel=1
 pkgdesc="Generic Transparent Proxies"
 arch=('x86_64')
 url="https://github.com/zopefoundation/zope.proxy";
-license=('ZPL')
+license=('ZPL-2.1')
 depends=('python-setuptools' 'python-zope-interface')
-makedepends=('git')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-zope-security' 'python-zope-testrunner')
 source=("git+https://github.com/zopefoundation/zope.proxy.git#commit=$_commit";)
 sha512sums=('SKIP')
 
 build() {
   cd zope.proxy
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd zope.proxy
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311:$PYTHONPATH" python -m 
zope.testrunner --test-path=src
+  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" python -m 
zope.testrunner --test-path=src
 }
 
 package() {
   cd zope.proxy
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-proxy/-/compare/f921fec1870714faddadaed535e1415a1bf82adf...0bd0058d9162e9a45f1d7dabc3398bc373921f8f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-proxy/-/compare/f921fec1870714faddadaed535e1415a1bf82adf...0bd0058d9162e9a45f1d7dabc3398bc373921f8f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to