diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-04 14:17:56 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-05 03:01:03 -0300 |
commit | 1d376f8d0851e2d0b7c9b6fd9850c81828c338d5 (patch) | |
tree | 3aaf9f08c44b965c158d5a78383b7cc381b5b5ea /community/py3-hypothesis | |
parent | 2bd7559e348fb199477ea479249fb804acbd28a9 (diff) | |
download | aports-1d376f8d0851e2d0b7c9b6fd9850c81828c338d5.tar.bz2 aports-1d376f8d0851e2d0b7c9b6fd9850c81828c338d5.tar.xz |
community/py3-hypothesis: upgrade to 4.35.0
Diffstat (limited to 'community/py3-hypothesis')
-rw-r--r-- | community/py3-hypothesis/APKBUILD | 60 |
1 files changed, 14 insertions, 46 deletions
diff --git a/community/py3-hypothesis/APKBUILD b/community/py3-hypothesis/APKBUILD index 050ea07869..48137f01b1 100644 --- a/community/py3-hypothesis/APKBUILD +++ b/community/py3-hypothesis/APKBUILD @@ -1,29 +1,23 @@ # Contributor: Drew DeVault <sir@cmpwn.com> # Maintainer: Leo <thinkabit.ukim@gmail.com> -pkgname=py-hypothesis -pkgver=4.34.0 +pkgname=py3-hypothesis +pkgver=4.35.0 pkgrel=0 pkgdesc="Advanced property-based (QuickCheck-like) testing for Python" url="https://hypothesis.works/" arch="noarch" license="MPL-2.0" -_py2_deps="py2-attrs py-enum34" -_py3_deps="py3-attrs" -makedepends="$_py2_deps $_py3_deps py2-setuptools py3-setuptools" -checkdepends="py2-coverage py2-pytest py2-tz py2-dateutil py2-mock - py3-pytest py3-coverage py3-tz py3-numpy py3-dateutil" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-attrs" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-coverage py3-tz py3-numpy py3-dateutil" source="py-hypothesis-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/hypothesis-python-$pkgver.tar.gz" builddir="$srcdir/hypothesis-hypothesis-python-$pkgver/hypothesis-python" -prepare() { - cp -r "$builddir" "$builddir"-py2 -} +replaces="py-hypothesis" # Backwards compatibility +provides="py-hypothesis=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build - cd "$builddir"-py2 - python2 setup.py build } check() { @@ -33,42 +27,16 @@ check() { # Add variables that will be used by python to find the local # hypothesis build - PY3PATH="$PWD/build/lib" - - PYTHONPATH="$PY3PATH" python3 -m pytest tests/cover - PYTHONPATH="$PY3PATH" python3 -m pytest tests/py3 - PYTHONPATH="$PY3PATH" python3 -m pytest tests/datetime - PYTHONPATH="$PY3PATH" python3 -m pytest tests/numpy + PYPATH="$PWD/build/lib" - cd "$builddir"-py2 - PY2PATH="$PWD/build/lib" - PYTHONPATH="$PY2PATH" python2 -m pytest tests/cover - PYTHONPATH="$PY2PATH" python2 -m pytest tests/py2 - PYTHONPATH="$PY2PATH" python2 -m pytest tests/datetime + PYTHONPATH="$PYPATH" python3 -m pytest tests/cover + PYTHONPATH="$PYPATH" python3 -m pytest tests/py3 + PYTHONPATH="$PYPATH" python3 -m pytest tests/datetime + PYTHONPATH="$PYPATH" python3 -m pytest tests/numpy } package() { - mkdir -p "$pkgdir" -} - -_py2() { - depends="$_py2_deps" - cd "$builddir"-py2 - _py python2 -} - -_py3() { - depends="$_py3_deps" - cd "$builddir" - _py python3 -} - -_py() { - _python="$1" - pkgdesc="$pkgdesc (for $_python)" - depends="$depends $_python" - install_if="$pkgname=$pkgver-r$pkgrel $_python" - $_python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="c1bc3307048e7b9e818e6c709544ec5be2fb0f8109a5a49af7a320ea77c8da0d69cad6e0fd546723c866d674960f009f901b2d0299ac55930ac2ff8db378929d py-hypothesis-4.34.0.tar.gz" +sha512sums="0170f8f8afdf0b0029e10ae3669d6be3d0c362ed7c393a2b0e1d44304c4ddd000635e409ed0ccf59af807d18a9669dd01f65a69a3a5757940e7864c7adbdb3eb py-hypothesis-4.35.0.tar.gz" |