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

Morten Linderud foxboron at archlinux.org
Mon May 28 11:16:28 UTC 2018


    Date: Monday, May 28, 2018 @ 11:16:27
  Author: foxboron
Revision: 332429

archrelease: copy trunk to community-any

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

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

Copied: python-pydocstyle/repos/community-any/PKGBUILD (from rev 332428, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-05-28 11:16:27 UTC (rev 332429)
@@ -0,0 +1,53 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgbase=python-pydocstyle
+pkgname=(python-pydocstyle python2-pydocstyle)
+pkgver=2.1.1
+pkgrel=2
+pkgdesc="An implementation of the Language Server Protocol for Python"
+arch=("any")
+url="https://github.com/palantir/python-language-server"
+license=("MIT")
+makedepends=("python" "python-setuptools"
+             "python2" "python2-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner" "python-mock" "python-pip"
+              "python2-pytest" "python2-pytest-runner" "python2-mock" "python2-pip" "python2-pathlib")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz")
+sha256sums=('e83f5644897a623aafb0c3fd9ed11fcdc70c72efff4c3ac4738b12bd8665d12f')
+
+prepare() {
+  cp -r "pydocstyle-$pkgver"{,-py2}
+}
+
+build() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py build
+
+    cd "${srcdir}/pydocstyle-${pkgver}-py2"
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py pytest --addopts "-k 'not test_integration'"
+
+
+    cd "${srcdir}/pydocstyle-${pkgver}-py2"
+    python2 setup.py pytest --addopts "-k 'not test_integration'"
+}
+
+package_python-pydocstyle() {
+    depends=("python" "python-snowballstemmer")
+    cd "pydocstyle-${pkgver}"
+    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+    install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pydocstyle() {
+    depends=("python2" "python2-snowballstemmer" "python2-configparser")
+    cd "pydocstyle-${pkgver}-py2"
+    python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+    install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+    mv "$pkgdir/usr/bin/pydocstyle" "$pkgdir/usr/bin/pydocstyle2"
+}



More information about the arch-commits mailing list