Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: jedi-language-server 0.21.0-5: Remove readme from site-packag…
Browse files Browse the repository at this point in the history
…es root and install license

git-svn-id: file:///srv/repos/svn-community/svn@876333 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
polyzen committed Mar 1, 2021
1 parent 47693b7 commit 250fbcb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jedi-language-server/trunk/PKGBUILD
Expand Up @@ -2,7 +2,7 @@

pkgname=jedi-language-server
pkgver=0.21.0
pkgrel=4
pkgrel=5
pkgdesc='Language server for Jedi'
arch=('any')
url=https://github.com/pappasam/jedi-language-server
Expand All @@ -13,6 +13,11 @@ source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$
sha256sums=('bb9d5e5c0aadf69cc441263685c83c12e67b6ed6f546dbd92dbed417123d8a47')
b2sums=('73d3b3fecca4d7df7eb9dafd0bc9618844754c3ba8cbeeb402bab6e342f223ee4de49593dc27e3c1c1bd0a329f49f54e2c17bd5a98750c4f756cba9bca074a3f')

prepare() {
cd $pkgname-$pkgver
sed -i '/include = \["README.md"\]/d' pyproject.toml
}

build() {
cd $pkgname-$pkgver
poetry build --format wheel
Expand All @@ -22,6 +27,7 @@ package() {
cd $pkgname-$pkgver
export PYTHONHASHSEED=0
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}

# vim:set ts=2 sw=2 et:

0 comments on commit 250fbcb

Please sign in to comment.