diff --git a/merged_pr_60.patch b/merged_pr_60.patch new file mode 100644 index 0000000..45d5897 --- /dev/null +++ b/merged_pr_60.patch @@ -0,0 +1,28 @@ +From 9b24b4c02783cdb703ac3f6c6d7d881db93166e0 Mon Sep 17 00:00:00 2001 +From: Jon Dufresne +Date: Mon, 7 Jan 2019 06:50:37 -0800 +Subject: [PATCH] Remove deprecated 'average_size' argument from hypothesis + tests (#60) + +The argument is deprecated and has no effect. Fixes warning: + + tests/test_random.py::test_contains + .../hypothesis/internal/validation.py:157: HypothesisDeprecationWarning: You should remove the average_size argument, because it is deprecated and no longer has any effect. Please open an issue if the default distribution of examples does not work for you. + since="2018-03-10", +--- + tests/test_random.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_random.py b/tests/test_random.py +index 76ab13e..3d0a7b3 100644 +--- a/tests/test_random.py ++++ b/tests/test_random.py +@@ -13,7 +13,7 @@ + import hypothesis.strategies as st + from hypothesis import given + +- printable_strings = st.lists(st.text(string.printable), average_size=5.) ++ printable_strings = st.lists(st.text(string.printable)) + + @given(printable_strings) + def test_contains(words): diff --git a/python-datrie.changes b/python-datrie.changes index 15d347a..5e82967 100644 --- a/python-datrie.changes +++ b/python-datrie.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 25 07:24:43 UTC 2019 - John Vandenberg + +- Add merged_pr_60.patch to build with recent hypothesis + ------------------------------------------------------------------- Fri Mar 22 14:18:03 UTC 2019 - Tomáš Chvátal diff --git a/python-datrie.spec b/python-datrie.spec index d78d6b6..75606ca 100644 --- a/python-datrie.spec +++ b/python-datrie.spec @@ -27,6 +27,7 @@ URL: https://github.com/kmike/datrie Source: https://files.pythonhosted.org/packages/source/d/datrie/datrie-%{version}.tar.gz Patch0: datrie-bigendian.patch Patch1: reproducible.patch +Patch2: merged_pr_60.patch BuildRequires: %{python_module Cython >= 0.26.1} BuildRequires: %{python_module devel} BuildRequires: %{python_module hypothesis} @@ -44,6 +45,7 @@ A trie data structure for Python (2.x and 3.x). Uses libdatrie. %setup -q -n datrie-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 pushd src cython datrie.pyx cython *.pxd