mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
72 lines
1.5 KiB
Plaintext
72 lines
1.5 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=poetry
|
|
pkgver=1.4.2
|
|
pkgrel=1
|
|
pkgdesc="Python3 dependency management and packaging system"
|
|
url="https://python-poetry.org"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-poetry-core
|
|
py3-poetry-plugin-export
|
|
py3-build
|
|
py3-cachecontrol
|
|
py3-cleo
|
|
py3-crashtest
|
|
py3-dulwich
|
|
py3-filelock
|
|
py3-html5lib
|
|
py3-installer
|
|
py3-jsonschema
|
|
py3-keyring
|
|
py3-lockfile
|
|
py3-packaging
|
|
py3-pexpect
|
|
py3-pkginfo
|
|
py3-platformdirs
|
|
py3-pyproject-hooks
|
|
py3-requests
|
|
py3-requests-toolbelt
|
|
py3-shellingham
|
|
py3-tomlkit
|
|
py3-trove-classifiers
|
|
py3-virtualenv
|
|
py3-urllib3
|
|
"
|
|
makedepends="py3-gpep517 py3-installer"
|
|
checkdepends="py3-pytest py3-pytest-mock py3-deepdiff py3-httpretty"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python-poetry/poetry/archive/$pkgver.tar.gz"
|
|
options="!check" # TODO: enable tests
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# flatdict module is not packaged in aports
|
|
rm tests/config/test_config.py
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
a044f9df3c2e52ed28e42af8c10685d29fc2ed25e7f89cd5a21353b64cbfa561df24440a42fbb3749d68901c4572ef93a996ee7693a456b1498c40c8f3c0f631 poetry-1.4.2.tar.gz
|
|
"
|