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

Felix Yan felixonmars at archlinux.org
Wed Jan 6 15:04:45 UTC 2021


    Date: Wednesday, January 6, 2021 @ 15:04:45
  Author: felixonmars
Revision: 810876

archrelease: copy trunk to community-any

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

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

Copied: python-pytest-enabler/repos/community-any/PKGBUILD (from rev 810874, python-pytest-enabler/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-01-06 15:04:45 UTC (rev 810876)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-enabler
+pkgver=1.0.0
+pkgrel=1
+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=('44b221b0a3091bec21425fb5c0d9658f85608e61e003342cb09a542ddda3cd192eb0dca1627db34a3c6380f86f8fa39876a589e6b4d5ea93ce06aa16d3f6c0b0')
+
+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