#6 Update to 4.54.2, fix Python 3.9 compatibility (#1791216)
Opened a month ago by churchyard. Modified 12 days ago
rpms/ churchyard/python-hypothesis 4.54.2  into  master

file modified
+4 -25

@@ -1,25 +1,4 @@ 

- /hypothesis-3.12.0.tar.gz

- /hypothesis-3.33.1.tar.gz

- /hypothesis-3.34.0.tar.gz

- /hypothesis-3.34.1.tar.gz

- /hypothesis-3.36.0.tar.gz

- /hypothesis-3.36.1.tar.gz

- /hypothesis-3.37.0.tar.gz

- /hypothesis-3.38.0.tar.gz

- /hypothesis-3.38.4.tar.gz

- /hypothesis-3.42.2.tar.gz

- /hypothesis-3.44.4.tar.gz

- /hypothesis-3.44.12.tar.gz

- /hypothesis-3.44.14.tar.gz

- /hypothesis-3.44.16.tar.gz

- /hypothesis-3.44.17.tar.gz

- /hypothesis-3.44.18.tar.gz

- /hypothesis-3.44.24.tar.gz

- /hypothesis-3.47.0.tar.gz

- /hypothesis-3.49.0.tar.gz

- /hypothesis-3.56.7.tar.gz

- /hypothesis-3.66.0.tar.gz

- /hypothesis-3.66.11.tar.gz

- /hypothesis-4.9.0.tar.gz

- /hypothesis-4.23.4.tar.gz

- /hypothesis-4.23.8.tar.gz

+ /hypothesis-*.tar.gz

+ /hypothesis-*/

+ /results_python-hypothesis/

+ *.rpm

file modified
+7 -2

@@ -1,8 +1,8 @@ 

  %global srcname hypothesis

  

  Name:           python-%{srcname}

- Version:        4.23.8

- Release:        6%{?dist}

+ Version:        4.54.2

+ Release:        1%{?dist}

  Summary:        Library for property based testing

  

  License:        MPLv2.0

@@ -44,6 +44,7 @@ 

  BuildRequires:  python3dist(mock)

  BuildRequires:  python3dist(numpy)

  BuildRequires:  python3dist(pandas)

+ BuildRequires:  python3dist(pexpect)

  BuildRequires:  python3dist(pytest)

  BuildRequires:  python3dist(pytest-xdist)

  %endif

@@ -92,6 +93,10 @@ 

  %endif

  

  %changelog

+ * Wed Jan 22 2020 Miro Hrončok <mhroncok@redhat.com> - 4.54.2-1

+ - Update to 4.54.2

+ - Fixes Python 3.9 compatibility (#1791216)

+ 

  * Mon Nov 11 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-6

  - Drop python2-hypothesis

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- SHA512 (hypothesis-4.23.8.tar.gz) = 4eb66bc467f37fb66600c2e88f031c41e063286bdd1aa40495e75e1a41018053db2b054ee2696b25f9a58e92f5b9ea60f3b59659a1c0ad15bc1a5e63e582ee5a

+ SHA512 (hypothesis-4.54.2.tar.gz) = 41076ecc04a2ecadba814988b42d3d66e0f07ef80a0dbe928d582c39caac5cb7bfa0b0cdc1937c91a700181b6de4a8ef94310bb6ecb9a3fac57616f613825f9c

4.54.2 is the last version without new dependency on sortedcontainers -- we have that in Fedora, but I didn't want to complicate the bootstrap sequence.

https://hypothesis.readthedocs.io/en/latest/changes.html#v4-54-2

We don't currently have pandas in the Python 3.9 copr, so I cannot check if this helps. But it should. Will check if it doesn't break stuff in Fedora.

@pkopkan python-vistir has a failure, could you please check if it is related and whether upstream knows about it?

https://copr.fedorainfracloud.org/coprs/g/python/python3.9/build/1172750/

This still fails on 3.9:

_______________ test_typeddict_with_optional_then_required_again _______________
[gw0] linux -- Python 3.9.0 /usr/bin/python3
Traceback (most recent call last):
  File "/builddir/build/BUILD/hypothesis-hypothesis-python-4.54.2/hypothesis-python/tests/py3/test_lookup_py38.py", line 94, in test_typeddict_with_optional_then_required_again
    def test_typeddict_with_optional_then_required_again(value):
  File "/builddir/build/BUILDROOT/python-hypothesis-4.54.2-1.fc32.x86_64/usr/lib/python3.9/site-packages/hypothesis/core.py", line 1116, in wrapped_test
    raise the_error_hypothesis_found
  File "/builddir/build/BUILD/hypothesis-hypothesis-python-4.54.2/hypothesis-python/tests/py3/test_lookup_py38.py", line 97, in test_typeddict_with_optional_then_required_again
    assert isinstance(value["a"], int)
KeyError: 'a'
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_typeddict_with_optional_then_required_again(
    value={'c': ''},
)

@pkopkan python-vistir has a failure, could you please check if it is related and whether upstream knows about it?

it is not related and rebuilding few times should work. It is fixed in newer version.