aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-packaging/APKBUILD
blob: e188b095c311c3272e3e89953fa474156507f8c4 (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: Breno Leitao <breno.leitao@gmail.com>
# Maintainer:
pkgname=py3-packaging
_pkgname=packaging
pkgver=20.9
pkgrel=0
pkgdesc="Core utilities for Python3 packages"
options="!check" # Requires py3-pytest which requires py3-setuptools
url="https://pypi.python.org/pypi/packaging"
arch="noarch"
license="Apache-2.0 AND BSD-2-Clause"
depends="python3 py3-parsing py3-six"
#checkdepends="py3-pytest" #  disable check to breake circular dep with py3-setuptools
source="https://files.pythonhosted.org/packages/source/p/packaging/packaging-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-packaging" # Backwards compatibility
provides="py-packaging=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

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

check() {
	PYTHONPATH="$PWD/build/lib" python3 -m pytest \
		--ignore=tests/test_markers.py \
		--ignore=tests/test_specifiers.py \
		--ignore=tests/test_tags.py \
		--ignore=tests/test_version.py
	# tests that require https://pypi.org/project/pretend/ are disabled
	# above because py3-pretend hasn't been packaged for Alpine Linux
}

sha512sums="229b729aa9be7730509b7036dce0ca0750103fb7e2cd45d51f0eeaf2a4731605d63d11e11c10c7c481e228faa5e860c2c8f7bc6bee3190cafd72c22d7b3db264  packaging-20.9.tar.gz"