[arch-commits] Commit in python-pydocstyle/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 16:55:51 UTC 2020
Date: Monday, November 9, 2020 @ 16:55:51
Author: foutrelis
Revision: 747702
archrelease: copy trunk to community-staging-any
Added:
python-pydocstyle/repos/community-staging-any/
python-pydocstyle/repos/community-staging-any/PKGBUILD
(from rev 747701, python-pydocstyle/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-pydocstyle/repos/community-staging-any/PKGBUILD (from rev 747701, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:55:51 UTC (rev 747702)
@@ -0,0 +1,30 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=python-pydocstyle
+pkgver=5.1.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=('904bce3084dc4cb2f3802d1795f3fa8aa1e01e83823e117e44c6a93c4aa60a17')
+
+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