aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Searle <joe@jsearle.net>2019-09-28 12:03:09 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-10-24 20:29:56 +0000
commit199e7f9d77c0442b557a793ed9908532a9fd5efd (patch)
treec51891c4a7630ec1bd3d99221331cdc1294d74e6
parent36f4a68fe9d802a7b9b8cbedc2c812c16327049a (diff)
downloadaports-199e7f9d77c0442b557a793ed9908532a9fd5efd.tar.bz2
aports-199e7f9d77c0442b557a793ed9908532a9fd5efd.tar.xz
main/py3-incremental: drop py2
Closes !269
-rw-r--r--main/py3-incremental/APKBUILD32
1 files changed, 7 insertions, 25 deletions
diff --git a/main/py3-incremental/APKBUILD b/main/py3-incremental/APKBUILD
index 4eb887adbd..f09a232f3d 100644
--- a/main/py3-incremental/APKBUILD
+++ b/main/py3-incremental/APKBUILD
@@ -1,45 +1,27 @@
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
-pkgname=py-incremental
+pkgname=py3-incremental
_pkgname=incremental
pkgver=17.5.0
-pkgrel=1
-pkgdesc="Library that versions your Python projects"
+pkgrel=2
+pkgdesc="Library that versions your Python3 projects"
url="https://github.com/twisted/incremental"
arch="noarch"
license="MIT"
-depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-incremental" # Backwards compatibility
+provides="py-incremental=$pkgver-r$pkgrel" # Backwards compatibility
build() {
cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- _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="91443205f7c92ec8f6502f38379c5ac2fe441435ff9490af01e5420d6bb05bb1c666dd612fc45204199a34afd533fd3de1390ca482bb554dfec7d3a22958a4bc incremental-17.5.0.tar.gz"