[arch-commits] Commit in python-pytest-enabler/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:52:34 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:52:34
  Author: felixonmars
Revision: 1059450

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-enabler/repos/community-staging-any/
  python-pytest-enabler/repos/community-staging-any/PKGBUILD
    (from rev 1059448, python-pytest-enabler/trunk/PKGBUILD)

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

Copied: python-pytest-enabler/repos/community-staging-any/PKGBUILD (from rev 1059448, python-pytest-enabler/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:52:34 UTC (rev 1059450)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-enabler
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Enable installed pytest plugins'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/pytest-enabler'
+depends=('python-toml' 'python-jaraco' 'python-jaraco.context' 'python-more-itertools')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-jaraco.test' 'python-pytest-black' 'python-pytest-checkdocs'
+              'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-mypy')
+source=("https://github.com/jaraco/pytest-enabler/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b21ea6cbb12704d2602e408ad8145c6e67949be0b5bcd7506252a3b6b7142484c3ff508e595d5097929f0c7b3231431d53cad3bffb350f03a24eb65e35424349')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-enabler-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytest-enabler-$pkgver
+  python setup.py egg_info
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd pytest-enabler-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list