aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-04-06 08:01:57 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-04-06 08:02:13 -0300
commitf318b01b38a6dcdbefd364076f2fce816366cd4f (patch)
treed3d93f1c6db526a85bc0c88e6d378eebb13797f1
parent358f730350218482cb161da8423d306880f4043c (diff)
downloadaports-f318b01b38a6dcdbefd364076f2fce816366cd4f.tar.gz
aports-f318b01b38a6dcdbefd364076f2fce816366cd4f.tar.bz2
aports-f318b01b38a6dcdbefd364076f2fce816366cd4f.tar.xz
community/py3-pytest-runner: fix build and running
-rw-r--r--community/py3-pytest-runner/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/community/py3-pytest-runner/APKBUILD b/community/py3-pytest-runner/APKBUILD
index 8e4ec7b6fd..88c95fcfc1 100644
--- a/community/py3-pytest-runner/APKBUILD
+++ b/community/py3-pytest-runner/APKBUILD
@@ -3,17 +3,23 @@
pkgname=py3-pytest-runner
_pkgname=pytest-runner
pkgver=5.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="Invoke py.test as distutils command"
options="!check" # Requires unpackaged pytest-{checkdocs,flake8,virtualenv}
url="https://github.com/pytest-dev/pytest-runner"
arch="noarch"
license="MIT"
-depends="python3"
-makedepends="py3-setuptools py3-setuptools_scm"
+depends="python3 py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+prepare() {
+ default_prepare
+
+ sed -e '/setuptools_scm/d' -i setup.py -i setup.cfg
+ sed -e "/^\[metadata\]/a version = $pkgver" -i setup.cfg
+}
+
build() {
python3 setup.py build
}