aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-twine/APKBUILD
blob: 2df6239df3616d627142119c0eb30fda2996ca6e (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-twine
_pkgname=twine
pkgver=3.1.0
pkgrel=0
pkgdesc="Collection of utilities for publishing packages on PyPI"
options="!check" # Requires unpackaged 'pretend'
url="https://twine.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	py3-pkginfo
	py3-readme_renderer
	py3-requests>=2.20.0
	py3-requests-toolbelt
	py3-setuptools
	py3-tqdm
	py3-keyring
	"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2d091f3a6f1c82bffae0a69ad9f35c1827e66ccc13eb2206585e7e782402c7f6588019ccc8f65819113611058d41830f905ed6e3cf70d2a179d8ee3e939f7216  twine-3.1.0.tar.gz"