[arch-commits] Commit in python-apipkg/repos (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Jul 31 11:51:47 UTC 2022
Date: Sunday, July 31, 2022 @ 11:51:47
Author: arojas
Revision: 1259310
archrelease: copy trunk to community-testing-any
Added:
python-apipkg/repos/community-testing-any/
python-apipkg/repos/community-testing-any/PKGBUILD
(from rev 1259309, python-apipkg/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-apipkg/repos/community-testing-any/PKGBUILD (from rev 1259309, python-apipkg/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-07-31 11:51:47 UTC (rev 1259310)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apipkg
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/apipkg"
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-hatch-vcs')
+checkdepends=('python-pytest-runner')
+source=("https://github.com/pytest-dev/apipkg/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('89251f02a49b5191879bcf6e35c6a8755d6b29f1ca1c6061eab004385b11433ec86e2968ab23994c6a74515d6a673e445b3bcf8cbdd21b2ec644fcef0d19b419')
+
+build() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+ cd apipkg-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd apipkg-$pkgver
+ PYTHONPATH="$PWD"/src pytest
+}
+
+package() {
+ cd apipkg-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list