diff options
author | prspkt <prspkt@protonmail.com> | 2019-08-13 00:16:30 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-08-13 00:21:18 +0300 |
commit | eeade7b8db5ec30bde001227a2e8a57ab1805095 (patch) | |
tree | a28fd84cb09ee3b7256a0fab97298e5d36be96bd | |
parent | 8a10ce9d9b7fd20d86215a1c60dde7a2ad0e06fe (diff) | |
download | aports-eeade7b8db5ec30bde001227a2e8a57ab1805095.tar.bz2 aports-eeade7b8db5ec30bde001227a2e8a57ab1805095.tar.xz |
community/py-parsedatetime: drop python2
* Add py3-pytest checkdepends.
Signed-off-by: prspkt <prspkt@protonmail.com>
-rw-r--r-- | community/py-parsedatetime/APKBUILD | 55 | ||||
-rw-r--r-- | community/py3-parsedatetime/APKBUILD | 32 |
2 files changed, 32 insertions, 55 deletions
diff --git a/community/py-parsedatetime/APKBUILD b/community/py-parsedatetime/APKBUILD deleted file mode 100644 index f97d65ef82..0000000000 --- a/community/py-parsedatetime/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> -pkgname=py-parsedatetime -_pkgname=parsedatetime -pkgver=2.4 -pkgrel=4 -pkgdesc="Parse human-readable date/time strings" -url="https://github.com/bear/parsedatetime" -arch="noarch" -license="Apache" -depends="py-future" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="$_pkgname-$pkgver.tar.gz::https://github.com/bear/$_pkgname/archive/v$pkgver.tar.gz" - -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - -package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - 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="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046 parsedatetime-2.4.tar.gz" diff --git a/community/py3-parsedatetime/APKBUILD b/community/py3-parsedatetime/APKBUILD new file mode 100644 index 0000000000..b34aea6243 --- /dev/null +++ b/community/py3-parsedatetime/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> +pkgname=py3-parsedatetime +_pkgname=parsedatetime +pkgver=2.4 +pkgrel=5 +pkgdesc="Parse human-readable date/time strings" +url="https://github.com/bear/parsedatetime" +arch="noarch" +license="Apache" +depends="py3-future" +makedepends="py3-setuptools" +checkdepends="py3-pytest" +source="$_pkgname-$pkgver.tar.gz::https://github.com/bear/parsedatetime/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +replaces=py-parsedatetime # Backwards compatibility +provides=py-parsedatetime=$pkgver-r$pkgrel # Backwards compatibility + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046 parsedatetime-2.4.tar.gz" |