diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 02:56:16 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 02:56:51 -0300 |
commit | 2dbdd960ada78ac6c074adf306d082b4130f7f33 (patch) | |
tree | 109b69f95c7da413cb9b8c9f49f756a135d4cdb6 /testing/py3-cookies | |
parent | fe3b3a51531fd9f9fec462251d2e0a5dfb300abe (diff) | |
download | aports-2dbdd960ada78ac6c074adf306d082b4130f7f33.tar.bz2 aports-2dbdd960ada78ac6c074adf306d082b4130f7f33.tar.xz |
testing/py3-cookies: drop py2
Diffstat (limited to 'testing/py3-cookies')
-rw-r--r-- | testing/py3-cookies/APKBUILD | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/testing/py3-cookies/APKBUILD b/testing/py3-cookies/APKBUILD index e95554071c..b750b55485 100644 --- a/testing/py3-cookies/APKBUILD +++ b/testing/py3-cookies/APKBUILD @@ -1,46 +1,28 @@ -# Maintainer: -pkgname=py-cookies +# Maintainer: +pkgname=py3-cookies pkgver=2.2.1 pkgrel=1 pkgdesc="generate and validate cookies check digits" +options="!check" # test_encoding_assumptions fails url="https://pypi.python.org/pypi/cookies/" arch="noarch" -license="BSD" -depends="py-amqp" -makedepends="python2-dev python3-dev py-setuptools" -install="" -subpackages="py2-cookies:py2 py3-cookies:py3" +license="BSD-3-Clause" +depends="py3-amqp" +makedepends="py3-setuptools" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/c/cookies/cookies-$pkgver.tar.gz" builddir="$srcdir/cookies-$pkgver" build() { - cd "$_builddir" - python2 setup.py build python3 setup.py build } -package() { - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc ${python#python}" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" +check() { + pytest-3 } -py2() { - cd "$builddir" - _py python2 -} - -py3() { - cd "$builddir" - _py python3 +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="76f362a9a1d74b87c90c5b91ad806d872612d31f487e4067a627409316f6099602c9e5a429f85ce20adcb0a7b63dd131b9e1ecc5c0c6444d1569367432a719de cookies-2.2.1.tar.gz" |