forked from pool/python-hypothesis
Accepting request 947060 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/947060 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=55
This commit is contained in:
commit
b9a8e1e5cf
9
_service
9
_service
@ -1,13 +1,16 @@
|
|||||||
<services>
|
<services>
|
||||||
<!-- python portion of github sources -->
|
<service name="tar_scm" mode="disabled">
|
||||||
<service name="obs_scm" mode="disabled">
|
|
||||||
<param name="url">https://github.com/HypothesisWorks/hypothesis.git</param>
|
<param name="url">https://github.com/HypothesisWorks/hypothesis.git</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="revision">hypothesis-python-6.31.4</param>
|
<param name="revision">hypothesis-python-6.35.0</param>
|
||||||
<param name="versionformat">@PARENT_TAG@</param>
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
<param name="versionrewrite-pattern">hypothesis-python-(.*)</param>
|
<param name="versionrewrite-pattern">hypothesis-python-(.*)</param>
|
||||||
<param name="subdir">hypothesis-python</param>
|
<param name="subdir">hypothesis-python</param>
|
||||||
<param name="filename">hypothesis-python</param>
|
<param name="filename">hypothesis-python</param>
|
||||||
</service>
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
<service name="set_version" mode="disabled" />
|
<service name="set_version" mode="disabled" />
|
||||||
</services>
|
</services>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:75430a5e0c89874c551cd1117df9265b414b32eb6ac4c5526bc0681ac199a32d
|
|
||||||
size 2925068
|
|
3
hypothesis-python-6.35.0.tar.gz
Normal file
3
hypothesis-python-6.35.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ad77f4cba4ed3470d757cecbaf858a4a13ad6042d2a8a93416629110d489f5b5
|
||||||
|
size 735198
|
@ -1,5 +0,0 @@
|
|||||||
name: hypothesis-python
|
|
||||||
version: 6.31.4
|
|
||||||
mtime: 1639263364
|
|
||||||
commit: c630d927ecbed86443827c0978ec3839205abdb5
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
|||||||
diff --git a/hypothesis-python/tests/conjecture/test_utils.py b/hypothesis-python/tests/conjecture/test_utils.py
|
---
|
||||||
index fbb837d69..e31868140 100644
|
tests/conjecture/test_utils.py | 3 ++-
|
||||||
--- a/hypothesis-python/tests/conjecture/test_utils.py
|
tests/ghostwriter/test_expected_output.py | 2 +-
|
||||||
+++ b/hypothesis-python/tests/conjecture/test_utils.py
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||||
@@ -16,7 +16,6 @@
|
|
||||||
|
--- a/tests/conjecture/test_utils.py
|
||||||
|
+++ b/tests/conjecture/test_utils.py
|
||||||
|
@@ -11,7 +11,6 @@
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
|
|
||||||
@ -10,7 +13,7 @@ index fbb837d69..e31868140 100644
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from hypothesis import (
|
from hypothesis import (
|
||||||
@@ -218,11 +217,13 @@ def test_combine_labels_is_distinct():
|
@@ -213,11 +212,13 @@ def test_combine_labels_is_distinct():
|
||||||
|
|
||||||
|
|
||||||
def test_invalid_numpy_sample():
|
def test_invalid_numpy_sample():
|
||||||
@ -24,11 +27,9 @@ index fbb837d69..e31868140 100644
|
|||||||
cu.check_sample(np.array([1, 2, 3]), "array")
|
cu.check_sample(np.array([1, 2, 3]), "array")
|
||||||
|
|
||||||
|
|
||||||
diff --git a/hypothesis-python/tests/ghostwriter/test_expected_output.py b/hypothesis-python/tests/ghostwriter/test_expected_output.py
|
--- a/tests/ghostwriter/test_expected_output.py
|
||||||
index 6cc9294e3..1e77c539a 100644
|
+++ b/tests/ghostwriter/test_expected_output.py
|
||||||
--- a/hypothesis-python/tests/ghostwriter/test_expected_output.py
|
@@ -23,13 +23,13 @@ import re
|
||||||
+++ b/hypothesis-python/tests/ghostwriter/test_expected_output.py
|
|
||||||
@@ -27,13 +27,13 @@ import re
|
|
||||||
import sys
|
import sys
|
||||||
from typing import Sequence
|
from typing import Sequence
|
||||||
|
|
||||||
|
@ -1,3 +1,36 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:47:37 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Upgrade to 6.35.0:
|
||||||
|
- This release disallows using "typing.ClassVar" with
|
||||||
|
"from_type()" and "register_type_strategy()". Why? Because
|
||||||
|
"ClassVar" can only be used during "class" definition. We
|
||||||
|
don't generate class attributes. It also does not make sense
|
||||||
|
as a runtime type on its own.
|
||||||
|
- Updates our vendored list of top-level domains, which is used
|
||||||
|
by the provisional "domains()" strategy.
|
||||||
|
- Fixes issue #3169, an extremely rare bug which would trigger
|
||||||
|
if an internal least-recently-reused cache dropped a newly
|
||||||
|
added entry immediately after it was added.
|
||||||
|
- Fixes issue #3133 and issue #3144, where attempting to
|
||||||
|
generate Pandas series of lists or sets would fail with
|
||||||
|
confusing errors if you did not specify "dtype=object".
|
||||||
|
- Disallows using "typing.TypeAlias" with "from_type()" and
|
||||||
|
"register_type_strategy()". Why? Because "TypeAlias" is not
|
||||||
|
really a type, it is a tag for type checkers that some
|
||||||
|
expression is a type alias, not something else. It does not
|
||||||
|
make sense for Hypothesis to resolve it as a strategy.
|
||||||
|
- Updates our autoformatting tools, improving our code style
|
||||||
|
without any API changes.
|
||||||
|
- Drops support for Python 3.6, which reached end of life
|
||||||
|
upstream on 2021-12-23.
|
||||||
|
- Adds a temporary hook for a downstream tool, which is not
|
||||||
|
part of the public API.
|
||||||
|
- Updates our copyright headers to use a general authorship
|
||||||
|
statement and omit the year.
|
||||||
|
- Skip also test_recursion_error_is_not_flaky
|
||||||
|
(gh#HypothesisWorks/hypothesis#3035)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Dec 12 11:40:54 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Sun Dec 12 11:40:54 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
|
%define skip_python36 1
|
||||||
%bcond_with ringdisabled
|
%bcond_with ringdisabled
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
@ -33,7 +34,7 @@ ExclusiveArch: do_not_build
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-hypothesis%{psuffix}
|
Name: python-hypothesis%{psuffix}
|
||||||
Version: 6.31.4
|
Version: 6.35.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for property based testing
|
Summary: A library for property based testing
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
@ -41,7 +42,7 @@ URL: https://github.com/HypothesisWorks/hypothesis
|
|||||||
# Source is the `hypothesis-python` subdir of the Github repository.
|
# Source is the `hypothesis-python` subdir of the Github repository.
|
||||||
# Edit the `_service` file and run `osc service runall` for updates.
|
# Edit the `_service` file and run `osc service runall` for updates.
|
||||||
# See also https://hypothesis.readthedocs.io/en/latest/packaging.html
|
# See also https://hypothesis.readthedocs.io/en/latest/packaging.html
|
||||||
Source: hypothesis-python-%{version}
|
Source: hypothesis-python-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE dont import numpy and pandas and skip tests if these optional packages are not available.
|
# PATCH-FIX-OPENSUSE dont import numpy and pandas and skip tests if these optional packages are not available.
|
||||||
Patch0: importorskip-numpy-pandas.patch
|
Patch0: importorskip-numpy-pandas.patch
|
||||||
%if 0%{?suse_version} >= 1500
|
%if 0%{?suse_version} >= 1500
|
||||||
@ -110,10 +111,11 @@ PyPy3 until they support a 3.3 compatible version of the language). It does *not
|
|||||||
work on Jython or on Python 3.0 through 3.2.
|
work on Jython or on Python 3.0 through 3.2.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_sourcedir}/hypothesis-python-%{version} -T -D
|
%setup -q -n hypothesis-python-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
# gh#HypothesisWorks/hypothesis#2447: make sure arr==0.0 is an array on 32-bit
|
# gh#HypothesisWorks/hypothesis#2447: make sure arr==0.0 is an array on 32-bit
|
||||||
sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_gen_data.py
|
sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_gen_data.py
|
||||||
%patch0 -p2
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
@ -145,6 +147,8 @@ python36_donttest+=" or (test_cli_python_equivalence and json)"
|
|||||||
# typing_extension problem on python36 and Leap 15's python3
|
# typing_extension problem on python36 and Leap 15's python3
|
||||||
python36_donttest+=" or test_mutually_recursive_types_with_typevar"
|
python36_donttest+=" or test_mutually_recursive_types_with_typevar"
|
||||||
python3_donttest+=" or test_mutually_recursive_types_with_typevar"
|
python3_donttest+=" or test_mutually_recursive_types_with_typevar"
|
||||||
|
# gh#HypothesisWorks/hypothesis#3035
|
||||||
|
python3_donttest+=" or test_recursion_error_is_not_flaky"
|
||||||
# requires backports.zoneinfo for python < 3.9
|
# requires backports.zoneinfo for python < 3.9
|
||||||
python36_ignoretests=" --ignore tests/datetime/test_zoneinfo_timezones.py"
|
python36_ignoretests=" --ignore tests/datetime/test_zoneinfo_timezones.py"
|
||||||
python38_ignoretests=" --ignore tests/datetime/test_zoneinfo_timezones.py"
|
python38_ignoretests=" --ignore tests/datetime/test_zoneinfo_timezones.py"
|
||||||
|
Loading…
Reference in New Issue
Block a user