python-poetry

This commit is contained in:
Евгений Храмов 2024-09-28 14:35:19 +03:00
parent 031193e1d6
commit ced95fb685
2 changed files with 4 additions and 4 deletions

@ -1,6 +1,6 @@
name='gitea'
version='1.22.2'
release='1'
release='2'
desc='Painless self-hosted Git service, community managed.'
homepage='https://gitea.io'
maintainer="Евгений Храмов <xpamych@yandex.ru>"

@ -1,6 +1,6 @@
name='python-poetry'
version='1.8.3'
release='1'
release='2'
desc='Python dependency management and packaging made easy'
homepage='https://python-poetry.org'
maintainer="Евгений Храмов <xpamych@yandex.ru>"
@ -101,13 +101,13 @@ prepare() {
}
build() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "poetry-$version"
python -m build -wn
# install to tmp dir for tests and generate completions
python -m installer --destdir=test_dir dist/*.whl
export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
export PATH="$PWD/test_dir/usr/bin:$PATH"
export PATH="$PWD/test_dir/usr/local/bin:$PATH"
poetry completions bash > poetry.bash
poetry completions zsh > poetry.zsh
poetry completions fish > poetry.fish