diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-17 20:29:15 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-04 06:04:24 +0000 |
commit | 042c0fb3a9cb59b020608c627f92755bae4b8a4f (patch) | |
tree | 18540e9cf195bf3773092d32270767018e8fc125 | |
parent | f6ec806e66bb5455a93a602b721a28f9b7e28d2c (diff) | |
download | aports-042c0fb3a9cb59b020608c627f92755bae4b8a4f.tar.bz2 aports-042c0fb3a9cb59b020608c627f92755bae4b8a4f.tar.xz |
testing/py-ipython_genutils: remove python2 support
-rw-r--r-- | testing/py-ipython_genutils/APKBUILD | 48 | ||||
-rw-r--r-- | testing/py3-ipython_genutils/APKBUILD | 25 |
2 files changed, 25 insertions, 48 deletions
diff --git a/testing/py-ipython_genutils/APKBUILD b/testing/py-ipython_genutils/APKBUILD deleted file mode 100644 index a2a972ddb3..0000000000 --- a/testing/py-ipython_genutils/APKBUILD +++ /dev/null @@ -1,48 +0,0 @@ -# Contributor: Kevin Daudt <kdaudt@alpinelinux.org> -# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> -pkgname=py-ipython_genutils -pkgver=0.2.0 -pkgrel=0 -pkgdesc="Vestigial IPython utilities" -url="https://github.com/ipython/ipython_genutils" -arch="noarch" -license="BSD-3-Clause" -makedepends="python2-dev python3-dev" -options="!check" # No test suite -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/ipython_genutils/archive/$pkgver.tar.gz" -builddir="$srcdir/${pkgname#py-}-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -package() { - cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" - python3 setup.py install --prefix=/usr --root="$pkgdir" -} - -_py2() { - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/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" -} - -sha512sums="b238fce8ba437328b9cd78871cd8a8ab562c513d33db95be74296233114a39eb8a3b3c64fbfb149bc3d42d3eb7762defc03befb9862d6aefbaad389d2838f854 py-ipython_genutils-0.2.0.tar.gz" diff --git a/testing/py3-ipython_genutils/APKBUILD b/testing/py3-ipython_genutils/APKBUILD new file mode 100644 index 0000000000..63dde03c84 --- /dev/null +++ b/testing/py3-ipython_genutils/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Kevin Daudt <kdaudt@alpinelinux.org> +# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> +pkgname=py3-ipython_genutils +pkgver=0.2.0 +pkgrel=0 +pkgdesc="Vestigial IPython utilities" +url="https://github.com/ipython/ipython_genutils" +arch="noarch" +license="BSD-3-Clause" +makedepends="python3-dev" +options="!check" # No test suite +source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/ipython_genutils/archive/$pkgver.tar.gz" +builddir="$srcdir/${pkgname#py3-}-$pkgver" +replaces="py-ipython_genutils" +provides="py-ipython_genutils" + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="b238fce8ba437328b9cd78871cd8a8ab562c513d33db95be74296233114a39eb8a3b3c64fbfb149bc3d42d3eb7762defc03befb9862d6aefbaad389d2838f854 py3-ipython_genutils-0.2.0.tar.gz" |