Compare commits

..

No commits in common. "031193e1d6d33703bc1316451110fed31cd71179" and "c2c6bd870f3101dda7eaff374063600752d5057a" have entirely different histories.

@ -1,3 +1,5 @@
_pkgname="poetry"
name='python-poetry' name='python-poetry'
version='1.8.3' version='1.8.3'
release='1' release='1'
@ -9,90 +11,50 @@ license=('MIT')
provides=('poetry') provides=('poetry')
conflicts=('poetry') conflicts=('poetry')
deps=( _deps=(build
'python-build' cachecontrol
'python-cachecontrol' cachy
'python-cachy' cleo
'python-cleo' crashtest
'python-crashtest' dulwich
'python-dulwich' filelock
'python-filelock' html5lib
'python-html5lib' installer
'python-installer' jsonschema
'python-jsonschema' keyring
'python-keyring' lockfile
'python-lockfile' packaging
'python-packaging' pexpect
'python-pexpect' pkginfo
'python-pkginfo' platformdirs
'python-platformdirs' poetry-core
'python-poetry-core' poetry-plugin-export
'python-poetry-plugin-export' pyproject-hooks
'python-pyproject-hooks' requests
'python-requests' requests-toolbelt
'python-requests-toolbelt' shellingham
'python-shellingham' tomlkit
'python-tomlkit' trove-classifiers
'python-trove-classifiers' urllib3
'python-urllib3' virtualenv)
'python-virtualenv' deps=(python
) "${_deps[@]/#/python-}")
deps_redos=( build_deps=(python-deepdiff # not mentioned but required
'python3-build' python-psutil # for python-pytest-xdist
'python3-CacheControl' python-httpretty
'python3-cachy' python-pip # not mentioned but required
'python3-cleo' python-pytest
'python3-crashtest' python-pytest-mock
'python3-dulwich' python-pytest-randomly
'python3-filelock' python-pytest-xdist)
'python3-html5lib'
'python3-installer'
'python3-jsonschema'
'python3-keyring'
'python3-lockfile'
'python3-packaging'
'python3-pexpect'
'python3-pkginfo'
'python3-platformdirs'
'python3-poetry-core'
'python3-poetry-plugin-export'
'python3-pyproject-hooks'
'python3-requests'
'python3-requests-toolbelt'
'python3-shellingham'
'python3-tomlkit'
'python3-trove-classifiers'
'python3-urllib3'
'python3-virtualenv'
)
build_deps=(
'python-deepdiff' # not mentioned but required
'python-psutil' # for python-pytest-xdist
'python-httpretty'
'python-pip' # not mentioned but required
'python-pytest'
'python-pytest-mock'
'python-pytest-randomly'
'python-pytest-xdist'
)
build_deps_redos=(
'python3-deepdiff' # not mentioned but required
'python-psutil' # for python-pytest-xdist
'python3-httpretty'
'python-pip' # not mentioned but required
'python-pytest'
'python-pytest-mock'
'python3-pytest-randomly'
'python-pytest-xdist'
)
opt_deps=('python-pip: to use pip with virtual environments') opt_deps=('python-pip: to use pip with virtual environments')
opt_deps_redos=('python3-pip: to use pip with virtual environments')
sources=("https://github.com/$name/poetry/releases/download/${version}/poetry-${version}.tar.gz") _archive="$_pkgname-$pkgver"
checksums=('SKIP') source=("https://github.com/$pkgname/$_pkgname/archive/$pkgver/$_archive.tar.gz")
sha256sums=('4da8d1b19cfb50536c6b54e984b88cec3bc1203f9749d5f4958db5cbb0c7b7bc')
prepare() { prepare() {
cd "poetry-$version" cd "$_archive"
# Unpin crashtest which we have packaged at 0.4.0 # Unpin crashtest which we have packaged at 0.4.0
# https://bugs.archlinux.org/task/75733 # https://bugs.archlinux.org/task/75733
# Also unpin requests-toolbelt # Also unpin requests-toolbelt
@ -102,7 +64,7 @@ prepare() {
build() { build() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "poetry-$version" cd "$_archive"
python -m build -wn python -m build -wn
# install to tmp dir for tests and generate completions # install to tmp dir for tests and generate completions
python -m installer --destdir=test_dir dist/*.whl python -m installer --destdir=test_dir dist/*.whl
@ -115,16 +77,16 @@ build() {
check() { check() {
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "poetry-$version" cd "$_archive"
export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH" export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
pytest -vv tests pytest -vv tests
} }
package() { package() {
cd "poetry-$version" cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl python -m installer -d "$pkgdir" dist/*.whl
install-license ./LICENSE ./poetry/LICENSE install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
install -vDm 644 poetry.bash "$pkgdir/usr/share/bash-completion/completions/poetry" install -vDm 644 $_pkgname.bash "$pkgdir/usr/share/bash-completion/completions/$_pkgname"
install -vDm 644 poetry.zsh "$pkgdir/usr/share/zsh/site-functions/_poetry" install -vDm 644 $_pkgname.zsh "$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
install -vDm 644 poetry.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/" install -vDm 644 $_pkgname.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/"
} }