diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-07 01:33:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-07 01:33:16 +0100 |
commit | c8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (patch) | |
tree | 3ee550255947da075650f1a551dcc278f9a1b7f8 /dev-python/hypothesis | |
parent | a978c074e4272bb901fbe4a10de0a7b2af574f17 (diff) |
gentoo resync : 07.05.2021
Diffstat (limited to 'dev-python/hypothesis')
-rw-r--r-- | dev-python/hypothesis/Manifest | 5 | ||||
-rw-r--r-- | dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch | 75 | ||||
-rw-r--r-- | dev-python/hypothesis/hypothesis-6.10.1.ebuild | 11 | ||||
-rw-r--r-- | dev-python/hypothesis/hypothesis-6.12.0.ebuild | 61 |
4 files changed, 147 insertions, 5 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index c0aed69c32c8..0298afc3841b 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -1,5 +1,7 @@ +AUX hypothesis-6.10.1-py310.patch 2493 BLAKE2B ffc3e9669407a20a2820a59980719d0a176348798a6aa9368f5249cae65cb7c8053f79fdf53d833709793b049bc2c3e4130ab3c9f166d48e5909da1ff07b86ac SHA512 c5762698d1a463ca942d024619453e5e89aeaf5b884eee099489ea91de71d82cf6797e661767cc77a6c84338dd4b989eb255b988ecc6938aa77418667ffaf048 DIST hypothesis-python-6.10.0.tar.gz 9126095 BLAKE2B 7dbcbb1d1099490c5329fb9a134b87449a8224565c4ccc88692c6cdedc847b0c3143b438f1d7bed98932ddfdf53fb5d09980ec0cc7d5e23fe60e651aef10ddbe SHA512 a9ced1baccaa411c264aa02de3ebc2d76985b3f61a378f9ec413b510b7b16c40cc3072d0d042a03046593b303ee367f3dd34f8b09987a1b0fb97de77f6fe3e8d DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5edefdbaae8bf9daed296eea9111ac46c002c34f43119f10b2ab1f45c5cbca5fe46d00738676290eb0e8437f2c10b5926d9e0915 SHA512 586b7f380cb850089f7d5321f11da92ef4a9b80e2ea925103e29c1f6c6c9da0a2a899a1a45ce77e0a40073f147561bc4fcbd5cb2ce77a9c0c65f6f64dfe4b716 +DIST hypothesis-python-6.12.0.tar.gz 9127949 BLAKE2B fae9be5f82362f46554e9912f34e7da06b2e8f8612428af7a8a77bda06e926b8c541e79c40a8aaab4a1d4d299cd947f2ffc92f44c8d569c185891e5b6aaac61e SHA512 7eafa80a546d17cb5239caf3aa18df1a23caea3021fe9a8d1e180c85443920df44ab93a31c13192ea9856db6a1ee8d5af82f44dcbaefb6dba6c37ab63081e050 DIST hypothesis-python-6.6.0.tar.gz 9117847 BLAKE2B bb88ebee9db53f1c5753730d04e5dfe6a39ac4c5f7d534778b22b813ba188a55de6ad8a34f611f7863d1c3287be39ed7e10981e9d6ed8d8dd106688f154c3a49 SHA512 a446b4a11c6ee013225bfcd58e26efc6c9d867545d9bcf90a19468cb01fc5e2c5a7280ff9a80d4a1adbfe06dd155df6152941d5f53869d85e1d259e68a33a5e2 DIST hypothesis-python-6.8.1.tar.gz 9119495 BLAKE2B 4d98e30a04f652af79dd49e921b856124a312b63f087a6fd200282e9b0a0cd6fcad1a42a6008406bc347f21bf9cd6c5ff2db79d013987281f59365bd9d91550d SHA512 2f25e994438479b5faa15b2038146ab385445bf2722b0951ff55f324b074248d7322c4c6f3e9c659c18d0aa94150eea4c6567a7ac24debf2de4b32bab37a4dcc DIST hypothesis-python-6.8.9.tar.gz 9122168 BLAKE2B 2568dcfcbc7182071247d0b7d978abf2184be4583937a42568c3e199eac6ce538adb7b3687747979fc6ab9da1e61088db7d1a01294982e75cb04992cdc10537a SHA512 4dc3884e2487f27a3b6b362e04cecd281f9072fdd2e8e91738899baf589d6d48df9eeacb9a158251c20b210d1190b78eadd191aa95f151023bd81091131dff66 @@ -7,7 +9,8 @@ DIST hypothesis-python-6.9.0.tar.gz 9123041 BLAKE2B 5c9a4d1bed02417dd35e67f7f8e6 DIST hypothesis-python-6.9.1.tar.gz 9123088 BLAKE2B 6a960622fc14d507d5ac66737b88e7b7184c827f31c505797be33766ac8d1721191e48334b58d1d73ef1058eaf94d88ef9d7ddf256948180a12c707b6963d1de SHA512 ad5f18ecbb0376b04eb26f58ad2b72ae6789029bf89f36d4880e5212a4cf7d669a048bb8d4f0bdeb0f5c1f1cc053d054d60235224f5154803fd0319d7b140b3b DIST hypothesis-python-6.9.2.tar.gz 9124848 BLAKE2B f1d13f37ee2c9fa4d2716e6c4df412cf652704c1fecda575be2959cde10c9e8b9e54b4a772bda4f1c476936817e6d47d8c17880fa13714daaa9e7b7fd0eca56d SHA512 c209e921e89b5b5863e7b103462cf34a0fd5d06c373c4d880b2aafd8b9521fcd95f58cd00f55eff81804352721b1114f208ce0e19f9142783834e93867ba336b EBUILD hypothesis-6.10.0.ebuild 1751 BLAKE2B f84f1719fece3b44d09ba88e12404b0c74d045ce4752dd2360f5479cf0cf88fbb764a19f3b43fda536629a45da0981d1d50c45c1f8446696c7c62a9c30b23cee SHA512 c1d8d55ed2ec689845a4901efe22835ba98da8e358f0d96a4c2d64893e27467d9ed179d41807cd937dd14931bac1a5695416d78a38b6a87e7cf83fb1c86a757e -EBUILD hypothesis-6.10.1.ebuild 1751 BLAKE2B f84f1719fece3b44d09ba88e12404b0c74d045ce4752dd2360f5479cf0cf88fbb764a19f3b43fda536629a45da0981d1d50c45c1f8446696c7c62a9c30b23cee SHA512 c1d8d55ed2ec689845a4901efe22835ba98da8e358f0d96a4c2d64893e27467d9ed179d41807cd937dd14931bac1a5695416d78a38b6a87e7cf83fb1c86a757e +EBUILD hypothesis-6.10.1.ebuild 1775 BLAKE2B c4c0ecfd0f56207f664d5e2ee58671672d9222d9644b5dceba87229daa8efd5136e861a5ae03c8746ae0e4ad4ed4dee210fe62b4ea0cb6be08376639874e34c7 SHA512 198e882f9b9d4f47a7cbb9178e322b69dbd7da0dc39ef08c89501efad5ef178d25c6840106e1cb26642d649ffe43935732c3a3ad77cd1ecb768f12a95e610146 +EBUILD hypothesis-6.12.0.ebuild 1730 BLAKE2B 84d537ed7efae1e6abd955073fb36da430dff3197223b86039299e87122c2214b9c5e2879d085785c6e22b2e2ba389c62e3982bdab1cc9fa6426215757e2b746 SHA512 7cf50f09c62bff9d35a4d7455590c86471c535d0d5e00f73ce6e33a43cb17d31d365118a064d2a3c60c49d6c20b0e56ebf63a33146a73de7035e250b200588c4 EBUILD hypothesis-6.6.0.ebuild 1795 BLAKE2B 55f094af24a70891b7029c691b48515905f2c57b75e3802e0db49ce61e896abf33d824efe20ff2361c3be546c44474010925eeef4ae2a0db54aafc57758d082f SHA512 b7084976bf688e4b25eef954ead0bd80908baf4e54d84e7a6ff23abab22f6408191f8225b9e79a5ea52144a946f7a34f8be7a0919bb400a5daa17d2e058d959a EBUILD hypothesis-6.8.1.ebuild 1751 BLAKE2B f84f1719fece3b44d09ba88e12404b0c74d045ce4752dd2360f5479cf0cf88fbb764a19f3b43fda536629a45da0981d1d50c45c1f8446696c7c62a9c30b23cee SHA512 c1d8d55ed2ec689845a4901efe22835ba98da8e358f0d96a4c2d64893e27467d9ed179d41807cd937dd14931bac1a5695416d78a38b6a87e7cf83fb1c86a757e EBUILD hypothesis-6.8.9.ebuild 1751 BLAKE2B f84f1719fece3b44d09ba88e12404b0c74d045ce4752dd2360f5479cf0cf88fbb764a19f3b43fda536629a45da0981d1d50c45c1f8446696c7c62a9c30b23cee SHA512 c1d8d55ed2ec689845a4901efe22835ba98da8e358f0d96a4c2d64893e27467d9ed179d41807cd937dd14931bac1a5695416d78a38b6a87e7cf83fb1c86a757e diff --git a/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch b/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch new file mode 100644 index 000000000000..f81186a46e6e --- /dev/null +++ b/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch @@ -0,0 +1,75 @@ +From 27ee073728e70e930118a36ffa4f8123ce363099 Mon Sep 17 00:00:00 2001 +From: Zac-HD <zac.hatfield.dodds@gmail.com> +Date: Wed, 5 May 2021 13:01:21 +1000 +Subject: [PATCH] Test on 3.10-dev again + +now that pytest has been fixed +--- + tests/cover/test_annotations.py | 4 +--- + tests/cover/test_lookup.py | 7 +------ + tests/cover/test_lookup_py38.py | 2 -- + 4 files changed, 3 insertions(+), 12 deletions(-) + +diff --git a/tests/cover/test_annotations.py b/tests/cover/test_annotations.py +index 564339d39..95ebea3c5 100644 +--- a/tests/cover/test_annotations.py ++++ b/tests/cover/test_annotations.py +@@ -13,7 +13,6 @@ + # + # END HEADER + +-import sys + from inspect import getfullargspec + + import attr +@@ -116,8 +115,7 @@ def test_composite_edits_annotations(): + @pytest.mark.parametrize("nargs", [1, 2, 3]) + def test_given_edits_annotations(nargs): + spec_given = getfullargspec(given(*(nargs * [st.none()]))(pointless_composite)) +- expected = None if sys.version_info[:2] < (3, 10) else type(None) +- assert spec_given.annotations.pop("return") == expected ++ assert spec_given.annotations.pop("return") is None + assert len(spec_given.annotations) == 3 - nargs + + +diff --git a/tests/cover/test_lookup.py b/tests/cover/test_lookup.py +index b74eccc62..33cb78050 100644 +--- a/tests/cover/test_lookup.py ++++ b/tests/cover/test_lookup.py +@@ -756,12 +756,7 @@ def test_compat_get_type_hints_aware_of_None_default(): + find_any(strategy, lambda x: x.a is not None) + + assert typing.get_type_hints(constructor)["a"] == typing.Optional[str] +- annotation = inspect.signature(constructor).parameters["a"].annotation +- assert annotation == str or ( +- # See https://bugs.python.org/issue43006 +- annotation == typing.Optional[str] +- and sys.version_info[:2] >= (3, 10) +- ) ++ assert inspect.signature(constructor).parameters["a"].annotation == str + + + _ValueType = typing.TypeVar("_ValueType") +diff --git a/tests/cover/test_lookup_py38.py b/tests/cover/test_lookup_py38.py +index 6a68254a7..db11777fe 100644 +--- a/tests/cover/test_lookup_py38.py ++++ b/tests/cover/test_lookup_py38.py +@@ -14,7 +14,6 @@ + # END HEADER + + import dataclasses +-import sys + import typing + + import pytest +@@ -103,7 +102,6 @@ class NestedDict(typing.TypedDict): + inner: A + + +-@pytest.mark.skipif(sys.version_info[:2] >= (3, 10), reason="see issue #2897") + @given(from_type(NestedDict)) + def test_typeddict_with_nested_value(value): + assert type(value) == dict +-- +2.31.1 + diff --git a/dev-python/hypothesis/hypothesis-6.10.1.ebuild b/dev-python/hypothesis/hypothesis-6.10.1.ebuild index d27660625403..7afc12a80287 100644 --- a/dev-python/hypothesis/hypothesis-6.10.1.ebuild +++ b/dev-python/hypothesis/hypothesis-6.10.1.ebuild @@ -3,8 +3,7 @@ EAPI=7 -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{7..10} pypy3 ) PYTHON_REQ_USE="threads(+),sqlite" inherit distutils-r1 multiprocessing optfeature @@ -26,7 +25,7 @@ RDEPEND=" $(python_gen_cond_dep ' dev-python/black[${PYTHON_USEDEP}] dev-python/click[${PYTHON_USEDEP}] - ' 'python*') + ' python3_{7..9}) ) " BDEPEND=" @@ -40,8 +39,12 @@ BDEPEND=" distutils_enable_tests --install pytest +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) + python_prepare() { - if ! use cli || [[ ${EPYTHON} != python* ]]; then + if ! use cli || ! has "${EPYTHON}" python3_{7..9}; then sed -i -e '/console_scripts/d' setup.py || die fi } diff --git a/dev-python/hypothesis/hypothesis-6.12.0.ebuild b/dev-python/hypothesis/hypothesis-6.12.0.ebuild new file mode 100644 index 000000000000..e8455f78614c --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.12.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="A library for property based testing" +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' python3_{7..9}) + ) +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/typing-3.7.4.1 + ) +" + +distutils_enable_tests --install pytest + +python_prepare() { + if ! use cli || ! has "${EPYTHON}" python3_{7..9}; then + sed -i -e '/console_scripts/d' setup.py || die + fi +} + +python_test() { + distutils_install_for_testing + epytest tests/cover tests/pytest tests/quality \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} |