Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
python-zope-annotation


Commits:
5dc579ac by Carl Smedstad at 2024-10-06T00:25:47+02:00
Update maintainer comments

- - - - -
f2dd2618 by Carl Smedstad at 2024-10-06T00:26:06+02:00
Use SPDX license identifier

- - - - -
70a0ee13 by Carl Smedstad at 2024-10-06T00:26:35+02:00
Format deps, one per line, sorted alphabetically

- - - - -
ab86eedf by Carl Smedstad at 2024-10-06T00:27:00+02:00
Introduce _pkgname var to avoid hard-coded references

- - - - -
e1d93ad0 by Carl Smedstad at 2024-10-06T00:28:00+02:00
upgpkg: 5.0-4: Migrate to standards based packaging (PEP517)

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,20 @@
 pkgbase = python-zope-annotation
        pkgdesc = Object annotation mechanism
        pkgver = 5.0
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/zopefoundation/zope.annotation
        arch = any
-       license = ZPL
+       license = ZPL-2.1
        checkdepends = python-zope-configuration
        checkdepends = python-zope-testing
        checkdepends = python-zope-testrunner
-       depends = python-setuptools
-       depends = python-zope-interface
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
        depends = python-zope-component
+       depends = python-zope-interface
        depends = python-zope-location
        depends = python-zope-proxy
        source = 
python-zope-annotation-5.0.tar.gz::https://github.com/zopefoundation/zope.annotation/archive/5.0.tar.gz


=====================================
PKGBUILD
=====================================
@@ -1,29 +1,46 @@
 # Maintainer: Felix Yan <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
 
 pkgname=python-zope-annotation
+_pkgname=zope.annotation
 pkgver=5.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Object annotation mechanism"
 arch=('any')
 url="https://github.com/zopefoundation/zope.annotation";
-license=('ZPL')
-depends=('python-setuptools' 'python-zope-interface' 'python-zope-component'
-         'python-zope-location' 'python-zope-proxy')
-checkdepends=('python-zope-configuration' 'python-zope-testing' 
'python-zope-testrunner')
+license=('ZPL-2.1')
+depends=(
+  'python'
+  'python-zope-component'
+  'python-zope-interface'
+  'python-zope-location'
+  'python-zope-proxy'
+)
+makedepends=(
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+checkdepends=(
+  'python-zope-configuration'
+  'python-zope-testing'
+  'python-zope-testrunner'
+)
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.annotation/archive/$pkgver.tar.gz";)
 
sha512sums=('4d616e611b6563e405cfeffcaa602bd0d5065618053a8f5f3c41a5cd1d884bbdc6c74dc705be5c6210d6e6b012a30c48b3a5523952b6ad0c5db96db117074df3')
 
 build() {
-  cd zope.annotation-$pkgver
-  python setup.py build
+  cd $_pkgname-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd zope.annotation-$pkgver
+  cd $_pkgname-$pkgver
   PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner 
--test-path=src
 }
 
 package() {
-  cd zope.annotation-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  cd $_pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-annotation/-/compare/a1f855317136f631c86655441b1107489452bd16...e1d93ad0eba35285535eb6c8461b9ce1505c4046

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-annotation/-/compare/a1f855317136f631c86655441b1107489452bd16...e1d93ad0eba35285535eb6c8461b9ce1505c4046
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to