diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-17 21:00:43 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-04 06:04:24 +0000 |
commit | 32c78abf1de20b0442b55d5893d32ac5383bea11 (patch) | |
tree | b31103cc5198f9737c6d229275c481ad673e9982 /testing/py3-simplegeneric | |
parent | a921727ddc01462f09607ac7f9a91097ebae069a (diff) | |
download | aports-32c78abf1de20b0442b55d5893d32ac5383bea11.tar.bz2 aports-32c78abf1de20b0442b55d5893d32ac5383bea11.tar.xz |
testing/py-simplegeneric: remove python2 support
Diffstat (limited to 'testing/py3-simplegeneric')
-rw-r--r-- | testing/py3-simplegeneric/APKBUILD | 33 | ||||
-rw-r--r-- | testing/py3-simplegeneric/remove-setup-warning.patch | 12 |
2 files changed, 45 insertions, 0 deletions
diff --git a/testing/py3-simplegeneric/APKBUILD b/testing/py3-simplegeneric/APKBUILD new file mode 100644 index 0000000000..8fc915665e --- /dev/null +++ b/testing/py3-simplegeneric/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Kevin Daudt <kdaudt@alpinelinux.org> +# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> +pkgname=py3-simplegeneric +pkgver=0.8.1 +pkgrel=0 +pkgdesc="Simple generic functions" +url="https://pypi.org/project/simplegeneric/" +arch="noarch" +license="ZPL-2.1" +makedepends="python2-dev python3-dev" +source="https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-$pkgver.zip + remove-setup-warning.patch" +builddir="$srcdir/${pkgname#py3-}-$pkgver" +replaces="py-simplegeneric" +provides="py-simplegeneric" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 simplegeneric.py +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="74c25d4e04fe197058cb43fabe3702cc5901989dc0b0bcf7511369f4f3d90fd98e4225174db0680c8f39389914f82824bdbdaf4c302b53998fbabbf0dba393e4 simplegeneric-0.8.1.zip +8558e711659fc2bc76cf8a770a0950778fa7d0b11165fdca0ac444575de3efdd3ae5bdc37351ce532b6d9245eee9e06fe8c614e23f3db709e5a53debe424e4fd remove-setup-warning.patch" diff --git a/testing/py3-simplegeneric/remove-setup-warning.patch b/testing/py3-simplegeneric/remove-setup-warning.patch new file mode 100644 index 0000000000..cbb4c7a692 --- /dev/null +++ b/testing/py3-simplegeneric/remove-setup-warning.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py.new +index 0fd974742f..4a42241d37 100644 +--- a/setup.py ++++ b/setup.py.new +@@ -33,7 +33,6 @@ setup( + author="Phillip J. Eby", + author_email="peak@eby-sarna.com", + license="ZPL 2.1", +- test_suite = 'simplegeneric.test_suite', + py_modules = ['simplegeneric'], + classifiers = [ + line.strip() for line in open('classifiers.txt') if line.strip() |