Sync from SUSE:SLFO:Main python-hypothesis revision 972d826a20cf56cc9887a371bd634ac3
This commit is contained in:
parent
df02d97b1a
commit
df401f24b4
8
_service
8
_service
@ -1,16 +1,16 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="tar_scm" mode="disabled">
|
<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.82.7</param>
|
<param name="revision">hypothesis-python-6.98.9</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">
|
<service name="recompress" mode="manual">
|
||||||
<param name="file">*.tar</param>
|
<param name="file">*.tar</param>
|
||||||
<param name="compression">gz</param>
|
<param name="compression">gz</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="set_version" mode="disabled" />
|
<service name="set_version" mode="manual" />
|
||||||
</services>
|
</services>
|
||||||
|
BIN
hypothesis-python-6.82.7.tar.gz
(Stored with Git LFS)
BIN
hypothesis-python-6.82.7.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
hypothesis-python-6.98.9.tar.gz
(Stored with Git LFS)
Normal file
BIN
hypothesis-python-6.98.9.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,169 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 11:16:28 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Disable complete tests for non-tumbleweed to avoid python-pandas
|
||||||
|
requirement
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 15 17:17:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Clean up the SPEC file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 22 12:42:26 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 6.98.9
|
||||||
|
* Avoid creating a .hypothesis directory when using register_type_strategy().
|
||||||
|
* Add ability to pass any object to note().
|
||||||
|
* Warn when constructing a repr that is overly long.
|
||||||
|
* Change the distribution of sampled_from() when sampling from a Flag.
|
||||||
|
* Deprecate use of the global random number generator while drawing from a strategy.
|
||||||
|
* Improve our distribution of generated values for all strategies.
|
||||||
|
* Improve the Ghostwriter for binary operators.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 24 13:47:04 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Update to 6.93.2:
|
||||||
|
* This patch improves observability reports by moving timing
|
||||||
|
information from metadata to a new timing key, and supporting
|
||||||
|
conversion of additional argument types to json rather than
|
||||||
|
string reprs via a .to_json() method
|
||||||
|
(including e.g. Pandas dataframes).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 6 20:28:21 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 6.92.2:
|
||||||
|
* updates vendored list of top-level domains
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update to 6.88.1
|
||||||
|
* improves :func:`~hypothesis.strategies.register_type_strategy` when
|
||||||
|
used with tuple subclasses, by preventing them from being interpreted
|
||||||
|
as generic and provided to strategies like st.from_type(Sequence[int])
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 16 14:10:17 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- Update to 6.88.0
|
||||||
|
- disable flaky test
|
||||||
|
* This release allows strategy-generating functions registered
|
||||||
|
with register_type_strategy() to conditionally not return
|
||||||
|
a strategy, by returning NotImplemented
|
||||||
|
* When randoms( was called with use_true_randoms=False,
|
||||||
|
calling sample on it with an empty sequence and 0 elements
|
||||||
|
would result in an error, when it should have returned
|
||||||
|
an empty sequence to agree with the normal behaviour of
|
||||||
|
random.Random. This fixes that discrepancy.)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 11 09:18:10 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- Update to 6.87.3
|
||||||
|
* This patch ensures that the :ref:`hypothesis codemod <codemods>`
|
||||||
|
CLI will print a warning instead of stopping with an internal error
|
||||||
|
if one of your files contains invalid syntax (:issue:`3759`).
|
||||||
|
* This patch makes some small changes to our NumPy integration
|
||||||
|
to ensure forward compatibility.
|
||||||
|
* Fixes :issue:`3755`, where an internal condition turns out to be
|
||||||
|
reachable after all.
|
||||||
|
* This release deprecates use of :func:`~hypothesis.assume`
|
||||||
|
and reject() outside of property-based tests, because these functions
|
||||||
|
work by raising a special exception (:issue:`3743`).
|
||||||
|
It also fixes some type annotations (:issue:`3753`).
|
||||||
|
* Hotfix for :issue:`3747`, a bug in explain mode which is so rare
|
||||||
|
that we missed it in six months of dogfooding. Thanks to :pypi:`mygrad`
|
||||||
|
for discovering and promptly reporting this!
|
||||||
|
* This patch improves the documentation of
|
||||||
|
:obj:`@example(...).xfail() <hypothesis.example.xfail>` by adding a note
|
||||||
|
about PEP 614, similar to :obj:`@example(...).via() <hypothesis.example.via>`,
|
||||||
|
and adds a warning when a strategy generates a test case which
|
||||||
|
seems identical to one provided by an xfailed example.
|
||||||
|
* This release enables the :obj:`~hypothesis.Phase.explain`
|
||||||
|
:ref:`phase <phases>` by default. We hope it helps you to understand
|
||||||
|
why your failing tests have failed!
|
||||||
|
* This patch switches some of our type annotations to use
|
||||||
|
:obj:`typing.Literal` when only a few specific values are allowed,
|
||||||
|
such as UUID or IP address versions.
|
||||||
|
* This release deprecates the old whitelist/blacklist arguments to
|
||||||
|
:func:`~hypothesis.strategies.characters`, in favor of include/exclude
|
||||||
|
arguments which more clearly describe their effects on the set
|
||||||
|
of characters which can be generated.
|
||||||
|
* You can :ref:`use Hypothesis' codemods <codemods>` to automatically
|
||||||
|
upgrade to the new argument names. In a future version, the old names
|
||||||
|
will start to raise a DeprecationWarning.
|
||||||
|
* This patch automatically disables the
|
||||||
|
:obj:`~hypothesis.HealthCheck.differing_executors` health check
|
||||||
|
for methods which are also pytest parametrized tests, because those
|
||||||
|
were mostly false alarms (:issue:`3733`).
|
||||||
|
* Building on recent releases, :func:`~hypothesis.strategies.characters`
|
||||||
|
now accepts _any_ codec=, not just "utf-8" and "ascii".
|
||||||
|
* This includes standard codecs from the :mod:`codecs` module and their aliases,
|
||||||
|
platform specific and user-registered codecs if they are available,
|
||||||
|
and python-specific text encodings (but not text transforms or binary transforms).
|
||||||
|
* This patch by Reagan Lee makes st.text(...).filter(str.isidentifier)
|
||||||
|
return an efficient custom strategy (:issue:`3480`).
|
||||||
|
* The :func:`~hypothesis.strategies.from_regex` strategy now takes an optional
|
||||||
|
alphabet=characters(codec="utf-8") argument for unicode strings,
|
||||||
|
like :func:`~hypothesis.strategies.text`.
|
||||||
|
* This offers more and more-consistent control over the generated strings,
|
||||||
|
removing previously-hard-coded limitations. With fullmatch=False and alphabet=characters(),
|
||||||
|
surrogate characters are now possible in leading and trailing text as well as the body
|
||||||
|
of the match. Negated character classes such as [^A-Z] or \S had a hard-coded
|
||||||
|
exclusion of control characters and surrogate characters; now they permit
|
||||||
|
anything in alphabet= consistent with the class, and control characters
|
||||||
|
are permitted by default.
|
||||||
|
* Add a health check that detects if the same test is executed several times
|
||||||
|
by :ref:`different executors<custom-function-execution>`. This can lead
|
||||||
|
to difficult-to-debug problems such as :issue:`3446`.
|
||||||
|
* Pretty-printing of failing examples can now use functions registered with
|
||||||
|
:func:`IPython.lib.pretty.for_type` or :func:`~IPython.lib.pretty.for_type_by_name`,
|
||||||
|
as well as restoring compatibility with _repr_pretty_ callback methods which were
|
||||||
|
accidentally broken in :ref:`version 6.61.2 <v6.61.2>` (:issue:`3721`).
|
||||||
|
* Adds a new codec= option in :func:`~hypothesis.strategies.characters`,
|
||||||
|
making it convenient to produce only characters which can be encoded
|
||||||
|
as ascii or utf-8 bytestrings.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 29 17:43:45 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Tue Aug 29 17:43:45 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
@ -357,16 +523,16 @@ Sun Oct 16 17:44:52 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
- Update to 6.56.1
|
- Update to 6.56.1
|
||||||
* This patch improves the error message when Hypothesis detects
|
* This patch improves the error message when Hypothesis detects
|
||||||
“flush to zero” mode for floating-point: we now report which
|
“flush to zero” mode for floating-point: we now report which
|
||||||
package(s) enabled this, which can make debugging much easier.
|
package(s) enabled this, which can make debugging much easier.
|
||||||
See issue #3458 for details.
|
See issue #3458 for details.
|
||||||
- Release 6.56.0
|
- Release 6.56.0
|
||||||
* This release defines __bool__() on SearchStrategy. It always
|
* This release defines __bool__() on SearchStrategy. It always
|
||||||
returns True, like before, but also emits a warning to help
|
returns True, like before, but also emits a warning to help
|
||||||
with cases where you intended to draw a value (issue #3463).
|
with cases where you intended to draw a value (issue #3463).
|
||||||
- Release 6.55.0
|
- Release 6.55.0
|
||||||
* In preparation for future versions of the Array API standard,
|
* In preparation for future versions of the Array API standard,
|
||||||
make_strategies_namespace() now accepts an optional api_version
|
make_strategies_namespace() now accepts an optional api_version
|
||||||
argument, which determines the version conformed to by the
|
argument, which determines the version conformed to by the
|
||||||
@ -376,15 +542,15 @@ Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
currently equivalent to the existing xps.numeric_dtypes()
|
currently equivalent to the existing xps.numeric_dtypes()
|
||||||
strategy, but exists because the latter is expected to include
|
strategy, but exists because the latter is expected to include
|
||||||
complex numbers in the next version of the standard.
|
complex numbers in the next version of the standard.
|
||||||
- Release 6.54.6
|
- Release 6.54.6
|
||||||
* If multiple explicit examples (from @example()) raise a Skip
|
* If multiple explicit examples (from @example()) raise a Skip
|
||||||
exception, for consistency with generated examples we now
|
exception, for consistency with generated examples we now
|
||||||
re-raise the first instead of collecting them into an
|
re-raise the first instead of collecting them into an
|
||||||
ExceptionGroup (issue #3453).
|
ExceptionGroup (issue #3453).
|
||||||
- Release 6.54.5
|
- Release 6.54.5
|
||||||
* This patch updates our autoformatting tools, improving our code
|
* This patch updates our autoformatting tools, improving our code
|
||||||
style without any API changes.
|
style without any API changes.
|
||||||
- Release 6.54.4
|
- Release 6.54.4
|
||||||
* This patch fixes some type annotations for Python 3.9 and
|
* This patch fixes some type annotations for Python 3.9 and
|
||||||
earlier (issue #3397), and teaches explain mode about certain
|
earlier (issue #3397), and teaches explain mode about certain
|
||||||
locations it should not bother reporting (issue #3439).
|
locations it should not bother reporting (issue #3439).
|
||||||
@ -392,15 +558,15 @@ Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
* This patch teaches the Ghostwriter an additional check for
|
* This patch teaches the Ghostwriter an additional check for
|
||||||
function and class locations that should make it use public
|
function and class locations that should make it use public
|
||||||
APIs more often.
|
APIs more often.
|
||||||
- Release 6.54.2
|
- Release 6.54.2
|
||||||
* This patch fixes our workaround for a pytest bug where the
|
* This patch fixes our workaround for a pytest bug where the
|
||||||
inner exceptions in an ExceptionGroup are not displayed (issue
|
inner exceptions in an ExceptionGroup are not displayed (issue
|
||||||
#3430).
|
#3430).
|
||||||
- Release 6.54.1
|
- Release 6.54.1
|
||||||
* This patch makes FailedHealthCheck and DeadlineExceeded
|
* This patch makes FailedHealthCheck and DeadlineExceeded
|
||||||
exceptions picklable, for compatibility with Django’s parallel
|
exceptions picklable, for compatibility with Django’s parallel
|
||||||
test runner (issue #3426).
|
test runner (issue #3426).
|
||||||
- Release 6.54.0
|
- Release 6.54.0
|
||||||
* Reporting of multiple failing examples now uses the PEP 654
|
* Reporting of multiple failing examples now uses the PEP 654
|
||||||
ExceptionGroup type, which is provided by the exceptiongroup
|
ExceptionGroup type, which is provided by the exceptiongroup
|
||||||
backport on Python 3.10 and earlier (issue #3175).
|
backport on Python 3.10 and earlier (issue #3175).
|
||||||
@ -409,68 +575,68 @@ Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
exception notes, which ensures that they will always appear
|
exception notes, which ensures that they will always appear
|
||||||
together with the traceback and other information about their
|
together with the traceback and other information about their
|
||||||
respective error.
|
respective error.
|
||||||
- Release 6.53.0
|
- Release 6.53.0
|
||||||
* from_field() now supports UsernameField from
|
* from_field() now supports UsernameField from
|
||||||
django.contrib.auth.forms.
|
django.contrib.auth.forms.
|
||||||
* Thanks to Afonso Silva for reporting and working on issue
|
* Thanks to Afonso Silva for reporting and working on issue
|
||||||
#3417.
|
#3417.
|
||||||
- Release 6.52.4
|
- Release 6.52.4
|
||||||
* This patch improves the error message when you pass filenames
|
* This patch improves the error message when you pass filenames
|
||||||
to the hypothesis write CLI, which takes the name of a module
|
to the hypothesis write CLI, which takes the name of a module
|
||||||
or function (e.g. hypothesis write gzip or hypothesis write
|
or function (e.g. hypothesis write gzip or hypothesis write
|
||||||
package.some_function rather than hypothesis write script.py).
|
package.some_function rather than hypothesis write script.py).
|
||||||
* Thanks to Ed Rogers for implementing this as part of the SciPy
|
* Thanks to Ed Rogers for implementing this as part of the SciPy
|
||||||
2022 sprints!
|
2022 sprints!
|
||||||
- Release 6.52.3
|
- Release 6.52.3
|
||||||
* This patch ensures that the warning for non-interactive
|
* This patch ensures that the warning for non-interactive
|
||||||
.example() points to your code instead of Hypothesis internals
|
.example() points to your code instead of Hypothesis internals
|
||||||
(issue #3403).
|
(issue #3403).
|
||||||
* Thanks to @jameslamb for this fix.
|
* Thanks to @jameslamb for this fix.
|
||||||
- Release 6.52.2
|
- Release 6.52.2
|
||||||
* This patch makes integers() more likely to generate boundary
|
* This patch makes integers() more likely to generate boundary
|
||||||
values for large two-sided intervals (issue #2942).
|
values for large two-sided intervals (issue #2942).
|
||||||
- Release 6.52.1
|
- Release 6.52.1
|
||||||
* This patch adds filter rewriting for math.isfinite(),
|
* This patch adds filter rewriting for math.isfinite(),
|
||||||
math.isinf(), and math.isnan() on integers() or floats() (issue
|
math.isinf(), and math.isnan() on integers() or floats() (issue
|
||||||
#2701).
|
#2701).
|
||||||
* Thanks to Sam Clamons at the SciPy Sprints!
|
* Thanks to Sam Clamons at the SciPy Sprints!
|
||||||
- Release 6.52.0
|
- Release 6.52.0
|
||||||
* This release adds the allow_subnormal argument to
|
* This release adds the allow_subnormal argument to
|
||||||
complex_numbers() by applying it to each of the real and
|
complex_numbers() by applying it to each of the real and
|
||||||
imaginary parts separately. Closes issue #3390.
|
imaginary parts separately. Closes issue #3390.
|
||||||
* Thanks to Evan Tey for this fix.
|
* Thanks to Evan Tey for this fix.
|
||||||
- Release 6.51.0
|
- Release 6.51.0
|
||||||
* Issue a deprecation warning if a function decorated with
|
* Issue a deprecation warning if a function decorated with
|
||||||
@composite does not draw any values (issue #3384).
|
@composite does not draw any values (issue #3384).
|
||||||
* Thanks to Grzegorz Zieba, Rodrigo Girão, and Thomas Ball for
|
* Thanks to Grzegorz Zieba, Rodrigo Girão, and Thomas Ball for
|
||||||
working on this at the EuroPython sprints!
|
working on this at the EuroPython sprints!
|
||||||
- Release 6.50.1
|
- Release 6.50.1
|
||||||
* This patch improves the error messages in @example() argument
|
* This patch improves the error messages in @example() argument
|
||||||
validation following the recent release of 6.49.1.
|
validation following the recent release of 6.49.1.
|
||||||
- Release 6.50.0
|
- Release 6.50.0
|
||||||
* This release allows from_dtype() to generate Unicode strings
|
* This release allows from_dtype() to generate Unicode strings
|
||||||
which cannot be encoded in UTF-8, but are valid in Numpy arrays
|
which cannot be encoded in UTF-8, but are valid in Numpy arrays
|
||||||
(which use UTF-32).
|
(which use UTF-32).
|
||||||
* This logic will only be used with Numpy >= 1.19, because
|
* This logic will only be used with Numpy >= 1.19, because
|
||||||
earlier versions have an issue which led us to revert
|
earlier versions have an issue which led us to revert
|
||||||
Hypothesis 5.2 last time!
|
Hypothesis 5.2 last time!
|
||||||
- Release 6.49.1
|
- Release 6.49.1
|
||||||
* This patch fixes some inconsistency between argument handling
|
* This patch fixes some inconsistency between argument handling
|
||||||
for @example and @given (2706).
|
for @example and @given (2706).
|
||||||
- Release 6.49.0
|
- Release 6.49.0
|
||||||
* This release uses PEP 612 typing.ParamSpec (or the
|
* This release uses PEP 612 typing.ParamSpec (or the
|
||||||
typing_extensions backport) to express the
|
typing_extensions backport) to express the
|
||||||
first-argument-removing behaviour of @st.composite and
|
first-argument-removing behaviour of @st.composite and
|
||||||
signature-preservation of functions() to IDEs, editor plugins,
|
signature-preservation of functions() to IDEs, editor plugins,
|
||||||
and static type checkers such as mypy.
|
and static type checkers such as mypy.
|
||||||
- Release 6.48.3
|
- Release 6.48.3
|
||||||
* hypothesis.event() now works for hashable objects which do not
|
* hypothesis.event() now works for hashable objects which do not
|
||||||
support weakrefs, such as integers and tuples.
|
support weakrefs, such as integers and tuples.
|
||||||
- Release 6.48.2
|
- Release 6.48.2
|
||||||
* This patch tidies up some internal introspection logic, which
|
* This patch tidies up some internal introspection logic, which
|
||||||
will improve support for positional-only arguments in a future
|
will improve support for positional-only arguments in a future
|
||||||
release (issue #2706).
|
release (issue #2706).
|
||||||
- Release 6.48.1
|
- Release 6.48.1
|
||||||
* This release automatically rewrites some simple filters, such
|
* This release automatically rewrites some simple filters, such
|
||||||
as floats().filter(lambda x: x >= 10) to the more efficient
|
as floats().filter(lambda x: x >= 10) to the more efficient
|
||||||
floats(min_value=10), based on the AST of the predicate.
|
floats(min_value=10), based on the AST of the predicate.
|
||||||
@ -479,25 +645,25 @@ Sun Oct 9 21:39:51 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
|||||||
“Checks” where you already have a simple predicate and
|
“Checks” where you already have a simple predicate and
|
||||||
translating manually is really annoying. See issue #2701 for
|
translating manually is really annoying. See issue #2701 for
|
||||||
details.
|
details.
|
||||||
- Release 6.48.0
|
- Release 6.48.0
|
||||||
* This release raises SkipTest for which never executed any
|
* This release raises SkipTest for which never executed any
|
||||||
examples, for example because the phases setting excluded the
|
examples, for example because the phases setting excluded the
|
||||||
explicit, reuse, and generate phases. This helps to avoid cases
|
explicit, reuse, and generate phases. This helps to avoid cases
|
||||||
where broken tests appear to pass, because they didn’t actually
|
where broken tests appear to pass, because they didn’t actually
|
||||||
execute (issue #3328).
|
execute (issue #3328).
|
||||||
- Release 6.47.5
|
- Release 6.47.5
|
||||||
* This patch fixes type annotations that had caused the signature
|
* This patch fixes type annotations that had caused the signature
|
||||||
of @given to be partially-unknown to type-checkers for Python
|
of @given to be partially-unknown to type-checkers for Python
|
||||||
versions before 3.10.
|
versions before 3.10.
|
||||||
- Release 6.47.4
|
- Release 6.47.4
|
||||||
* This patch fixes from_type() on Python 3.11, following
|
* This patch fixes from_type() on Python 3.11, following
|
||||||
python/cpython#93754.
|
python/cpython#93754.
|
||||||
- Release 6.47.3
|
- Release 6.47.3
|
||||||
* This patch makes the too_slow health check more consistent with
|
* This patch makes the too_slow health check more consistent with
|
||||||
long deadline tests (issue #3367) and fixes an install issue
|
long deadline tests (issue #3367) and fixes an install issue
|
||||||
under pipenv which was introduced in Hypothesis 6.47.2 (issue
|
under pipenv which was introduced in Hypothesis 6.47.2 (issue
|
||||||
#3374).
|
#3374).
|
||||||
- Release 6.47.2
|
- Release 6.47.2
|
||||||
* We now use the PEP 654 ExceptionGroup type - provided by the
|
* We now use the PEP 654 ExceptionGroup type - provided by the
|
||||||
exceptiongroup backport on older Pythons - to ensure that if
|
exceptiongroup backport on older Pythons - to ensure that if
|
||||||
multiple errors are raised in teardown, they will all
|
multiple errors are raised in teardown, they will all
|
||||||
@ -811,7 +977,7 @@ Sun Dec 12 11:40:54 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 6 18:10:30 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Mon Dec 6 18:10:30 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
- fix requires
|
- fix requires
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 6 09:35:44 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
Mon Dec 6 09:35:44 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
@ -828,7 +994,7 @@ Sun Dec 5 18:29:41 UTC 2021 - Axel Braun <axel.braun@gmx.de>
|
|||||||
Sat Dec 4 18:31:49 UTC 2021 - Axel Braun <axel.braun@gmx.de>
|
Sat Dec 4 18:31:49 UTC 2021 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
- update 6.30.0
|
- update 6.30.0
|
||||||
tests/test_api disabled as recommended
|
tests/test_api disabled as recommended
|
||||||
https://github.com/HypothesisWorks/hypothesis/issues/3178
|
https://github.com/HypothesisWorks/hypothesis/issues/3178
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
@ -880,7 +1046,7 @@ Wed Nov 11 12:15:41 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
|||||||
|
|
||||||
- update to 5.41.2:
|
- update to 5.41.2:
|
||||||
* long list of changes and improvements, see
|
* long list of changes and improvements, see
|
||||||
https://hypothesis.readthedocs.io/en/latest/changes.html#v5-41-2
|
https://hypothesis.readthedocs.io/en/latest/changes.html#v5-41-2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 12 20:51:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Wed Aug 12 20:51:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
@ -898,28 +1064,28 @@ Wed Aug 12 20:51:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
|||||||
and complex_numbers() strategies.
|
and complex_numbers() strategies.
|
||||||
- Update to version 5.24.1
|
- Update to version 5.24.1
|
||||||
* This patch updates some docstrings, without changing runtime
|
* This patch updates some docstrings, without changing runtime
|
||||||
behaviour.
|
behaviour.
|
||||||
- add comment about source archive
|
- add comment about source archive
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 11 12:28:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Tue Aug 11 12:28:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
- Update to version 5.24.0
|
- Update to version 5.24.0
|
||||||
* The functions() strategy has a new argument pure=True,
|
* The functions() strategy has a new argument pure=True,
|
||||||
which ensures that the same return value is generated
|
which ensures that the same return value is generated
|
||||||
for identical calls to the generated function (issue
|
for identical calls to the generated function (issue
|
||||||
#2538).
|
#2538).
|
||||||
* Thanks to Zac Hatfield-Dodds and Nikita Sobolev for this
|
* Thanks to Zac Hatfield-Dodds and Nikita Sobolev for this
|
||||||
feature!
|
feature!
|
||||||
- Update to version 5.23.12
|
- Update to version 5.23.12
|
||||||
* This release removes a number of Hypothesis's internal
|
* This release removes a number of Hypothesis's internal
|
||||||
"shrink passes" - transformations it makes to a
|
"shrink passes" - transformations it makes to a
|
||||||
generated test case during shrinking - which appeared to
|
generated test case during shrinking - which appeared to
|
||||||
be redundant with other transformations.
|
be redundant with other transformations.
|
||||||
* It is unlikely that you will see much impact from this.
|
* It is unlikely that you will see much impact from this.
|
||||||
If you do, it will likely show up as a change in
|
If you do, it will likely show up as a change in
|
||||||
shrinking performance (probably slower, maybe faster),
|
shrinking performance (probably slower, maybe faster),
|
||||||
or possibly in worse shrunk results. If you encounter
|
or possibly in worse shrunk results. If you encounter
|
||||||
the latter, please let us know.
|
the latter, please let us know.
|
||||||
- remove rpmlintrc again
|
- remove rpmlintrc again
|
||||||
- use only github source repository (python subdir) in obscpio
|
- use only github source repository (python subdir) in obscpio
|
||||||
@ -928,7 +1094,7 @@ Tue Aug 11 12:28:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
|||||||
Sat Aug 8 08:41:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Sat Aug 8 08:41:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
- Use PyPI source for package and test it with tests from the
|
- Use PyPI source for package and test it with tests from the
|
||||||
Github repository -- source hypothesis-python-tests-5.23.11
|
Github repository -- source hypothesis-python-tests-5.23.11
|
||||||
as direct CPIO archive hypothesis-python-tests-5.23.11.obscpio
|
as direct CPIO archive hypothesis-python-tests-5.23.11.obscpio
|
||||||
created by (locally run) obs_scm service
|
created by (locally run) obs_scm service
|
||||||
- Reenable django and pandas tests
|
- Reenable django and pandas tests
|
||||||
@ -938,110 +1104,110 @@ Sat Aug 8 08:41:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
|||||||
* Trims total build time by a large factor despite now running
|
* Trims total build time by a large factor despite now running
|
||||||
pandas and django tests too!
|
pandas and django tests too!
|
||||||
- Drop failing-test_array_values_are_unique_high_collision.patch
|
- Drop failing-test_array_values_are_unique_high_collision.patch
|
||||||
* Fix the test instead gh#HypothesisWorks/hypothesis#2447
|
* Fix the test instead gh#HypothesisWorks/hypothesis#2447
|
||||||
- python-hypothesis-rpmlintrc -- filter empty types file
|
- python-hypothesis-rpmlintrc -- filter empty types file
|
||||||
- Sync requirements versions to setup.py
|
- Sync requirements versions to setup.py
|
||||||
* newer versions probably came from wrong interpretation of
|
* newer versions probably came from wrong interpretation of
|
||||||
upstream's version pinning
|
upstream's version pinning
|
||||||
- Update to version 5.23.11
|
- Update to version 5.23.11
|
||||||
* This release fixes a bug in some internal Hypothesis support
|
* This release fixes a bug in some internal Hypothesis support
|
||||||
code. It has no user visible impact.
|
code. It has no user visible impact.
|
||||||
- Update to version 5.23.10
|
- Update to version 5.23.10
|
||||||
* This release improves the quality of shrunk test cases in some
|
* This release improves the quality of shrunk test cases in some
|
||||||
special cases. Specifically, it should get shrinking unstuck in
|
special cases. Specifically, it should get shrinking unstuck in
|
||||||
some scenarios which require simultaneously changing two parts
|
some scenarios which require simultaneously changing two parts
|
||||||
of the generated test case.
|
of the generated test case.
|
||||||
- Update to version 5.23.9
|
- Update to version 5.23.9
|
||||||
* This release improves the performance of some internal support
|
* This release improves the performance of some internal support
|
||||||
code. It has no user visible impact, as that code is not
|
code. It has no user visible impact, as that code is not
|
||||||
currently run during normal Hypothesis operation.
|
currently run during normal Hypothesis operation.
|
||||||
- Update to version 5.23.8
|
- Update to version 5.23.8
|
||||||
* This release adds a heuristic to detect when shrinking has
|
* This release adds a heuristic to detect when shrinking has
|
||||||
finished despite the fact that there are many more possible
|
finished despite the fact that there are many more possible
|
||||||
transformations to try. This will be particularly useful for
|
transformations to try. This will be particularly useful for
|
||||||
tests where the minimum failing test case is very large despite
|
tests where the minimum failing test case is very large despite
|
||||||
there being many smaller test cases possible, where it is
|
there being many smaller test cases possible, where it is
|
||||||
likely to speed up shrinking dramatically.
|
likely to speed up shrinking dramatically.
|
||||||
* In some cases it is likely that this will result in worse
|
* In some cases it is likely that this will result in worse
|
||||||
shrunk test cases. In those cases rerunning the test will
|
shrunk test cases. In those cases rerunning the test will
|
||||||
result in further shrinking.
|
result in further shrinking.
|
||||||
- Update to version 5.23.7
|
- Update to version 5.23.7
|
||||||
* This release makes some performance improvements to shrinking.
|
* This release makes some performance improvements to shrinking.
|
||||||
They should only be noticeable for tests that are currently
|
They should only be noticeable for tests that are currently
|
||||||
particularly slow to shrink.
|
particularly slow to shrink.
|
||||||
- Update to version 5.23.6
|
- Update to version 5.23.6
|
||||||
* This patch adds some more internal functions to support a new
|
* This patch adds some more internal functions to support a new
|
||||||
feature we're working on, like version 5.18.3. There is still
|
feature we're working on, like version 5.18.3. There is still
|
||||||
no user-visible changes yet.
|
no user-visible changes yet.
|
||||||
- Update to version 5.23.5
|
- Update to version 5.23.5
|
||||||
* This release makes some changes to internal support code that
|
* This release makes some changes to internal support code that
|
||||||
is not currently used in production Hypothesis. It has no user
|
is not currently used in production Hypothesis. It has no user
|
||||||
visible effect at present.
|
visible effect at present.
|
||||||
- Update to version 5.23.4
|
- Update to version 5.23.4
|
||||||
* This release improves shrinking quality in some special cases.
|
* This release improves shrinking quality in some special cases.
|
||||||
- Update to version 5.23.3
|
- Update to version 5.23.3
|
||||||
* This release fixes issue #2507, where lazy evaluation meant
|
* This release fixes issue #2507, where lazy evaluation meant
|
||||||
that the values drawn from a sampled_from() strategy could
|
that the values drawn from a sampled_from() strategy could
|
||||||
depend on mutations of the sampled sequence that happened after
|
depend on mutations of the sampled sequence that happened after
|
||||||
the strategy was constructed.
|
the strategy was constructed.
|
||||||
- Update to version 5.23.2
|
- Update to version 5.23.2
|
||||||
* This patch fixes issue #2462, a bug in our handling of
|
* This patch fixes issue #2462, a bug in our handling of
|
||||||
unittest.TestCase.subTest(). Thanks to Israel Fruchter for
|
unittest.TestCase.subTest(). Thanks to Israel Fruchter for
|
||||||
fixing this at the EuroPython sprints!
|
fixing this at the EuroPython sprints!
|
||||||
- Update to version 5.23.1
|
- Update to version 5.23.1
|
||||||
* This release improves the behaviour of the characters()
|
* This release improves the behaviour of the characters()
|
||||||
strategy when shrinking, by changing which characters are
|
strategy when shrinking, by changing which characters are
|
||||||
considered smallest to prefer more "normal" ascii
|
considered smallest to prefer more "normal" ascii
|
||||||
characters where available.
|
characters where available.
|
||||||
- Update to version 5.23.0
|
- Update to version 5.23.0
|
||||||
* The default print_blob setting is now smarter. It defaults to
|
* The default print_blob setting is now smarter. It defaults to
|
||||||
True in CI and False for local development.
|
True in CI and False for local development.
|
||||||
* Thanks to Hugo van Kemenade for implementing this feature at
|
* Thanks to Hugo van Kemenade for implementing this feature at
|
||||||
the EuroPython sprints!
|
the EuroPython sprints!
|
||||||
- Update to version 5.22.0
|
- Update to version 5.22.0
|
||||||
* The slices() strategy can now generate slices for empty
|
* The slices() strategy can now generate slices for empty
|
||||||
sequences, slices with negative start and stop indices (from
|
sequences, slices with negative start and stop indices (from
|
||||||
the end of the sequence), and step=None in place of step=1.
|
the end of the sequence), and step=None in place of step=1.
|
||||||
* Thanks to Sangarshanan for implementing this feature at the
|
* Thanks to Sangarshanan for implementing this feature at the
|
||||||
EuroPython sprints!
|
EuroPython sprints!
|
||||||
- Update to version 5.21.0
|
- Update to version 5.21.0
|
||||||
* This release ensures that tests which raise RecursionError are
|
* This release ensures that tests which raise RecursionError are
|
||||||
not reported as flaky simply because we run them from different
|
not reported as flaky simply because we run them from different
|
||||||
initial stack depths (issue #2494).
|
initial stack depths (issue #2494).
|
||||||
- Update to version 5.20.4
|
- Update to version 5.20.4
|
||||||
* This release improves the performance of the sample method on
|
* This release improves the performance of the sample method on
|
||||||
objects obtained from randoms() when use_true_random=False.
|
objects obtained from randoms() when use_true_random=False.
|
||||||
This should mostly only be noticeable when the sample size is a
|
This should mostly only be noticeable when the sample size is a
|
||||||
large fraction of the population size, but may also help avoid
|
large fraction of the population size, but may also help avoid
|
||||||
health check failures in some other cases.
|
health check failures in some other cases.
|
||||||
- Update to version 5.20.3
|
- Update to version 5.20.3
|
||||||
* This release makes some internal changes for testing purposes
|
* This release makes some internal changes for testing purposes
|
||||||
and should have no user visible effect.
|
and should have no user visible effect.
|
||||||
- Update to version 5.20.2
|
- Update to version 5.20.2
|
||||||
* This release fixes a small caching bug in Hypothesis internals
|
* This release fixes a small caching bug in Hypothesis internals
|
||||||
that may under some circumstances have resulted in a less
|
that may under some circumstances have resulted in a less
|
||||||
diverse set of test cases being generated than was intended.
|
diverse set of test cases being generated than was intended.
|
||||||
* Fixing this problem revealed some performance problems that
|
* Fixing this problem revealed some performance problems that
|
||||||
could occur during targeted property based testing, so this
|
could occur during targeted property based testing, so this
|
||||||
release also fixes those. Targeted property-based testing
|
release also fixes those. Targeted property-based testing
|
||||||
should now be significantly faster in some cases, but this may
|
should now be significantly faster in some cases, but this may
|
||||||
be at the cost of reduced effectiveness.
|
be at the cost of reduced effectiveness.
|
||||||
- Update to version 5.20.1
|
- Update to version 5.20.1
|
||||||
* This patch updates our formatting to use isort 5. There is no
|
* This patch updates our formatting to use isort 5. There is no
|
||||||
user-visible change.
|
user-visible change.
|
||||||
- Update to version 5.20.0
|
- Update to version 5.20.0
|
||||||
* The basic_indices() strategy can now generate bare indexers in
|
* The basic_indices() strategy can now generate bare indexers in
|
||||||
place of length-one tuples. Thanks to Andrea for this patch!
|
place of length-one tuples. Thanks to Andrea for this patch!
|
||||||
- Update to version 5.19.3
|
- Update to version 5.19.3
|
||||||
* This patch removes an internal use of distutils in order to
|
* This patch removes an internal use of distutils in order to
|
||||||
avoid this setuptools warning for some users.
|
avoid this setuptools warning for some users.
|
||||||
- Update to version 5.19.2
|
- Update to version 5.19.2
|
||||||
* This patch contains a small internal refactoring with no
|
* This patch contains a small internal refactoring with no
|
||||||
user-visible impact.
|
user-visible impact.
|
||||||
Thanks to Andrea for writing this at the SciPy 2020 Sprints!
|
Thanks to Andrea for writing this at the SciPy 2020 Sprints!
|
||||||
- Update to version 5.19.1
|
- Update to version 5.19.1
|
||||||
* This release slightly improves shrinking behaviour. This should
|
* This release slightly improves shrinking behaviour. This should
|
||||||
mainly only impact stateful tests, but may have some minor
|
mainly only impact stateful tests, but may have some minor
|
||||||
positive impact on shrinking collections (lists, sets, etc).
|
positive impact on shrinking collections (lists, sets, etc).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
@ -1727,7 +1893,7 @@ Thu Jun 6 09:01:21 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
|||||||
|
|
||||||
- update to 4.24.2
|
- update to 4.24.2
|
||||||
* Deprecation messages for functions in hypothesis.extra.django.models
|
* Deprecation messages for functions in hypothesis.extra.django.models
|
||||||
now explicitly name the deprecated function to make it easier to track down usages.
|
now explicitly name the deprecated function to make it easier to track down usages.
|
||||||
* a spurious bug raised when a @st.composite function was passed a keyword-only argument.
|
* a spurious bug raised when a @st.composite function was passed a keyword-only argument.
|
||||||
* deprecates GenericStateMachine, in favor of RuleBasedStateMachine.
|
* deprecates GenericStateMachine, in favor of RuleBasedStateMachine.
|
||||||
* This patch clarifies some error messages when the test function signature
|
* This patch clarifies some error messages when the test function signature
|
||||||
@ -2710,7 +2876,7 @@ update to version 3.45.3
|
|||||||
* Update pygithub from 1.35 to 1.36
|
* Update pygithub from 1.35 to 1.36
|
||||||
- Use pythonhosted.org sdist for Source
|
- Use pythonhosted.org sdist for Source
|
||||||
- Comment BuildRequires for tests. Tests in %check section are
|
- Comment BuildRequires for tests. Tests in %check section are
|
||||||
currently disabled
|
currently disabled
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 17 15:46:40 UTC 2018 - tchvatal@suse.com
|
Wed Jan 17 15:46:40 UTC 2018 - tchvatal@suse.com
|
||||||
@ -2887,7 +3053,7 @@ Sun Dec 17 01:26:12 UTC 2017 - arun@gmx.de
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 15 08:55:52 UTC 2017 - ecsos@opensuse.org
|
Fri Dec 15 08:55:52 UTC 2017 - ecsos@opensuse.org
|
||||||
|
|
||||||
- Add patch python-hypothesis-build.patch
|
- Add patch python-hypothesis-build.patch
|
||||||
to fix Factory build error
|
to fix Factory build error
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
@ -3273,60 +3439,60 @@ Mon May 9 17:57:36 UTC 2016 - toddrme2178@gmail.com
|
|||||||
storage directory (usually in home). This fixes that.
|
storage directory (usually in home). This fixes that.
|
||||||
- Update to 3.1.2
|
- Update to 3.1.2
|
||||||
+ Single bug fix release:
|
+ Single bug fix release:
|
||||||
* Anything which used a text() or characters() strategy was broken on
|
* Anything which used a text() or characters() strategy was broken on
|
||||||
Windows and I hadn’t updated appveyor to use the new repository location
|
Windows and I hadn’t updated appveyor to use the new repository location
|
||||||
so I didn’t notice. This is now fixed and windows support should work
|
so I didn’t notice. This is now fixed and windows support should work
|
||||||
correctly.
|
correctly.
|
||||||
- Update to 3.1.1
|
- Update to 3.1.1
|
||||||
+ Minor bug fix release.
|
+ Minor bug fix release.
|
||||||
* Fix concurrency issue when running tests that use text() from multiple
|
* Fix concurrency issue when running tests that use text() from multiple
|
||||||
processes at once (Bug #302, thanks to Alex Chan).
|
processes at once (Bug #302, thanks to Alex Chan).
|
||||||
* Improve performance of code using lists with max_size (thanks to Cristi
|
* Improve performance of code using lists with max_size (thanks to Cristi
|
||||||
Cobzarenco).
|
Cobzarenco).
|
||||||
* Fix install on Python 2 with ancient versions of pip so that it installs
|
* Fix install on Python 2 with ancient versions of pip so that it installs
|
||||||
the enum34 backport (thanks to Donald Stufft for telling me how to do
|
the enum34 backport (thanks to Donald Stufft for telling me how to do
|
||||||
this).
|
this).
|
||||||
* Remove duplicated __all__ exports from hypothesis.strategies (thanks to
|
* Remove duplicated __all__ exports from hypothesis.strategies (thanks to
|
||||||
Piët Delport).
|
Piët Delport).
|
||||||
* Update headers to point to new repository location.
|
* Update headers to point to new repository location.
|
||||||
* Allow use of strategies that can’t be used in find() (e.g. choices) in
|
* Allow use of strategies that can’t be used in find() (e.g. choices) in
|
||||||
stateful testing.
|
stateful testing.
|
||||||
- Update to 3.1.0
|
- Update to 3.1.0
|
||||||
* Add a ‘nothing’ strategy that never successfully generates values.
|
* Add a ‘nothing’ strategy that never successfully generates values.
|
||||||
* sampled_from() and one_of() can both now be called with an empty argument
|
* sampled_from() and one_of() can both now be called with an empty argument
|
||||||
list, in which case they also never generate any values.
|
list, in which case they also never generate any values.
|
||||||
* one_of may now be called with a single argument that is a collection of
|
* one_of may now be called with a single argument that is a collection of
|
||||||
strategies as well as as varargs.
|
strategies as well as as varargs.
|
||||||
* Add a ‘runner’ strategy which returns the instance of the current test
|
* Add a ‘runner’ strategy which returns the instance of the current test
|
||||||
object if there is one.
|
object if there is one.
|
||||||
* ‘Bundle’ for RuleBasedStateMachine is now a normal(ish) strategy and can be
|
* ‘Bundle’ for RuleBasedStateMachine is now a normal(ish) strategy and can be
|
||||||
used as such.
|
used as such.
|
||||||
* Tests using RuleBasedStateMachine should now shrink significantly better.
|
* Tests using RuleBasedStateMachine should now shrink significantly better.
|
||||||
* Hypothesis now uses a pretty-printing library internally, compatible with
|
* Hypothesis now uses a pretty-printing library internally, compatible with
|
||||||
IPython’s pretty printing protocol (actually using the same code). This may
|
IPython’s pretty printing protocol (actually using the same code). This may
|
||||||
improve the quality of output in some cases.
|
improve the quality of output in some cases.
|
||||||
* As a ‘phases’ setting that allows more fine grained control over which
|
* As a ‘phases’ setting that allows more fine grained control over which
|
||||||
parts of the process Hypothesis runs
|
parts of the process Hypothesis runs
|
||||||
* Add a suppress_health_check setting which allows you to turn off specific
|
* Add a suppress_health_check setting which allows you to turn off specific
|
||||||
health checks in a fine grained manner.
|
health checks in a fine grained manner.
|
||||||
* Fix a bug where lists of non fixed size would always draw one more element
|
* Fix a bug where lists of non fixed size would always draw one more element
|
||||||
than they included. This mostly didn’t matter, but if would cause problems with
|
than they included. This mostly didn’t matter, but if would cause problems with
|
||||||
empty strategies or ones with side effects.
|
empty strategies or ones with side effects.
|
||||||
* Add a mechanism to the Django model generator to allow you to explicitly
|
* Add a mechanism to the Django model generator to allow you to explicitly
|
||||||
request the default value (thanks to Jeremy Thurgood for this one).
|
request the default value (thanks to Jeremy Thurgood for this one).
|
||||||
- Update to 3.0.5
|
- Update to 3.0.5
|
||||||
* Fix a bug where Hypothesis would now error on py.test development versions.
|
* Fix a bug where Hypothesis would now error on py.test development versions.
|
||||||
- Update to 3.0.4
|
- Update to 3.0.4
|
||||||
* Fix a bug where Hypothesis would error when running on Python 2.7.3 or
|
* Fix a bug where Hypothesis would error when running on Python 2.7.3 or
|
||||||
earlier because it was trying to pass a bytearray object to struct.unpack
|
earlier because it was trying to pass a bytearray object to struct.unpack
|
||||||
(which is only supported since 2.7.4).
|
(which is only supported since 2.7.4).
|
||||||
- Update to 3.0.3
|
- Update to 3.0.3
|
||||||
* Fix version parsing of py.test to work with py.test release candidates
|
* Fix version parsing of py.test to work with py.test release candidates
|
||||||
* More general handling of the health check problem where things could fail
|
* More general handling of the health check problem where things could fail
|
||||||
because of a cache miss - now one “free” example is generated before the
|
because of a cache miss - now one “free” example is generated before the
|
||||||
start of the health check run.
|
start of the health check run.
|
||||||
- Update to 3.0.2
|
- Update to 3.0.2
|
||||||
* Under certain circumstances, strategies involving text() buried inside some
|
* Under certain circumstances, strategies involving text() buried inside some
|
||||||
other strategy (e.g. text().filter(...) or recursive(text(), ...)) would
|
other strategy (e.g. text().filter(...) or recursive(text(), ...)) would
|
||||||
cause a test to fail its health checks the first time it ran. This was
|
cause a test to fail its health checks the first time it ran. This was
|
||||||
caused by having to compute some related data and cache it to disk. On
|
caused by having to compute some related data and cache it to disk. On
|
||||||
@ -3335,180 +3501,180 @@ Mon May 9 17:57:36 UTC 2016 - toddrme2178@gmail.com
|
|||||||
is now fixed for all the known cases, although there could be others
|
is now fixed for all the known cases, although there could be others
|
||||||
lurking.
|
lurking.
|
||||||
- Update to 3.0.1
|
- Update to 3.0.1
|
||||||
* Fix a case where it was possible to trigger an “Unreachable” assertion when
|
* Fix a case where it was possible to trigger an “Unreachable” assertion when
|
||||||
running certain flaky stateful tests.
|
running certain flaky stateful tests.
|
||||||
* Improve shrinking of large stateful tests by eliminating a case where it
|
* Improve shrinking of large stateful tests by eliminating a case where it
|
||||||
was hard to delete early steps.
|
was hard to delete early steps.
|
||||||
* Improve efficiency of drawing binary(min_size=n, max_size=n) significantly
|
* Improve efficiency of drawing binary(min_size=n, max_size=n) significantly
|
||||||
by provide a custom implementation for fixed size blocks that can bypass a
|
by provide a custom implementation for fixed size blocks that can bypass a
|
||||||
lot of machinery.
|
lot of machinery.
|
||||||
* Set default home directory based on the current working directory at the
|
* Set default home directory based on the current working directory at the
|
||||||
point Hypothesis is imported, not whenever the function first happens to be
|
point Hypothesis is imported, not whenever the function first happens to be
|
||||||
called.
|
called.
|
||||||
- Update to 3.0.0
|
- Update to 3.0.0
|
||||||
+ Externally this looks like a very small release. It has one small breaking
|
+ Externally this looks like a very small release. It has one small breaking
|
||||||
change that probably doesn’t affect anyone at all (some behaviour that
|
change that probably doesn’t affect anyone at all (some behaviour that
|
||||||
never really worked correctly is now outright forbidden) but necessitated a
|
never really worked correctly is now outright forbidden) but necessitated a
|
||||||
major version bump and one visible new feature.
|
major version bump and one visible new feature.
|
||||||
Internally this is a complete rewrite. Almost nothing other than the
|
Internally this is a complete rewrite. Almost nothing other than the
|
||||||
public API is the same.
|
public API is the same.
|
||||||
+ New features:
|
+ New features:
|
||||||
* Addition of data() strategy which allows you to draw arbitrary data
|
* Addition of data() strategy which allows you to draw arbitrary data
|
||||||
interactively within the test.
|
interactively within the test.
|
||||||
* New “exploded” database format which allows you to more easily check the
|
* New “exploded” database format which allows you to more easily check the
|
||||||
example database into a source repository while supporting merging.
|
example database into a source repository while supporting merging.
|
||||||
* Better management of how examples are saved in the database.
|
* Better management of how examples are saved in the database.
|
||||||
* Health checks will now raise as errors when they fail. It was too easy to
|
* Health checks will now raise as errors when they fail. It was too easy to
|
||||||
have the warnings be swallowed entirely.
|
have the warnings be swallowed entirely.
|
||||||
+ New limitations:
|
+ New limitations:
|
||||||
* choices and streaming strategies may no longer be used with find().
|
* choices and streaming strategies may no longer be used with find().
|
||||||
Neither may data() (this is the change that necessitated a major version
|
Neither may data() (this is the change that necessitated a major version
|
||||||
bump).
|
bump).
|
||||||
+ Feature removal:
|
+ Feature removal:
|
||||||
* The ForkingTestCase executor has gone away. It may return in some more
|
* The ForkingTestCase executor has gone away. It may return in some more
|
||||||
working form at a later date.
|
working form at a later date.
|
||||||
+ Performance improvements:
|
+ Performance improvements:
|
||||||
* A new model which allows flatmap, composite strategies and stateful
|
* A new model which allows flatmap, composite strategies and stateful
|
||||||
testing to perform much better. They should also be more reliable.
|
testing to perform much better. They should also be more reliable.
|
||||||
* Filtering may in some circumstances have improved significantly. This
|
* Filtering may in some circumstances have improved significantly. This
|
||||||
will help especially in cases where you have lots of values with
|
will help especially in cases where you have lots of values with
|
||||||
individual filters on them, such as lists(x.filter(...)).
|
individual filters on them, such as lists(x.filter(...)).
|
||||||
* Modest performance improvements to the general test runner by avoiding
|
* Modest performance improvements to the general test runner by avoiding
|
||||||
expensive operations
|
expensive operations
|
||||||
* In general your tests should have got faster. If they’ve instead got
|
* In general your tests should have got faster. If they’ve instead got
|
||||||
significantly slower, I’m interested in hearing about it.
|
significantly slower, I’m interested in hearing about it.
|
||||||
+ Data distribution:
|
+ Data distribution:
|
||||||
* The data distribution should have changed significantly. This may uncover
|
* The data distribution should have changed significantly. This may uncover
|
||||||
bugs the previous version missed. It may also miss bugs the previous
|
bugs the previous version missed. It may also miss bugs the previous
|
||||||
version could have uncovered. Hypothesis is now producing less strongly
|
version could have uncovered. Hypothesis is now producing less strongly
|
||||||
correlated data than it used to, but the correlations are extended over
|
correlated data than it used to, but the correlations are extended over
|
||||||
more of the structure.
|
more of the structure.
|
||||||
+ Shrinking:
|
+ Shrinking:
|
||||||
* Shrinking quality should have improved. In particular Hypothesis can now
|
* Shrinking quality should have improved. In particular Hypothesis can now
|
||||||
perform simultaneous shrinking of separate examples within a single test
|
perform simultaneous shrinking of separate examples within a single test
|
||||||
(previously it was only able to do this for elements of a single
|
(previously it was only able to do this for elements of a single
|
||||||
collection).
|
collection).
|
||||||
In some cases performance will have improved, in some cases it will have
|
In some cases performance will have improved, in some cases it will have
|
||||||
got worse but generally shouldn’t have by much.
|
got worse but generally shouldn’t have by much.
|
||||||
- Update to 2.0.0
|
- Update to 2.0.0
|
||||||
+ This release cleans up all of the legacy that accrued in the course of
|
+ This release cleans up all of the legacy that accrued in the course of
|
||||||
Hypothesis 1.0. These are mostly things that were emitting deprecation
|
Hypothesis 1.0. These are mostly things that were emitting deprecation
|
||||||
warnings in 1.19.0, but there were a few additional changes.
|
warnings in 1.19.0, but there were a few additional changes.
|
||||||
In particular:
|
In particular:
|
||||||
* non-strategy values will no longer be converted to strategies when used
|
* non-strategy values will no longer be converted to strategies when used
|
||||||
in given or find.
|
in given or find.
|
||||||
* FailedHealthCheck is now an error and not a warning.
|
* FailedHealthCheck is now an error and not a warning.
|
||||||
* Handling of non-ascii reprs in user types have been simplified by using
|
* Handling of non-ascii reprs in user types have been simplified by using
|
||||||
raw strings in more places in Python 2.
|
raw strings in more places in Python 2.
|
||||||
* given no longer allows mixing positional and keyword arguments.
|
* given no longer allows mixing positional and keyword arguments.
|
||||||
* given no longer works with functions with defaults.
|
* given no longer works with functions with defaults.
|
||||||
* given no longer turns provided arguments into defaults - they will not
|
* given no longer turns provided arguments into defaults - they will not
|
||||||
appear in the argspec at all.
|
appear in the argspec at all.
|
||||||
* the basic() strategy no longer exists.
|
* the basic() strategy no longer exists.
|
||||||
* the n_ary_tree strategy no longer exists.
|
* the n_ary_tree strategy no longer exists.
|
||||||
* the average_list_length setting no longer exists. Note: If you’re using
|
* the average_list_length setting no longer exists. Note: If you’re using
|
||||||
using recursive() this will cause you a significant slow down. You should
|
using recursive() this will cause you a significant slow down. You should
|
||||||
pass explicit average_size parameters to collections in recursive calls.
|
pass explicit average_size parameters to collections in recursive calls.
|
||||||
* @rule can no longer be applied to the same method twice.
|
* @rule can no longer be applied to the same method twice.
|
||||||
* Python 2.6 and 3.3 are no longer officially supported, although in
|
* Python 2.6 and 3.3 are no longer officially supported, although in
|
||||||
practice they still work fine.
|
practice they still work fine.
|
||||||
+ This also includes two non-deprecation changes:
|
+ This also includes two non-deprecation changes:
|
||||||
* given’s keyword arguments no longer have to be the rightmost arguments
|
* given’s keyword arguments no longer have to be the rightmost arguments
|
||||||
and can appear anywhere in the method signature.
|
and can appear anywhere in the method signature.
|
||||||
* The max_shrinks setting would sometimes not have been respected.
|
* The max_shrinks setting would sometimes not have been respected.
|
||||||
- Update to 1.19.0
|
- Update to 1.19.0
|
||||||
+ This release heralds the beginning of a new and terrible age of Hypothesis
|
+ This release heralds the beginning of a new and terrible age of Hypothesis
|
||||||
2.0.
|
2.0.
|
||||||
It’s primary purpose is some final deprecations prior to said release. The
|
It’s primary purpose is some final deprecations prior to said release. The
|
||||||
goal is that if your code emits no warnings under this release then it
|
goal is that if your code emits no warnings under this release then it
|
||||||
will probably run unchanged under Hypothesis 2.0 (there are some caveats
|
will probably run unchanged under Hypothesis 2.0 (there are some caveats
|
||||||
to this: 2.0 will drop support for some Python versions, and if you’re
|
to this: 2.0 will drop support for some Python versions, and if you’re
|
||||||
using internal APIs then as usual that may break without warning).
|
using internal APIs then as usual that may break without warning).
|
||||||
+ It does have two new features:
|
+ It does have two new features:
|
||||||
* New @seed() decorator which allows you to manually seed a test. This may
|
* New @seed() decorator which allows you to manually seed a test. This may
|
||||||
be harmlessly combined with and overrides the derandomize setting.
|
be harmlessly combined with and overrides the derandomize setting.
|
||||||
* settings objects may now be used as a decorator to fix those settings to
|
* settings objects may now be used as a decorator to fix those settings to
|
||||||
a particular @given test.
|
a particular @given test.
|
||||||
+ API changes (old usage still works but is deprecated):
|
+ API changes (old usage still works but is deprecated):
|
||||||
* Settings has been renamed to settings (lower casing) in order to make the
|
* Settings has been renamed to settings (lower casing) in order to make the
|
||||||
decorator usage more natural.
|
decorator usage more natural.
|
||||||
* Functions for the storage directory that were in hypothesis.settings are
|
* Functions for the storage directory that were in hypothesis.settings are
|
||||||
now in a new hypothesis.configuration module.
|
now in a new hypothesis.configuration module.
|
||||||
+ Additional deprecations:
|
+ Additional deprecations:
|
||||||
* the average_list_length setting has been deprecated in favour of being
|
* the average_list_length setting has been deprecated in favour of being
|
||||||
explicit.
|
explicit.
|
||||||
* the basic() strategy has been deprecated as it is impossible to support
|
* the basic() strategy has been deprecated as it is impossible to support
|
||||||
it under a Conjecture based model, which will hopefully be implemented at
|
it under a Conjecture based model, which will hopefully be implemented at
|
||||||
some point in the 2.x series.
|
some point in the 2.x series.
|
||||||
* the n_ary_tree strategy (which was never actually part of the public API)
|
* the n_ary_tree strategy (which was never actually part of the public API)
|
||||||
has been deprecated.
|
has been deprecated.
|
||||||
* Passing settings or random as keyword arguments to given is deprecated
|
* Passing settings or random as keyword arguments to given is deprecated
|
||||||
(use the new functionality instead)
|
(use the new functionality instead)
|
||||||
+ Bug fixes:
|
+ Bug fixes:
|
||||||
* No longer emit PendingDeprecationWarning for __iter__ and StopIteration
|
* No longer emit PendingDeprecationWarning for __iter__ and StopIteration
|
||||||
in streaming() values.
|
in streaming() values.
|
||||||
* When running in health check mode with non strict, don’t print quite so
|
* When running in health check mode with non strict, don’t print quite so
|
||||||
many errors for an exception in reify.
|
many errors for an exception in reify.
|
||||||
* When an assumption made in a test or a filter is flaky, tests will now
|
* When an assumption made in a test or a filter is flaky, tests will now
|
||||||
raise Flaky instead of UnsatisfiedAssumption.
|
raise Flaky instead of UnsatisfiedAssumption.
|
||||||
- Update to 1.18.1
|
- Update to 1.18.1
|
||||||
+ Two behind the scenes changes:
|
+ Two behind the scenes changes:
|
||||||
* Hypothesis will no longer write generated code to the file system. This
|
* Hypothesis will no longer write generated code to the file system. This
|
||||||
will improve performance on some systems (e.g. if you’re using
|
will improve performance on some systems (e.g. if you’re using
|
||||||
PythonAnywhere which is running your code from NFS) and prevent some
|
PythonAnywhere which is running your code from NFS) and prevent some
|
||||||
annoying interactions with auto-restarting systems.
|
annoying interactions with auto-restarting systems.
|
||||||
* Hypothesis will cache the creation of some strategies. This can
|
* Hypothesis will cache the creation of some strategies. This can
|
||||||
significantly improve performance for code that uses flatmap or composite
|
significantly improve performance for code that uses flatmap or composite
|
||||||
and thus has to instantiate strategies a lot.
|
and thus has to instantiate strategies a lot.
|
||||||
- Update to 1.18.0
|
- Update to 1.18.0
|
||||||
+ Features:
|
+ Features:
|
||||||
* Tests and find are now explicitly seeded off the global random module.
|
* Tests and find are now explicitly seeded off the global random module.
|
||||||
This means that if you nest one inside the other you will now get a
|
This means that if you nest one inside the other you will now get a
|
||||||
health check error. It also means that you can control global
|
health check error. It also means that you can control global
|
||||||
randomization by seeding random.
|
randomization by seeding random.
|
||||||
* There is a new random_module() strategy which seeds the global random
|
* There is a new random_module() strategy which seeds the global random
|
||||||
module for you and handles things so that you don’t get a health check
|
module for you and handles things so that you don’t get a health check
|
||||||
warning if you use it inside your tests.
|
warning if you use it inside your tests.
|
||||||
* floats() now accepts two new arguments: allow_nan and allow_infinity.
|
* floats() now accepts two new arguments: allow_nan and allow_infinity.
|
||||||
These default to the old behaviour, but when set to False will do what
|
These default to the old behaviour, but when set to False will do what
|
||||||
the names suggest.
|
the names suggest.
|
||||||
+ Bug fixes:
|
+ Bug fixes:
|
||||||
* Fix a bug where tests that used text() on Python 3.4+ would not actually
|
* Fix a bug where tests that used text() on Python 3.4+ would not actually
|
||||||
be deterministic even when explicitly seeded or using the derandomize
|
be deterministic even when explicitly seeded or using the derandomize
|
||||||
mode, because generation depended on dictionary iteration order which was
|
mode, because generation depended on dictionary iteration order which was
|
||||||
affected by hash randomization.
|
affected by hash randomization.
|
||||||
* Fix a bug where with complicated strategies the timing of the initial
|
* Fix a bug where with complicated strategies the timing of the initial
|
||||||
health check could affect the seeding of the subsequent test, which would
|
health check could affect the seeding of the subsequent test, which would
|
||||||
also render supposedly deterministic tests non-deterministic in some
|
also render supposedly deterministic tests non-deterministic in some
|
||||||
scenarios.
|
scenarios.
|
||||||
* In some circumstances flatmap() could get confused by two structurally
|
* In some circumstances flatmap() could get confused by two structurally
|
||||||
similar things it could generate and would produce a flaky test where the
|
similar things it could generate and would produce a flaky test where the
|
||||||
first time it produced an error but the second time it produced the other
|
first time it produced an error but the second time it produced the other
|
||||||
value, which was not an error. The same bug was presumably also possible
|
value, which was not an error. The same bug was presumably also possible
|
||||||
in composite().
|
in composite().
|
||||||
* flatmap() and composite() initial generation should now be moderately
|
* flatmap() and composite() initial generation should now be moderately
|
||||||
faster. This will be particularly noticeable when you have many values
|
faster. This will be particularly noticeable when you have many values
|
||||||
drawn from the same strategy in a single run, e.g. constructs like
|
drawn from the same strategy in a single run, e.g. constructs like
|
||||||
lists(s.flatmap(f)). Shrinking performance may have suffered, but this
|
lists(s.flatmap(f)). Shrinking performance may have suffered, but this
|
||||||
didn’t actually produce an interestingly worse result in any of the
|
didn’t actually produce an interestingly worse result in any of the
|
||||||
standard scenarios tested.
|
standard scenarios tested.
|
||||||
- Update to 1.17.1
|
- Update to 1.17.1
|
||||||
* A small bug fix release, which fixes the fact that the ‘note’ function
|
* A small bug fix release, which fixes the fact that the ‘note’ function
|
||||||
could not be used on tests which used the @example decorator to provide
|
could not be used on tests which used the @example decorator to provide
|
||||||
explicit examples.
|
explicit examples.
|
||||||
- Update to 1.17.0
|
- Update to 1.17.0
|
||||||
+ This is actually the same release as 1.16.1, but 1.16.1 has been pulled
|
+ This is actually the same release as 1.16.1, but 1.16.1 has been pulled
|
||||||
because it contains the following additional change that was not intended
|
because it contains the following additional change that was not intended
|
||||||
to be in a patch release (it’s perfectly stable, but is a larger change
|
to be in a patch release (it’s perfectly stable, but is a larger change
|
||||||
that should have required a minor version bump):
|
that should have required a minor version bump):
|
||||||
* Hypothesis will now perform a series of “health checks” as part of
|
* Hypothesis will now perform a series of “health checks” as part of
|
||||||
running your tests. These detect and warn about some common error
|
running your tests. These detect and warn about some common error
|
||||||
conditions that people often run into which wouldn’t necessarily have
|
conditions that people often run into which wouldn’t necessarily have
|
||||||
caued the test to fail but would cause e.g. degraded performance or
|
caued the test to fail but would cause e.g. degraded performance or
|
||||||
confusing results.
|
confusing results.
|
||||||
- Update to 1.16.1
|
- Update to 1.16.1
|
||||||
* A small bugfix release that allows bdists for Hypothesis to be built under
|
* A small bugfix release that allows bdists for Hypothesis to be built under
|
||||||
2.7 - the compat3.py file which had Python 3 syntax wasn’t intended to be
|
2.7 - the compat3.py file which had Python 3 syntax wasn’t intended to be
|
||||||
loaded under Python 2, but when building a bdist it was. In particular
|
loaded under Python 2, but when building a bdist it was. In particular
|
||||||
this would break running setup.py test.
|
this would break running setup.py test.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-hypothesis
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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
|
||||||
@ -16,8 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_with ringdisabled
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
# Without complete tests for SLES to avoid python-pandas requirement
|
||||||
|
%if 0%{?suse_version} <= 1600
|
||||||
|
%bcond_with complete_tests
|
||||||
|
%else
|
||||||
|
%bcond_without complete_tests
|
||||||
|
%endif
|
||||||
|
%bcond_with ringdisabled
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
@ -30,23 +36,18 @@ ExclusiveArch: do_not_build
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} <= 1550
|
|
||||||
%bcond_with complete_tests
|
|
||||||
%else
|
|
||||||
%bcond_without complete_tests
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hypothesis%{psuffix}
|
Name: python-hypothesis%{psuffix}
|
||||||
Version: 6.82.7
|
Version: 6.98.9
|
||||||
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.7}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytz}
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -57,8 +58,10 @@ Requires: python-attrs >= 19.2.0
|
|||||||
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
|
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
|
||||||
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
|
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION requires_extra
|
# SECTION requires_extra
|
||||||
|
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
|
||||||
# consuming packages need to declare these optional dependencies explicitly
|
# consuming packages need to declare these optional dependencies explicitly
|
||||||
Recommends: python-Django >= 3.2
|
Recommends: python-Django >= 3.2
|
||||||
Recommends: python-black >= 19.10
|
Recommends: python-black >= 19.10
|
||||||
@ -73,17 +76,10 @@ Recommends: python-python-dateutil >= 1.4
|
|||||||
Recommends: python-pytz >= 2014.1
|
Recommends: python-pytz >= 2014.1
|
||||||
Recommends: python-redis >= 3.0.0
|
Recommends: python-redis >= 3.0.0
|
||||||
Recommends: python-rich >= 9.0
|
Recommends: python-rich >= 9.0
|
||||||
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module hypothesis = %{version}}
|
BuildRequires: %{python_module hypothesis = %{version}}
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
%if %{with complete_tests}
|
|
||||||
BuildRequires: %{python_module Django >= 3.2}
|
|
||||||
BuildRequires: %{python_module fakeredis}
|
|
||||||
BuildRequires: %{python_module pandas >= 1.1}
|
|
||||||
%endif
|
|
||||||
BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9}
|
BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9}
|
||||||
BuildRequires: %{python_module black >= 19.10}
|
BuildRequires: %{python_module black >= 19.10}
|
||||||
BuildRequires: %{python_module click}
|
BuildRequires: %{python_module click}
|
||||||
@ -97,6 +93,11 @@ BuildRequires: %{python_module pytest >= 4.6}
|
|||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module python-dateutil >= 1.4}
|
BuildRequires: %{python_module python-dateutil >= 1.4}
|
||||||
BuildRequires: %{python_module typing_extensions}
|
BuildRequires: %{python_module typing_extensions}
|
||||||
|
%if %{with complete_tests}
|
||||||
|
BuildRequires: %{python_module Django >= 3.2}
|
||||||
|
BuildRequires: %{python_module fakeredis}
|
||||||
|
BuildRequires: %{python_module pandas >= 1.1}
|
||||||
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -147,11 +148,12 @@ 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
|
||||||
donttest+=" or test_gets_right_dtype_for_empty_indices"
|
donttest+=" or test_gets_right_dtype_for_empty_indices"
|
||||||
donttest+=" or test_has_string_of_max_length"
|
|
||||||
fi
|
fi
|
||||||
# https://github.com/HypothesisWorks/hypothesis/issues/3704
|
# https://github.com/HypothesisWorks/hypothesis/issues/3704
|
||||||
donttest+=" or (test_make_full_patch and covering)"
|
donttest+=" or (test_make_full_patch and covering)"
|
||||||
@ -160,6 +162,8 @@ donttest+=" or test_overflowing_integers_are_deprecated"
|
|||||||
donttest+=" or fails_health_check or slow_tests or on_healthcheck or a_health_check"
|
donttest+=" or fails_health_check or slow_tests or on_healthcheck or a_health_check"
|
||||||
donttest+=" or test_statistics_with_events_and_target"
|
donttest+=" or test_statistics_with_events_and_target"
|
||||||
donttest+=" or test_self_ref_regression"
|
donttest+=" or test_self_ref_regression"
|
||||||
|
# flaky test
|
||||||
|
donttest+=" or test_has_string_of_max_length"
|
||||||
# adapted from pytest.ini in github repo toplevel dir (above hypothesis-python)
|
# adapted from pytest.ini in github repo toplevel dir (above hypothesis-python)
|
||||||
echo '[pytest]
|
echo '[pytest]
|
||||||
addopts=
|
addopts=
|
||||||
@ -171,6 +175,7 @@ addopts=
|
|||||||
--hypothesis-profile=obs
|
--hypothesis-profile=obs
|
||||||
-v
|
-v
|
||||||
-n auto
|
-n auto
|
||||||
|
--durations-min=1.0
|
||||||
xfail_strict = False
|
xfail_strict = False
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
# error <-- disabled for obs packaging
|
# error <-- disabled for obs packaging
|
||||||
@ -208,7 +213,8 @@ export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_ex
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/hypothesis
|
%python_alternative %{_bindir}/hypothesis
|
||||||
%{python_sitelib}/*hypothesis*
|
%{python_sitelib}/hypothesis
|
||||||
|
%{python_sitelib}/_hypothesis*.py
|
||||||
%{python_sitelib}/hypothesis-%{version}.dist-info
|
%{python_sitelib}/hypothesis-%{version}.dist-info
|
||||||
%pycache_only %{python_sitelib}/__pycache__/*hypothesis*
|
%pycache_only %{python_sitelib}/__pycache__/*hypothesis*
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user