Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-zope-location
Commits:
0821ed9a by Carl Smedstad at 2024-10-06T00:18:31+02:00
Update maintainer comments
- - - - -
cec441e7 by Carl Smedstad at 2024-10-06T00:18:44+02:00
Use SPDX license identifier
- - - - -
99bb6de5 by Carl Smedstad at 2024-10-06T00:19:11+02:00
Format deps, one per line, sorted alphabetically
- - - - -
26067f61 by Carl Smedstad at 2024-10-06T00:19:36+02:00
Introduce _pkgname var to avoid hard-coded references
- - - - -
b30bc94c by Carl Smedstad at 2024-10-06T00:24:53+02:00
upgpkg: 5.0-3: Migrate to standards based packaging (PEP517)
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,18 +1,22 @@
pkgbase = python-zope-location
pkgdesc = Special objects that have a structural location
pkgver = 5.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/zopefoundation/zope.location
arch = any
- license = ZPL
- checkdepends = python-zope-testrunner
- checkdepends = python-zope-copy
- checkdepends = python-zope-configuration
+ license = ZPL-2.1
checkdepends = python-zope-component
- depends = python-setuptools
+ checkdepends = python-zope-configuration
+ checkdepends = python-zope-copy
+ checkdepends = python-zope-testrunner
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-setuptools
+ makedepends = python-wheel
+ depends = python
depends = python-zope-interface
- depends = python-zope-schema
depends = python-zope-proxy
+ depends = python-zope-schema
source =
python-zope-location-5.0.tar.gz::https://github.com/zopefoundation/zope.location/archive/5.0.tar.gz
sha512sums =
4a3f41d4170730295b7b303eb9ca15304c35c05ed5fa62de8c92479011a82fe003d863d27136287394c0a04d7bb7959940fe605db5123d6c4953dada2d8ea92b
=====================================
PKGBUILD
=====================================
@@ -1,30 +1,48 @@
# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
pkgname=python-zope-location
+_pkgname=zope.location
pkgver=5.0
-pkgrel=2
+pkgrel=3
pkgdesc="Special objects that have a structural location"
arch=('any')
url="https://github.com/zopefoundation/zope.location"
-license=('ZPL')
-depends=('python-setuptools' 'python-zope-interface' 'python-zope-schema'
'python-zope-proxy')
-checkdepends=('python-zope-testrunner' 'python-zope-copy'
'python-zope-configuration' 'python-zope-component')
+license=('ZPL-2.1')
+depends=(
+ 'python'
+ 'python-zope-interface'
+ 'python-zope-proxy'
+ 'python-zope-schema'
+)
+makedepends=(
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+)
+checkdepends=(
+ 'python-zope-component'
+ 'python-zope-configuration'
+ 'python-zope-copy'
+ 'python-zope-testrunner'
+)
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.location/archive/$pkgver.tar.gz")
sha512sums=('4a3f41d4170730295b7b303eb9ca15304c35c05ed5fa62de8c92479011a82fe003d863d27136287394c0a04d7bb7959940fe605db5123d6c4953dada2d8ea92b')
build() {
- cd "$srcdir"/zope.location-$pkgver
- python setup.py build
+ cd $_pkgname-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd "$srcdir"/zope.location-$pkgver
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner
--test-path=src || echo "Tests failed"
+ cd $_pkgname-$pkgver
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner
--test-path=src
}
package() {
- cd zope.location-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ cd $_pkgname-$pkgver
+ 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-location/-/compare/0f07fdbb178a74555cc9f50369ef2b6a13930e3d...b30bc94c6c9ef30d42174c91e49660beea2881a7
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-location/-/compare/0f07fdbb178a74555cc9f50369ef2b6a13930e3d...b30bc94c6c9ef30d42174c91e49660beea2881a7
You're receiving this email because of your account on gitlab.archlinux.org.