aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pygfm
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-05 07:10:17 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-05 08:14:07 -0300
commit9f30b3a515c4b240a09f6fb402c3902b1672590c (patch)
treed3f21c424194401d7a71e8d47c8f532cc817bc29 /testing/py3-pygfm
parent11168cd44e05d99d98520703f2d00b899680af19 (diff)
downloadaports-9f30b3a515c4b240a09f6fb402c3902b1672590c.tar.bz2
aports-9f30b3a515c4b240a09f6fb402c3902b1672590c.tar.xz
testing/py3-pygfm: drop py2
Diffstat (limited to 'testing/py3-pygfm')
-rw-r--r--testing/py3-pygfm/APKBUILD44
1 files changed, 12 insertions, 32 deletions
diff --git a/testing/py3-pygfm/APKBUILD b/testing/py3-pygfm/APKBUILD
index 6a408ebd95..113cd71837 100644
--- a/testing/py3-pygfm/APKBUILD
+++ b/testing/py3-pygfm/APKBUILD
@@ -1,54 +1,34 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
-pkgname=py-pygfm
+pkgname=py3-pygfm
_pkgname=py-gfm
pkgver=0.1.4
-pkgrel=0
+pkgrel=1
pkgdesc="Github-Flavored Markdown for Python-Markdown"
+options="!check"
url="https://github.com/zopieux/py-gfm"
arch="noarch !armv7"
license="BSD-3-Clause"
-makedepends="python2-dev python3-dev py-setuptools"
-checkdepends="py-codecov py-coverage py-coveralls py-markdown"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3 py3-markdown"
+makedepends="py3-setuptools"
+checkdepends="py3-codecov py3-coverage py3-coveralls"
source="$pkgname-$pkgver.tar.gz::https://github.com/Zopieux/py-gfm/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-pygfm" # Backwards compatibility
+provides="py-pygfm=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py --quiet build
- python3 setup.py --quiet build
+ python3 setup.py build
}
check() {
- cd "$builddir"
- python2 test.py
python3 test.py
}
package() {
- mkdir -p "$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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="4730035b8a6168b6d2987a4a5f9a0ca70564e6797b7c88ec43f04152fa77c5a396f204b6143fc0bb3a53ab364b6d11b2274663b8b64d4640afba2a21cd1e3c6a py-pygfm-0.1.4.tar.gz"
+sha512sums="4730035b8a6168b6d2987a4a5f9a0ca70564e6797b7c88ec43f04152fa77c5a396f204b6143fc0bb3a53ab364b6d11b2274663b8b64d4640afba2a21cd1e3c6a py3-pygfm-0.1.4.tar.gz"