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

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 20:10:37 UTC 2019


    Date: Friday, October 25, 2019 @ 20:10:36
  Author: foutrelis
Revision: 519773

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pydocstyle/repos/community-staging-any/PKGBUILD (from rev 519772, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:10:36 UTC (rev 519773)
@@ -0,0 +1,30 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=python-pydocstyle
+pkgver=4.0.1
+pkgrel=2
+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=('15cda50d4ede4a90e8ceb53c42234408d7e6b5e73914c5ccbb55556e7b28e914')
+
+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