[arch-commits] Commit in python-jaraco.test/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:48:51 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:48:51
  Author: felixonmars
Revision: 1059342

archrelease: copy trunk to community-staging-any

Added:
  python-jaraco.test/repos/community-staging-any/
  python-jaraco.test/repos/community-staging-any/PKGBUILD
    (from rev 1059340, python-jaraco.test/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-jaraco.test/repos/community-staging-any/PKGBUILD (from rev 1059340, python-jaraco.test/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:48:51 UTC (rev 1059342)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jaraco.test
+pkgver=5.0.0
+pkgrel=2
+pkgdesc="Testing support by jaraco"
+url="https://github.com/jaraco/jaraco.test"
+license=('MIT')
+arch=('any')
+depends=('python-jaraco' 'python-jaraco.context' 'python-toml' 'python-more-itertools')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-checkdocs' 'python-pytest-cov'
+              'python-pytest-enabler' 'python-pytest-flake8' 'python-pytest-mypy')
+source=("https://github.com/jaraco/jaraco.test/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5a5c3268b570269f5d18166c9c90973e18acbd14f382c08a8576f8612fc477d739d1e8714aa9cbdf0cb2da9551a0a19da33976ed443449007eb6b300a055f987')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd jaraco.test-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd jaraco.test-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd jaraco.test-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list