Date: Saturday, February 16, 2019 @ 18:42:30 Author: maximbaz Revision: 433699
python-language-server: purge python2 Modified: python-language-server/trunk/PKGBUILD ----------+ PKGBUILD | 66 ++++++++++++++++--------------------------------------------- 1 file changed, 18 insertions(+), 48 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-02-16 18:39:24 UTC (rev 433698) +++ PKGBUILD 2019-02-16 18:42:30 UTC (rev 433699) @@ -1,73 +1,43 @@ # Maintainer: Morten Linderud <[email protected]> -# Maintainer: Maxim Baz <$pkgbase at maximbaz dot com> +# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> # Contributor: fenuks -pkgbase=python-language-server -pkgname=(python-language-server python2-language-server) +pkgname=python-language-server pkgver=0.23.2 -pkgrel=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") +depends=("python" "python-jsonrpc-server" "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") +makedepends=("python" "python-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" "python-jsonrpc-server" - "python2-pytest" "python2-pytest-runner" "python2-pytest-cov" "python2-pyflakes" - "python2-autopep8" "python2-rope" "python2-mccabe" "python2-pydocstyle" "python2-jsonrpc-server" - "python2-mock" "python2-jedi" "python2-future" "python2-futures" "python2-yapf" "python2-pycodestyle" "python2-autopep8") + "autopep8" "python-rope" "python-pydocstyle" "python-jsonrpc-server") source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('d0da957d6d7044c46ce23c0e4aefedb28d7b591adb2705c13037c91679e903c1') -prepare() { - cp -r "$pkgname-$pkgver"{,-py2} -} - build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" python setup.py build - - cd "${srcdir}/${pkgname}-${pkgver}-py2" - python2 setup.py build } check() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" py.test - - cd "${srcdir}/${pkgname}-${pkgver}-py2" - py.test2 } -package_python-language-server() { - depends=("python" "python-jsonrpc-server" "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}" +package() { + cd "${pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } -package_python2-language-server() { - depends=("python2" "python2-jsonrpc-server" "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" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} +# vim:set ts=4 sw=4 et:
