blob: b6ec462f861fd51a97f9c3d91af3e2561d297611 (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=poetry
pkgver=1.1.13
pkgrel=2
pkgdesc="Python3 dependency management and packaging system"
url="https://python-poetry.org"
license="MIT"
arch="noarch"
options="!check" # TODO: add tests
depends="
python3
py3-poetry-core
py3-cleo
py3-clikit
py3-crashtest
py3-requests
py3-cachy
py3-requests-toolbelt
py3-cachecontrol
py3-pkginfo
py3-html5lib
py3-shellingham
py3-tomlkit
py3-pexpect
py3-packaging
py3-virtualenv
py3-keyring
py3-lark-parser
py3-jsonschema
"
makedepends="py3-build py3-installer"
source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/poetry/archive/$pkgver.tar.gz
fix-packaging-tags.patch
"
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
}
build() {
python3 -m build --no-isolation --skip-dependency-check --wheel
}
package() {
python3 -m installer -d "$pkgdir" --compile-bytecode 0 \
dist/poetry-$pkgver-py2.py3-none-any.whl
# remove conflicts with files owned by py3-poetry-core (direct dependency of poetry)
# see: https://github.com/python-poetry/poetry/issues/2800
local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
rm "$pkgdir/$sitedir"/poetry/__init__.py \
"$pkgdir/$sitedir"/poetry/__pycache__/__init__.cpython-*.pyc \
"$pkgdir/$sitedir"/poetry/json/schemas/poetry-schema.json
}
sha512sums="
19143c05c89062215d4d4fb0f76ded11acd06ecbca7569b2f7272603de58b39df3adc523ad9886e8fd8d7c2496ecb1963183420bdc85d8945c26e08443653a02 poetry-1.1.13.tar.gz
392777b21ec45d35eb3df37b9286096520556398c947c7e51f319fee871de0a091870203e20461caacae1b78b0b832ca9305b22332262f3e8b41b0eed596c7af fix-packaging-tags.patch
"
|