[arch-commits] Commit in python-pydocstyle/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Wed Jul 18 19:06:19 UTC 2018
Date: Wednesday, July 18, 2018 @ 19:06:19
Author: eschwartz
Revision: 362293
archrelease: copy trunk to community-staging-any
Added:
python-pydocstyle/repos/community-staging-any/
python-pydocstyle/repos/community-staging-any/PKGBUILD
(from rev 362292, python-pydocstyle/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-pydocstyle/repos/community-staging-any/PKGBUILD (from rev 362292, python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-18 19:06:19 UTC (rev 362293)
@@ -0,0 +1,53 @@
+# 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"
+}
More information about the arch-commits
mailing list