[arch-commits] Commit in (4 files)
Morten Linderud
foxboron at archlinux.org
Mon May 28 11:13:33 UTC 2018
Date: Monday, May 28, 2018 @ 11:13:28
Author: foxboron
Revision: 332423
Added pydocstyle to community
Added:
python-pydocstyle/
python-pydocstyle/repos/
python-pydocstyle/trunk/
python-pydocstyle/trunk/PKGBUILD
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Added: python-pydocstyle/trunk/PKGBUILD
===================================================================
--- python-pydocstyle/trunk/PKGBUILD (rev 0)
+++ python-pydocstyle/trunk/PKGBUILD 2018-05-28 11:13:28 UTC (rev 332423)
@@ -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