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


Commits:
d7269781 by loqs at 2024-02-29T09:26:48+00:00
Change to a PEP 517 based workflow

- - - - -
de9459f7 by loqs at 2024-02-29T09:46:43+00:00
Stop hardcoding the Python version

- - - - -
30be15b5 by loqs at 2024-02-29T09:46:46+00:00
Change to SPDX license identifier

https://github.com/zopefoundation/zope.i18nmessageid/blob/6.1.0/LICENSE.txt

- - - - -
6ef0f545 by Daniel M. Capella at 2024-02-29T18:31:28-05:00
Bump SRCINFO

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,8 +4,11 @@ pkgbase = python-zope-i18nmessageid
        pkgrel = 1
        url = https://github.com/zopefoundation/zope.i18nmessageid
        arch = x86_64
-       license = ZPL
+       license = ZPL-2.1
        checkdepends = python-zope-testrunner
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
        depends = python-setuptools
        source = 
python-zope-i18nmessageid-6.1.0.tar.gz::https://github.com/zopefoundation/zope.i18nmessageid/archive/6.1.0.tar.gz
        sha512sums = 
31a18cf8f4639d21e9d3a8eeb39205e778521353f49a53a0bc807ca520ca437cfd83aeb1246e4631b323f1197f02b1246b6d254e2f0d917b6a3353426fb9725e


=====================================
PKGBUILD
=====================================
@@ -6,25 +6,27 @@ pkgrel=1
 pkgdesc="Message Identifiers for internationalization"
 arch=('x86_64')
 url="https://github.com/zopefoundation/zope.i18nmessageid";
-license=('ZPL')
+license=('ZPL-2.1')
 depends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-zope-testrunner')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.i18nmessageid/archive/$pkgver.tar.gz";)
 
sha512sums=('31a18cf8f4639d21e9d3a8eeb39205e778521353f49a53a0bc807ca520ca437cfd83aeb1246e4631b323f1197f02b1246b6d254e2f0d917b6a3353426fb9725e')
 
 build() {
   cd zope.i18nmessageid-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd zope.i18nmessageid-$pkgver
-  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.i18nmessageid-$pkgver
-  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-i18nmessageid/-/compare/09ea460fd6c805e9dbf09b9eafb8ed98009993b0...6ef0f545bb15e551c56b8163c49e874925c9359a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-i18nmessageid/-/compare/09ea460fd6c805e9dbf09b9eafb8ed98009993b0...6ef0f545bb15e551c56b8163c49e874925c9359a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to