Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-zope-deferredimport
Commits:
8367fbd7 by Carl Smedstad at 2024-10-06T00:15:05+02:00
Update maintainer comments
- - - - -
0ecb51de by Carl Smedstad at 2024-10-06T00:15:17+02:00
Use SPDX license identifier
- - - - -
50835f86 by Carl Smedstad at 2024-10-06T00:16:05+02:00
Format deps, one per line, sorted alphabetically
- - - - -
0b36072d by Carl Smedstad at 2024-10-06T00:16:31+02:00
Introduce _pkgname var to avoid hard-coded references
- - - - -
95baba7e by Carl Smedstad at 2024-10-06T00:17:44+02:00
upgpkg: 5.0-3: Migrate to standards based packaging (PEP517)
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,12 +1,16 @@
pkgbase = python-zope-deferredimport
pkgdesc = Allows you to perform imports names that will only be
resolved when used in the code
pkgver = 5.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/zopefoundation/zope.deferredimport
arch = any
- license = ZPL
+ license = ZPL-2.1
checkdepends = python-zope-testrunner
- depends = python-setuptools
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-setuptools
+ makedepends = python-wheel
+ depends = python
depends = python-zope-proxy
source =
python-zope-deferredimport-5.0.tar.gz::https://github.com/zopefoundation/zope.deferredimport/archive/5.0.tar.gz
sha512sums =
bbc840ed0e0c03c87840f2a2290710c149258d3f63eeef2d6192d57d9f7dea42e29ae91adfa8b80e90ce2301aedd73c5426700eee42cdd3282d33bb1c8b6855f
=====================================
PKGBUILD
=====================================
@@ -1,30 +1,41 @@
# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
pkgname=python-zope-deferredimport
+_pkgname=zope.deferredimport
pkgver=5.0
-pkgrel=2
+pkgrel=3
pkgdesc="Allows you to perform imports names that will only be resolved when
used in the code"
arch=('any')
url="https://github.com/zopefoundation/zope.deferredimport"
-license=('ZPL')
-depends=('python-setuptools' 'python-zope-proxy')
+license=('ZPL-2.1')
+depends=(
+ 'python'
+ 'python-zope-proxy'
+)
+makedepends=(
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+)
checkdepends=('python-zope-testrunner')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.deferredimport/archive/$pkgver.tar.gz")
sha512sums=('bbc840ed0e0c03c87840f2a2290710c149258d3f63eeef2d6192d57d9f7dea42e29ae91adfa8b80e90ce2301aedd73c5426700eee42cdd3282d33bb1c8b6855f')
build() {
- cd "$srcdir"/zope.deferredimport-$pkgver
- python setup.py build
+ cd $_pkgname-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd "$srcdir"/zope.deferredimport-$pkgver
+ cd $_pkgname-$pkgver
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner
--test-path=src
}
package() {
- cd zope.deferredimport-$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-deferredimport/-/compare/83e3258b2a4e3619016ec5e37cb2e704aee25c4d...95baba7ef3a574154a1dcb19c0d2c1a74fcbeec2
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-deferredimport/-/compare/83e3258b2a4e3619016ec5e37cb2e704aee25c4d...95baba7ef3a574154a1dcb19c0d2c1a74fcbeec2
You're receiving this email because of your account on gitlab.archlinux.org.