diff options
| author | prspkt <prspkt@protonmail.com> | 2019-08-02 15:46:56 +0300 |
|---|---|---|
| committer | prspkt <prspkt@protonmail.com> | 2019-08-02 16:02:37 +0300 |
| commit | 26567b9a9c19d083aa221860612af3554bd23e53 (patch) | |
| tree | 88f8d70affb4af2a71cfd5e15941efd191da7a33 | |
| parent | d7563c646d8a04969320d1cdf85adcec022a9345 (diff) | |
| download | aports-26567b9a9c19d083aa221860612af3554bd23e53.tar.bz2 aports-26567b9a9c19d083aa221860612af3554bd23e53.tar.xz | |
testing/py-humanize: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
| -rw-r--r-- | testing/py-humanize/APKBUILD | 47 | ||||
| -rw-r--r-- | testing/py3-humanize/APKBUILD | 27 |
2 files changed, 27 insertions, 47 deletions
diff --git a/testing/py-humanize/APKBUILD b/testing/py-humanize/APKBUILD deleted file mode 100644 index 3fcd824c1e..0000000000 --- a/testing/py-humanize/APKBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor: Thomas Boerger <thomas@webhippie.de> -# Maintainer: Thomas Boerger <thomas@webhippie.de> -pkgname=py-humanize -_pkgname=humanize -pkgver=0.5.1 -pkgrel=3 -pkgdesc="Python humanize functions" -url="https://pypi.python.org/pypi/humanize" -arch="noarch" -license="MIT" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver - -build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 -} - -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" -} - -md5sums="e8473d9dc1b220911cac2edd53b1d973 humanize-0.5.1.tar.gz" -sha256sums="a43f57115831ac7c70de098e6ac46ac13be00d69abbf60bdcac251344785bb19 humanize-0.5.1.tar.gz" -sha512sums="2727268d9fc7b393228f7eb9e71a5c881988ec56e265ddf83613fe57116da3aaad70d2417db4cef8a8c40cb73753eb2c2bd775d3cd25c2de751cb61373f0a551 humanize-0.5.1.tar.gz" diff --git a/testing/py3-humanize/APKBUILD b/testing/py3-humanize/APKBUILD new file mode 100644 index 0000000000..5db22fa0c2 --- /dev/null +++ b/testing/py3-humanize/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Thomas Boerger <thomas@webhippie.de> +# Maintainer: Thomas Boerger <thomas@webhippie.de> +pkgname=py3-humanize +_pkgname=humanize +pkgver=0.5.1 +pkgrel=3 +pkgdesc="Python humanize functions" +url="https://pypi.python.org/pypi/humanize" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces=py-humanize # Backwards compatibility +provides=py-humanize=$pkgver-r$pkgrel # Backwards compatibility + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="2727268d9fc7b393228f7eb9e71a5c881988ec56e265ddf83613fe57116da3aaad70d2417db4cef8a8c40cb73753eb2c2bd775d3cd25c2de751cb61373f0a551 humanize-0.5.1.tar.gz" |
