Accepting request 1135262 from devel:languages:python
- update to 6.92.1: * This release adds an experimental :wikipedia:`observability * This patch fixes an issue where :func:`~hypothesis.strategies.builds` could not be used with :pypi:`attrs` objects that defined private attributes (i.e. attributes with a leading underscore). See also * This release adds an optional ``payload`` argument to :func:`hypothesis.event`, so that you can clearly express the difference between the label and the value of an observation. * This patch supports assigning ``settings = settings(...)`` as a class attribute on a subclass of a ``.TestCase`` attribute of a :class:`~hypothesis.stateful.RuleBasedStateMachine`. * This release makes it an error to assign ``settings = settings(...)`` as a class attribute on a :class:`~hypothesis.stateful.RuleBasedStateMachine`. * This patch refactors some internals. There is no user- visible change, but we hope to improve performance and unlock support for alternative backends such as :pypi:`symbolic execution with crosshair in future (:issue:`3086`). * This release teaches :func:`~hypothesis.strategies.from_type` to handle constraints implied by the :pypi:`annotated-types` package - as used by e.g. :pypi:`Pydantic`. * This patch adds a warning when :func:`@st.composite wraps a function annotated as returning a :class:`~hypothesis.strategies.SearchStrategy`, since this is usually an error (:issue:`3786`). * This patch refactors ``from_type(typing.Tuple)``, allowing :func:`~hypothesis.strategies.register_type_strategy` to take effect for tuples instead of being silently ignored OBS-URL: https://build.opensuse.org/request/show/1135262 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=70
This commit is contained in:
commit
29dd215142
2
_service
2
_service
@ -2,7 +2,7 @@
|
|||||||
<service name="tar_scm" mode="manual">
|
<service name="tar_scm" mode="manual">
|
||||||
<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.88.1</param>
|
<param name="revision">hypothesis-python-6.92.1</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>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:58a5a6ec53e46cc2df164b1d68ee587316c9113b79b0ed798d914af59e4bbbf0
|
|
||||||
size 830739
|
|
3
hypothesis-python-6.92.1.tar.gz
Normal file
3
hypothesis-python-6.92.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4497b31172941cc411192d993fcb543e0aea4825c786b38bb99c0d90cafdcead
|
||||||
|
size 849083
|
@ -1,3 +1,40 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 27 10:12:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 6.92.1:
|
||||||
|
* This release adds an experimental :wikipedia:`observability
|
||||||
|
* This patch fixes an issue where
|
||||||
|
:func:`~hypothesis.strategies.builds` could not be used with
|
||||||
|
:pypi:`attrs` objects that defined private attributes (i.e.
|
||||||
|
attributes with a leading underscore). See also
|
||||||
|
* This release adds an optional ``payload`` argument to
|
||||||
|
:func:`hypothesis.event`, so that you can clearly express
|
||||||
|
the difference between the label and the value of an
|
||||||
|
observation.
|
||||||
|
* This patch supports assigning ``settings = settings(...)`` as
|
||||||
|
a class attribute on a subclass of a ``.TestCase`` attribute
|
||||||
|
of a :class:`~hypothesis.stateful.RuleBasedStateMachine`.
|
||||||
|
* This release makes it an error to assign ``settings =
|
||||||
|
settings(...)`` as a class attribute on a
|
||||||
|
:class:`~hypothesis.stateful.RuleBasedStateMachine`.
|
||||||
|
* This patch refactors some internals. There is no user-
|
||||||
|
visible change, but we hope to improve performance and unlock
|
||||||
|
support for alternative backends such as :pypi:`symbolic
|
||||||
|
execution with crosshair in future (:issue:`3086`).
|
||||||
|
* This release teaches :func:`~hypothesis.strategies.from_type`
|
||||||
|
to handle constraints implied by the :pypi:`annotated-types`
|
||||||
|
package - as used by e.g. :pypi:`Pydantic`.
|
||||||
|
* This patch adds a warning when :func:`@st.composite
|
||||||
|
wraps a function annotated as returning a
|
||||||
|
:class:`~hypothesis.strategies.SearchStrategy`,
|
||||||
|
since this is usually an error (:issue:`3786`).
|
||||||
|
* This patch refactors ``from_type(typing.Tuple)``, allowing
|
||||||
|
:func:`~hypothesis.strategies.register_type_strategy` to take
|
||||||
|
effect for tuples instead of being silently ignored
|
||||||
|
* This patch improves the speed of the explain phase on python
|
||||||
|
3.12+, by using the new :mod:`sys.monitoring` module to collect
|
||||||
|
coverage, instead of :obj:`sys.settrace`.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 1 15:02:50 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
Wed Nov 1 15:02:50 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -37,13 +37,13 @@ ExclusiveArch: do_not_build
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hypothesis%{psuffix}
|
Name: python-hypothesis%{psuffix}
|
||||||
Version: 6.88.1
|
Version: 6.92.1
|
||||||
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
|
||||||
URL: https://github.com/HypothesisWorks/hypothesis
|
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 manualrun` 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}.tar.gz
|
Source: hypothesis-python-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
@ -147,6 +147,8 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g
|
|||||||
# https://github.com/HypothesisWorks/hypothesis/issues/2546
|
# https://github.com/HypothesisWorks/hypothesis/issues/2546
|
||||||
donttest="test_updating_the_file_include_new_shrinkers"
|
donttest="test_updating_the_file_include_new_shrinkers"
|
||||||
donttest+=" or test_can_learn_to_normalize_the_unnormalized"
|
donttest+=" or test_can_learn_to_normalize_the_unnormalized"
|
||||||
|
# requires a git checkout
|
||||||
|
donttest+=" or test_observability"
|
||||||
# Fail because typing comparison
|
# Fail because typing comparison
|
||||||
donttest+=" or test_ghostwriter_on_hypothesis"
|
donttest+=" or test_ghostwriter_on_hypothesis"
|
||||||
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user