Date: Sunday, December 2, 2018 @ 16:05:55 Author: foxboron Revision: 410767
upgpkg: python-pydocstyle 3.0.0-1 Modified: python-pydocstyle/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-12-02 16:01:31 UTC (rev 410766) +++ PKGBUILD 2018-12-02 16:05:55 UTC (rev 410767) @@ -2,28 +2,23 @@ pkgbase=python-pydocstyle pkgname=(python-pydocstyle python2-pydocstyle) -pkgver=2.1.1 -pkgrel=3 -pkgdesc="An implementation of the Language Server Protocol for Python" +pkgver=3.0.0 +pkgrel=1 +pkgdesc="Docstring style checker" arch=("any") -url="https://github.com/palantir/python-language-server" +url="http://www.pydocstyle.org/" 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") +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=('e83f5644897a623aafb0c3fd9ed11fcdc70c72efff4c3ac4738b12bd8665d12f') +sha256sums=('99d4c0b584eca25a179766a1e4c7e69284bc94eb9abf6d8e010d69b5a22596ec') -prepare() { - cp -r "pydocstyle-$pkgver"{,-py2} -} - build() { cd "${srcdir}/pydocstyle-${pkgver}" python setup.py build - - cd "${srcdir}/pydocstyle-${pkgver}-py2" python2 setup.py build } @@ -30,9 +25,6 @@ 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'" } @@ -45,7 +37,7 @@ package_python2-pydocstyle() { depends=("python2" "python2-snowballstemmer" "python2-configparser") - cd "pydocstyle-${pkgver}-py2" + cd "pydocstyle-${pkgver}" python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"