[arch-commits] Commit in python-pydocstyle/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Wed Aug 7 18:57:15 UTC 2019


    Date: Wednesday, August 7, 2019 @ 18:57:15
  Author: foxboron
Revision: 498192

upgpkg: python-pydocstyle 4.0.0-1

Modified:
  python-pydocstyle/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++----------------------
 1 file changed, 7 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-07 18:54:27 UTC (rev 498191)
+++ PKGBUILD	2019-08-07 18:57:15 UTC (rev 498192)
@@ -1,45 +1,30 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 
-pkgbase=python-pydocstyle
-pkgname=(python-pydocstyle python2-pydocstyle)
-pkgver=3.0.0
+pkgname=python-pydocstyle
+pkgver=4.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")
+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=('99d4c0b584eca25a179766a1e4c7e69284bc94eb9abf6d8e010d69b5a22596ec')
+sha256sums=('f5096e8003f97b4520137ee5f84945517003a68e58bdfbf13b91ea9073434a42')
 
 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")
+package() {
     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