* update python-importlib_resources to 6.0.0-1
This commit is contained in:
parent
db843560f6
commit
96b779a8c3
@ -3,34 +3,52 @@
|
||||
|
||||
_name=importlib_resources
|
||||
pkgname=python-importlib_resources
|
||||
pkgver=5.12.0
|
||||
pkgrel=2
|
||||
_commit=dbcae3f7dc6b593af41b323dcb6e12eda59482b9 # refs/tags/v6.0.0
|
||||
pkgver=6.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="Design and implementation for a planned importlib.resources"
|
||||
arch=(any)
|
||||
url="https://github.com/python/importlib_resources"
|
||||
license=(Apache)
|
||||
depends=(python-zipp)
|
||||
makedepends=(python-build python-installer python-setuptools-scm python-toml python-wheel)
|
||||
checkdepends=(python-pytest python-tests)
|
||||
depends=(
|
||||
python
|
||||
)
|
||||
makedepends=(
|
||||
git
|
||||
python-build
|
||||
python-installer
|
||||
python-setuptools-scm
|
||||
python-toml
|
||||
python-wheel
|
||||
)
|
||||
checkdepends=(
|
||||
python-pytest
|
||||
python-tests
|
||||
)
|
||||
provides=(python-importlib-resources)
|
||||
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
|
||||
sha512sums=('00875d82cf3d2103872079ee2882c4000cc65141d97988265721cc6861a64dfe480e5c2191a2b22d0b9b9e42de1fc06d54f6d8eb4f37aaf91a819ee9306dc06f')
|
||||
b2sums=('bbae92bd62b54afc0093f8daa8f0fabaf18da7b2c9c578a2e6b6b7cc3207384e4fd037762c4ac8bc862900ac2da112a3b8ae236b1d3ca072c739f2d1ad3edd36')
|
||||
source=("git+$url#tag=$_commit")
|
||||
sha512sums=('SKIP')
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd $_name
|
||||
git describe --tags | sed 's/^v//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
cd $_name
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_name-$pkgver
|
||||
cd $_name
|
||||
pytest -vv
|
||||
}
|
||||
|
||||
package() {
|
||||
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
|
||||
cd $_name-$pkgver
|
||||
cd $_name
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||
# remove tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user