Marcel Telka
2024-04-04 1cf713564899c373cce073dbce8980b0bbfa95ef
python/hypothesis: update to 6.100.0

1 files added
7 files modified
61 ■■■■ changed files
components/python/hypothesis/Makefile 6 ●●●●● patch | view | raw | blame | history
components/python/hypothesis/patches/01-enable-tests.patch 4 ●●●● patch | view | raw | blame | history
components/python/hypothesis/patches/02-pytest-plugins.patch 6 ●●●●● patch | view | raw | blame | history
components/python/hypothesis/patches/05-pytest-reporter.patch 8 ●●●● patch | view | raw | blame | history
components/python/hypothesis/patches/07-pytest-checkdocs.patch 10 ●●●● patch | view | raw | blame | history
components/python/hypothesis/patches/08-pytest-salt-factories.patch 23 ●●●●● patch | view | raw | blame | history
components/python/hypothesis/python-integrate-project.conf 3 ●●●●● patch | view | raw | blame | history
components/python/hypothesis/test/results-all.master 1 ●●●● patch | view | raw | blame | history
components/python/hypothesis/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        hypothesis
HUMAN_VERSION =            6.99.12
HUMAN_VERSION =            6.100.0
COMPONENT_SUMMARY =        hypothesis - A library for property-based testing
COMPONENT_PROJECT_URL =        https://hypothesis.works
COMPONENT_ARCHIVE_URL =        \
    https://github.com/HypothesisWorks/hypothesis/archive/refs/tags/$(COMPONENT_ARCHIVE)
COMPONENT_ARCHIVE_HASH =    \
    sha256:ecde51aa8d35bc840b3b49d7d96acf08232e3a3b6aae941e7a311ced077a0b64
    sha256:9c929689b6af877785400ff128b979a8e0fbd9a67317d702988706140f13f253
COMPONENT_LICENSE =        MPL-2.0
COMPONENT_LICENSE_FILE =    LICENSE.txt
@@ -38,6 +38,8 @@
# Random temporary directory name
COMPONENT_TEST_TRANSFORMS += "-e 's|\(/tmp\).\{8\}/|\1XXXXXXXX/|g'"
# Contains the date of the test run
COMPONENT_TEST_TRANSFORMS += "-e '/to add failing examples to your code/d'"
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += library/python/attrs
components/python/hypothesis/patches/01-enable-tests.patch
@@ -1,5 +1,5 @@
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tox.ini.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tox.ini
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tox.ini.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tox.ini
@@ -4,7 +4,7 @@
 
 [testenv]
components/python/hypothesis/patches/02-pytest-plugins.patch
@@ -1,5 +1,7 @@
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py
https://github.com/pytest-dev/pytest/issues/12186
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py
@@ -52,7 +52,11 @@
     # multi-line report strings which we expect to see in explain-mode output.
     # The list length is the number of explainable bugs, usually one.
components/python/hypothesis/patches/05-pytest-reporter.patch
@@ -1,7 +1,7 @@
https://github.com/christiansandberg/pytest-reporter/issues/8
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_baseexception.py.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_baseexception.py
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py
@@ -125,6 +125,6 @@
         exception=exc_name, strategy="things()" if use_composite else "st.none()"
     )
@@ -10,8 +10,8 @@
+    pytest_stdout = str(testdir.runpytest_inprocess(test_file, "--tb=native", "-p", "no:reporter").stdout)
     assert "x=101" in pytest_stdout
     assert exc_name in pytest_stdout
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py
@@ -54,7 +54,7 @@
     test_file = str(testdir.makepyfile(file_contents))
     pytest_stdout = str(
components/python/hypothesis/patches/07-pytest-checkdocs.patch
@@ -1,7 +1,7 @@
Workaround for https://github.com/PyO3/setuptools-rust/issues/358
https://github.com/pytest-dev/pytest/issues/12186
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_baseexception.py.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_baseexception.py
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py
@@ -125,6 +125,6 @@
         exception=exc_name, strategy="things()" if use_composite else "st.none()"
     )
@@ -10,8 +10,8 @@
+    pytest_stdout = str(testdir.runpytest_inprocess(test_file, "--tb=native", "-p", "no:checkdocs", "-p", "no:reporter").stdout)
     assert "x=101" in pytest_stdout
     assert exc_name in pytest_stdout
--- hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.99.12/hypothesis-python/tests/nocover/test_scrutineer.py
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_scrutineer.py
@@ -54,7 +54,7 @@
     test_file = str(testdir.makepyfile(file_contents))
     pytest_stdout = str(
components/python/hypothesis/patches/08-pytest-salt-factories.patch
New file
@@ -0,0 +1,23 @@
https://github.com/pytest-dev/pytest/issues/12186
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_baseexception.py
@@ -125,6 +125,6 @@
         exception=exc_name, strategy="things()" if use_composite else "st.none()"
     )
     test_file = str(testdir.makepyfile(code))
-    pytest_stdout = str(testdir.runpytest_inprocess(test_file, "--tb=native", "-p", "no:checkdocs", "-p", "no:reporter").stdout)
+    pytest_stdout = str(testdir.runpytest_inprocess(test_file, "--tb=native", "-p", "no:checkdocs", "-p", "no:reporter", "-p", "no:system-statistics", "-p", "no:salt-factories", "-p", "no:salt-factories-event-listener", "-p", "no:salt-factories-factories", "-p", "no:salt-factories-loader-mock", "-p", "no:salt-factories-log-server", "-p", "no:salt-factories-markers").stdout)
     assert "x=101" in pytest_stdout
     assert exc_name in pytest_stdout
--- hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_targeting.py.orig
+++ hypothesis-hypothesis-python-6.100.0/hypothesis-python/tests/nocover/test_targeting.py
@@ -29,7 +29,7 @@
 @pytest.mark.parametrize("multiple", [False, True])
 def test_reports_target_results(testdir, multiple):
     script = testdir.makepyfile(TESTSUITE.format("" if multiple else "# "))
-    result = testdir.runpytest(script, "--tb=native", "-rN")
+    result = testdir.runpytest(script, "--tb=native", "-rN", "-p", "no:system-statistics", "-p", "no:salt-factories", "-p", "no:salt-factories-event-listener", "-p", "no:salt-factories-factories", "-p", "no:salt-factories-loader-mock", "-p", "no:salt-factories-log-server", "-p", "no:salt-factories-markers")
     out = "\n".join(result.stdout.lines)
     assert "Falsifying example" in out
     assert "x=101" in out
components/python/hypothesis/python-integrate-project.conf
@@ -17,6 +17,7 @@
%patch% 02-pytest-plugins.patch
%patch% 05-pytest-reporter.patch
%patch% 07-pytest-checkdocs.patch
%patch% 08-pytest-salt-factories.patch
%hook-begin%
# https://github.com/HypothesisWorks/hypothesis/issues/3588
@@ -30,3 +31,5 @@
%include-3%
# Random temporary directory name
COMPONENT_TEST_TRANSFORMS += "-e 's|\(/tmp\).\{8\}/|\1XXXXXXXX/|g'"
# Contains the date of the test run
COMPONENT_TEST_TRANSFORMS += "-e '/to add failing examples to your code/d'"
components/python/hypothesis/test/results-all.master
@@ -708,7 +708,6 @@
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================== Hypothesis ==================================
`git apply .hypothesis/patches/2024-03-24--03d15484.patch` to add failing examples to your code.
============================= slowest 20 durations =============================
======== 688 passed, 4 skipped, 1 warning ========
  py$(PYV): OK