blob: 836d8fb8c53b87d0121e7118fe79782680b28a61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=poetry
pkgver=1.2.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-cachecontrol
py3-cachy
py3-cleo
py3-crashtest
py3-html5lib
py3-jsonschema
py3-keyring
py3-packaging
py3-pexpect
py3-pkginfo
py3-platformdirs
py3-requests
py3-requests-toolbelt
py3-shellingham
py3-tomlkit
py3-virtualenv
py3-urllib3
py3-dulwich
"
makedepends="py3-build py3-installer"
checkdepends="py3-pytest py3-pytest-mock py3-deepdiff py3-httpretty"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-poetry/poetry/archive/$pkgver.tar.gz"
options="!check" # TODO: enable tests
prepare() {
default_prepare
# poetry-core excludes files specified in .gitignore (src/ in case of aports)
# so we need to create a separate git repository
git init
# flatdict module is not packaged in aports
rm tests/config/test_config.py
}
build() {
python3 -m build --no-isolation --wheel
}
check() {
python -m installer -d test_install \
dist/poetry-$pkgver-py3-none-any.whl
PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/poetry-$pkgver-py3-none-any.whl
}
sha512sums="
ed1f7574d4440cfd7aeb5ae0b7af1575f8a284ed0cc9d871dbe75ad2225e8c67aea3629cfaf70e696e5d56b8c913b0b60fab0c52785a687c96be6cd9caaca16a poetry-1.2.2.tar.gz
"
|