python-poetry
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user