Date: Sunday, January 29, 2023 @ 07:04:01
Author: felixonmars
Revision: 467567
archrelease: copy trunk to testing-any
Added:
python-packaging/repos/testing-any/
python-packaging/repos/testing-any/PKGBUILD
(from rev 467566, python-packaging/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-packaging/repos/testing-any/PKGBUILD (from rev 467566,
python-packaging/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2023-01-29 07:04:01 UTC (rev 467567)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-packaging
+pkgver=23.0
+pkgrel=1
+pkgdesc="Core utilities for Python packages"
+arch=('any')
+url="https://github.com/pypa/packaging"
+license=('Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest' 'python-pretend')
+source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5dd2f4a596e5a1ed01b461a37e063573f5ae08e181df40377a167fe2483205b3d965e10dc403cd173d0f87e0bdcae3cde05bd39024783fbe44541d0f777d94de')
+
+build() {
+ cd packaging-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd packaging-$pkgver
+ PYTHONPATH=src pytest
+}
+
+package() {
+ cd packaging-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}