diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 10:23:03 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 10:45:52 -0300 |
commit | 14d637f7c41356761719496792990960d271b7ab (patch) | |
tree | 88105754c9775125b51364088ee3cc50e5f10bfe /community | |
parent | 62c6b2f960a47a942a9514c7e863ff015f7acf3a (diff) | |
download | aports-14d637f7c41356761719496792990960d271b7ab.tar.bz2 aports-14d637f7c41356761719496792990960d271b7ab.tar.xz |
community/py3-pytest-forked: drop py2
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-pytest-forked/APKBUILD | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/community/py3-pytest-forked/APKBUILD b/community/py3-pytest-forked/APKBUILD index 8a25654a0e..d5fde6c7f6 100644 --- a/community/py3-pytest-forked/APKBUILD +++ b/community/py3-pytest-forked/APKBUILD @@ -1,51 +1,33 @@ # Contributor: Dmitry Romanenko <dmitry@romanenko.in> # Maintainer: Dmitry Romanenko <dmitry@romanenko.in> -pkgname=pytest-forked -_pkgname=${pkgname#py-} +pkgname=py3-pytest-forked +_pkgname=pytest-forked pkgver=1.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="extracted --boxed from pytest-xdist to ensure backward compat" url="https://github.com/pytest-dev/pytest-forked" arch="noarch" license="MIT" -depends="py-py pytest" -checkdepends="py-six py-tox" -makedepends="python2-dev python3-dev py-setuptools_scm" -subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +depends="py3-pytest" +makedepends="py3-setuptools_scm" +checkdepends="py3-tox" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +replaces="pytest-forked" # Backwards compatibility +provides="pytest-forked=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } check() { local _py3ver=$(python3 -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))') - tox -e py27,py$_py3ver + tox -e py$_py3ver } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="c48819a0434be5d9f9b49c7bc976969551479629e904f99f6dfd80fb9cde95a8a5a9bc2412b38828c1e303832b81fea0d8b7228d336983aebe21cb96b8a02b03 pytest-forked-1.0.2.tar.gz" |