diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 10:20:18 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 10:38:01 -0300 |
commit | 73952657d1f311dd001b21ae2508c6e110ba7d83 (patch) | |
tree | 3bc0e389b3c035ada2dea054fcae3e034a0ab837 /community/py3-setuptools_scm | |
parent | 491b0ac2838d6b4b1bd926616d77959d29973fe0 (diff) | |
download | aports-73952657d1f311dd001b21ae2508c6e110ba7d83.tar.bz2 aports-73952657d1f311dd001b21ae2508c6e110ba7d83.tar.xz |
community/py3-setuptools_scm: drop py2
Diffstat (limited to 'community/py3-setuptools_scm')
-rw-r--r-- | community/py3-setuptools_scm/APKBUILD | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/community/py3-setuptools_scm/APKBUILD b/community/py3-setuptools_scm/APKBUILD index 8c2133bac8..6bb8980f1f 100644 --- a/community/py3-setuptools_scm/APKBUILD +++ b/community/py3-setuptools_scm/APKBUILD @@ -1,50 +1,32 @@ # Contributor: Dmitry Romanenko <dmitry@romanenko.in> # Maintainer: Dmitry Romanenko <dmitry@romanenko.in> -pkgname=py-setuptools_scm +pkgname=py3-setuptools_scm _pkgname=setuptools_scm pkgver=3.3.3 -pkgrel=0 +pkgrel=1 pkgdesc="the blessed package to manage your versions by scm tags" url="https://github.com/pypa/setuptools_scm" arch="noarch" license="MIT" -checkdepends="pytest py-pip git mercurial" -makedepends="py-setuptools py3-setuptools" -subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-pip git mercurial" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-setuptools_scm" # Backwards compatibility +provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } check() { - PYTHONPATH=$PWD/src python2 -m pytest PYTHONPATH=$PWD/src python3 -m pytest } 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="196d4785a1802875d89b9e54ae788e791a9c5cb685109784059955b691242984e42b96d77075116790935f56be82259bc2588d95d65ecbb101261d76daddb83c setuptools_scm-3.3.3.tar.gz" |