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

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


    Date: Wednesday, January 6, 2021 @ 14:59:37
  Author: felixonmars
Revision: 810864

archrelease: copy trunk to community-any

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

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

Copied: python-pytest-checkdocs/repos/community-any/PKGBUILD (from rev 810863, python-pytest-checkdocs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-01-06 14:59:37 UTC (rev 810864)
@@ -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