[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jan 6 14:59:20 UTC 2021


    Date: Wednesday, January 6, 2021 @ 14:59:20
  Author: felixonmars
Revision: 810863

addpkg: python-pytest-checkdocs 2.2.0-1

Added:
  python-pytest-checkdocs/
  python-pytest-checkdocs/repos/
  python-pytest-checkdocs/trunk/
  python-pytest-checkdocs/trunk/PKGBUILD

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

Added: python-pytest-checkdocs/trunk/PKGBUILD
===================================================================
--- python-pytest-checkdocs/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-checkdocs/trunk/PKGBUILD	2021-01-06 14:59:20 UTC (rev 810863)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-checkdocs
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='Check the README when running tests'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/pytest-checkdocs'
+depends=('python-docutils' 'python-more-itertools')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-jaraco.test' 'python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8'
+              'python-pytest-mypy')
+source=("https://github.com/jaraco/pytest-checkdocs/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('24ecf6c0b4bcbd66ec2ab127fb6eb3595ad1be1fde526524b91a3ef41d9d614485f82d6349293dc685b360d799c1909dbe1599d822fc2d992788086e11627bdb')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-checkdocs-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytest-checkdocs-$pkgver
+  python setup.py egg_info
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd pytest-checkdocs-$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