2022-04-01 01:04:17 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=python-packaging
|
2023-01-30 00:00:46 +01:00
|
|
|
pkgver=23.0
|
2023-04-30 04:16:33 +02:00
|
|
|
pkgrel=03
|
2022-04-01 01:04:17 +02:00
|
|
|
pkgdesc="Core utilities for Python packages"
|
|
|
|
url="https://github.com/pypa/packaging"
|
2023-01-30 00:00:46 +01:00
|
|
|
depends=('python')
|
|
|
|
makedepends=('python-build' 'python-installer' 'python-flit-core')
|
2022-04-01 01:04:17 +02:00
|
|
|
checkdepends=('python-pytest' 'python-pretend')
|
|
|
|
source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd packaging-$pkgver
|
2023-01-30 00:00:46 +01:00
|
|
|
python -m build -nw
|
2022-04-01 01:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd packaging-$pkgver
|
2023-01-30 00:00:46 +01:00
|
|
|
PYTHONPATH=src pytest
|
2022-04-01 01:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd packaging-$pkgver
|
2023-01-30 00:00:46 +01:00
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2022-04-01 01:04:17 +02:00
|
|
|
}
|
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-04-01 01:04:17 +02:00
|
|
|
|
|
|
|
license=('Apache')
|
|
|
|
|
2023-01-30 00:00:46 +01:00
|
|
|
sha256sums=(698f2c072c89a5eb7d9560b64401d52b2d5eaca412bc53f9bddfef214dca71aa) # python-packaging-23.0.tar.gz
|
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
## e8a2240779ee52d6ad3c25aed66c951bd39680f116088bccdc126e5563f35adc python-packaging-23.0-03-x86_64.pkg.tar.lz
|