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

Morten Linderud foxboron at archlinux.org
Tue Dec 10 20:34:38 UTC 2019


    Date: Tuesday, December 10, 2019 @ 20:34:37
  Author: foxboron
Revision: 536568

archrelease: copy trunk to community-staging-any

Added:
  python-pydocstyle/repos/community-staging-any/
  python-pydocstyle/repos/community-staging-any/PKGBUILD
    (from rev 536567, python-pydocstyle/trunk/PKGBUILD)

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

Copied: python-pydocstyle/repos/community-staging-any/PKGBUILD (from rev 536567, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-10 20:34:37 UTC (rev 536568)
@@ -0,0 +1,30 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=python-pydocstyle
+pkgver=5.0.1
+pkgrel=1
+pkgdesc="Docstring style checker"
+arch=("any")
+url="http://www.pydocstyle.org/"
+license=("MIT")
+depends=("python-snowballstemmer")
+makedepends=("python-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner" "python-mock" "python-pip" "python-snowballstemmer")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz")
+sha256sums=('61950855c153981f64373c2c8669478f2cab47cac12bdbf6174bdc01ef3faed5')
+
+build() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py pytest --addopts "-k 'not test_integration'"
+}
+
+package() {
+    cd "pydocstyle-${pkgver}"
+    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+    install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list