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


Commits:
c3ceaac8 by loqs at 2024-02-29T10:22:21+00:00
Change to a PEP 517 based workflow

- - - - -
eaf12f62 by loqs at 2024-02-29T10:23:21+00:00
Stop hardcoding the Python version

- - - - -
3fd8069b by loqs at 2024-02-29T10:26:36+00:00
Change to SPDX license identifier

https://github.com/zopefoundation/zope.security/blob/dfdce15e432208fd8f01cc2072818a2847663bc6/LICENSE.txt

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -7,10 +7,10 @@ pkgrel=1
 pkgdesc="Zope Security Framework"
 arch=('x86_64')
 url="https://github.com/zopefoundation/zope.security";
-license=('ZPL')
+license=('ZPL-2.1')
 depends=('python-setuptools' 'python-zope-component' 
'python-zope-i18nmessageid'
          'python-zope-interface' 'python-zope-location' 'python-zope-proxy' 
'python-zope-schema')
-makedepends=('git')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-btrees' 'python-nose' 'python-zope-configuration' 
'python-zope-testing'
               'python-zope-testrunner')
 
source=("git+https://github.com/zopefoundation/zope.security.git#commit=$_commit";)
@@ -18,17 +18,18 @@ sha512sums=('SKIP')
 
 build() {
   cd zope.security
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd zope.security
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" 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.security
-  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-security/-/compare/e9fc90875705966823d411dae161b1e8c5a77351...3fd8069b1c1a5ce83ea740b0bfce52f40d3442d9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-security/-/compare/e9fc90875705966823d411dae161b1e8c5a77351...3fd8069b1c1a5ce83ea740b0bfce52f40d3442d9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to