[arch-commits] Commit in python-project-metadata (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Aug 1 06:57:45 UTC 2022
Date: Monday, August 1, 2022 @ 06:57:45
Author: arojas
Revision: 1259572
archrelease: copy trunk to community-any
Added:
python-project-metadata/repos/
python-project-metadata/repos/community-any/
python-project-metadata/repos/community-any/PKGBUILD
(from rev 1259571, python-project-metadata/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-project-metadata/repos/community-any/PKGBUILD (from rev 1259571, python-project-metadata/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2022-08-01 06:57:45 UTC (rev 1259572)
@@ -0,0 +1,34 @@
+# Maintainer:
+
+pkgname=python-pyproject-metadata
+pkgver=0.6.1
+pkgrel=1
+pkgdesc='PEP 621 metadata parsing'
+arch=(any)
+url='https://github.com/FFY00/python-pyproject-metadata'
+license=(MIT)
+depends=(python-packaging)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/FFY00/python-pyproject-metadata/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('4af84f9534a5c71e192e1355e1e99f99e82b97d01411c011ed2f1dff579a7420a0f5d982eea5a032de8549c14191b64334c8e2aeea22fe767837e662e8d8b588')
+
+build() {
+ cd $pkgname-$pkgver
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $pkgname-$pkgver
+
+ pytest -v
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list