[arch-commits] Commit in python-language-server/repos/community-any (2 files)
Morten Linderud
foxboron at archlinux.org
Tue Jun 5 10:52:16 UTC 2018
Date: Tuesday, June 5, 2018 @ 10:52:15
Author: foxboron
Revision: 340509
archrelease: copy trunk to community-any
Added:
python-language-server/repos/community-any/PKGBUILD
(from rev 340508, python-language-server/trunk/PKGBUILD)
Deleted:
python-language-server/repos/community-any/PKGBUILD
----------+
PKGBUILD | 141 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 70 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-05 10:52:06 UTC (rev 340508)
+++ PKGBUILD 2018-06-05 10:52:15 UTC (rev 340509)
@@ -1,71 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: fenuks
-
-pkgbase=python-language-server
-pkgname=(python-language-server python2-language-server)
-pkgver=0.18.0
-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-pytest-cov" "python-pyflakes"
- "python-mock" "python-jedi" "python-future" "yapf" "python-mccabe" "python-pycodestyle"
- "autopep8" "python-rope" "python-pydocstyle"
- "python2-pytest" "python2-pytest-runner" "python2-pytest-cov" "python2-pyflakes"
- "python2-autopep8" "python2-rope" "python2-mccabe" "python2-pydocstyle"
- "python2-mock" "python2-jedi" "python2-future" "python2-futures" "python2-yapf" "python2-pycodestyle" "python2-autopep8")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/palantir/${pkgname}/archive/${pkgver}.tar.gz")
-sha256sums=('c7b6febf9e853f2a68903f8f7835b789072b09ebc48d71d24d75f951ddec11f9')
-
-prepare() {
- cp -r "$pkgname-$pkgver"{,-py2}
-}
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- python setup.py build
-
- cd "${srcdir}/${pkgname}-${pkgver}-py2"
- python2 setup.py build
-}
-
-check() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- python setup.py pytest
-
- # TODO: tests on python2 does not work currently
- cd "${srcdir}/${pkgname}-${pkgver}-py2"
- #python2 setup.py pytest
-}
-
-package_python-language-server() {
- depends=("python" "python-json-rpc" "python-future" "python-jedi" "python-pluggy")
- optdepends=(
- "python-mccabe: for complexity checking"
- "python-rope: for completions and renaming"
- "python-pyflakes: for linter to detect various errors"
- "python-pycodestyle: for style checking"
- "autopep8: for code formatting"
- "yapf: for code formatting (preferred over autopep8)"
- "python-pydocstyle: for docstring style checking")
- cd "${pkgbase}-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
-}
-
-package_python2-language-server() {
- depends=("python2" "python2-json-rpc" "python2-future" "python2-jedi" "python2-pluggy")
- optdepends=(
- "python2-mccabe: for complexity checking"
- "python2-rope: for completions and renaming"
- "python2-pyflakes: for linter to detect various errors"
- "python2-pycodestyle: for style checking"
- "python2-autopep8: for code formatting"
- "python2-yapf: for code formatting (preferred over autopep8)"
- "python2-pydocstyle: for docstring style checking")
- cd "${pkgbase}-${pkgver}-py2"
- python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
- mv "$pkgdir/usr/bin/pyls" "$pkgdir/usr/bin/pyls2"
-}
Copied: python-language-server/repos/community-any/PKGBUILD (from rev 340508, python-language-server/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-06-05 10:52:15 UTC (rev 340509)
@@ -0,0 +1,70 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: fenuks
+
+pkgbase=python-language-server
+pkgname=(python-language-server python2-language-server)
+pkgver=0.19.0
+pkgrel=1
+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-pytest-cov" "python-pyflakes"
+ "python-mock" "python-jedi" "python-future" "yapf" "python-mccabe" "python-pycodestyle"
+ "autopep8" "python-rope" "python-pydocstyle"
+ "python2-pytest" "python2-pytest-runner" "python2-pytest-cov" "python2-pyflakes"
+ "python2-autopep8" "python2-rope" "python2-mccabe" "python2-pydocstyle"
+ "python2-mock" "python2-jedi" "python2-future" "python2-futures" "python2-yapf" "python2-pycodestyle" "python2-autopep8")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/palantir/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('5bd07b4c6224622517862dfe704d2015ccfa53fe091e13a40421687dc24a8acc')
+
+prepare() {
+ cp -r "$pkgname-$pkgver"{,-py2}
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${pkgname}-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ py.test
+
+ cd "${srcdir}/${pkgname}-${pkgver}-py2"
+ py.test2
+}
+
+package_python-language-server() {
+ depends=("python" "python-json-rpc" "python-future" "python-jedi" "python-pluggy")
+ optdepends=(
+ "python-mccabe: for complexity checking"
+ "python-rope: for completions and renaming"
+ "python-pyflakes: for linter to detect various errors"
+ "python-pycodestyle: for style checking"
+ "autopep8: for code formatting"
+ "yapf: for code formatting (preferred over autopep8)"
+ "python-pydocstyle: for docstring style checking")
+ cd "${pkgbase}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+}
+
+package_python2-language-server() {
+ depends=("python2" "python2-json-rpc" "python2-future" "python2-jedi" "python2-pluggy")
+ optdepends=(
+ "python2-mccabe: for complexity checking"
+ "python2-rope: for completions and renaming"
+ "python2-pyflakes: for linter to detect various errors"
+ "python2-pycodestyle: for style checking"
+ "python2-autopep8: for code formatting"
+ "python2-yapf: for code formatting (preferred over autopep8)"
+ "python2-pydocstyle: for docstring style checking")
+ cd "${pkgbase}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ mv "$pkgdir/usr/bin/pyls" "$pkgdir/usr/bin/pyls2"
+}
More information about the arch-commits
mailing list