[arch-commits] Commit in python-pydocstyle/repos/community-any (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Dec 2 16:06:08 UTC 2018


    Date: Sunday, December 2, 2018 @ 16:06:07
  Author: foxboron
Revision: 410768

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-02 16:05:55 UTC (rev 410767)
+++ PKGBUILD	2018-12-02 16:06:07 UTC (rev 410768)
@@ -1,53 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgbase=python-pydocstyle
-pkgname=(python-pydocstyle python2-pydocstyle)
-pkgver=2.1.1
-pkgrel=3
-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"
-}

Copied: python-pydocstyle/repos/community-any/PKGBUILD (from rev 410767, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-02 16:06:07 UTC (rev 410768)
@@ -0,0 +1,45 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgbase=python-pydocstyle
+pkgname=(python-pydocstyle python2-pydocstyle)
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Docstring style checker"
+arch=("any")
+url="http://www.pydocstyle.org/"
+license=("MIT")
+makedepends=("python" "python-setuptools"
+             "python2" "python2-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner" "python-mock" "python-pip" "python-snowballstemmer"
+              "python2-pytest" "python2-pytest-runner" "python2-mock" "python2-pip" "python2-pathlib"
+              "python2-snowballstemmer")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz")
+sha256sums=('99d4c0b584eca25a179766a1e4c7e69284bc94eb9abf6d8e010d69b5a22596ec')
+
+build() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py build
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}/pydocstyle-${pkgver}"
+    python setup.py pytest --addopts "-k 'not test_integration'"
+    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}"
+    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