14
0

96 Commits

Author SHA256 Message Date
822c7f1ba6 Accepting request 1273194 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1273194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=84
2025-04-30 17:02:22 +00:00
29ec9b946f - Update to 6.127.8
* Fix a type-hinting regression from version 6.125.1, where we would
    no longer guarantee the type of the argument to .filter predicates
  * Improve shrinking behavior for values from text() and binary()
    which contain duplicate elements, like "zzzabc".

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=210
2025-04-28 15:42:18 +00:00
46b7872b30 Accepting request 1250597 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1250597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=83
2025-03-06 13:48:07 +00:00
be5be99774 - Update to 6.127.6
* This patch tweaks the performance of the target phase, avoiding
    aborting some test cases when it would be better to finish
    generating them.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=208
2025-03-06 10:02:15 +00:00
25e6dbe519 Accepting request 1249999 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1249999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=82
2025-03-05 12:39:28 +00:00
5470a198ce - Update to 6.127.5
* Improve shrinking of non-standard NaN float values
  * Update our vendored list of top-level domains, which is used by 
    the provisional domains() strategy.
  * Fix a bug where from_type() would error on certain types 
    involving Protocol

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=206
2025-03-04 09:07:06 +00:00
888d54ecb2 Accepting request 1248638 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=81
2025-02-27 13:49:06 +00:00
74dfac8da0 - Update to 6.172.2:
- Adjust type hints for the pub-sub database implementation in
    version 6.126.0, and remove a remnant debug print in its
    implementation.
- 6.127.1:
  - Improve the clarity of printing counterexamples in stateful
    testing, by avoiding confusing Bundle references with equivalent
    values drawn from a regular strategy.
- 6.127.0:
  - This releases adds support for type aliases created with the type
    statement (new in python 3.12) to from_type() and
    register_type_strategy().
- 6.126.0:
  - The Hypothesis database now supports a pub-sub interface to
    efficiently listen for changes in the database, via .add_listener
    and .remove_listener. While all databases that ship with
    Hypothesis support this interface, implementing it is not required
    for custom database subclasses. Hypothesis will warn when trying
    to listen on a database without support.
  - This feature is currently only used downstream in hypofuzz.
- 6.125.3:
  - Improves sharing of some internal cache behavior.
- 6.125.2:
  - Optimize performance (improves speed by ~5%) and clarify the
    wording in an error message.
- 6.125.1:
  - Fixes a bug since around version 6.124.4 where we might have
    generated -0.0 for st.floats(min_value=0.0), which is unsound.
- 6.125.0:
  - Add 2024.12 to the list of recognized Array API versions in

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=204
2025-02-26 10:50:33 +00:00
87065e839f Accepting request 1226532 from devel:languages:python
- Skip tests matching `test_adds_note_showing_which_strategy`
  (gh#HypothesisWorks/hypothesis#4185).
- Add missing BR: rich.

OBS-URL: https://build.opensuse.org/request/show/1226532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=80
2024-11-27 21:05:22 +00:00
48d959e9b4 - Skip tests matching test_adds_note_showing_which_strategy
(gh#HypothesisWorks/hypothesis#4185).
- Add missing BR: rich.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=202
2024-11-26 13:19:48 +00:00
f743d379ef Accepting request 1224614 from devel:languages:python
- Update to 6.119.1
  - This patch migrates some more internals (around generating
    novel inputs) to the IR layer (issue #3921).
- Update to 6.119.0
  - This release improves Hypothesis’ handling of ExceptionGroup
    - it’s now able to detect marker detections if they’re inside
    a group and attempts to resolve them. Note that this handling
    is still a work in progress and might not handle edge cases
    optimally. Please open issues if you encounter any problems
    or unexpected behavior with it.
- Update to 6.118.9
  - Internal refactorings in preparation for upcoming changes.
- Update to 6.118.8
  - Internal renamings.
- Update to 6.118.7
  - This patch removes some # type: ignore comments following a
    mypy update.
- Update to 6.118.6
  - When Hypothesis replays examples from its test database that
    it knows were previously fully shrunk it will no longer try
    to shrink them again.
  - This should significantly speed up development workflows for
    slow tests, as the shrinking could contribute a significant
    delay when rerunning the tests.
  - In some rare cases this may cause minor reductions in example
    quality. This was considered an acceptable tradeoff for the
    improved test runtime.
- Update to 6.118.5
  - This patch avoids computing some string representations we
    won’t need, giving a small speedup (part of issue #4139).
- Update to 6.118.4
  - This patch migrates the optimisation algorithm for
    targeted property-based testing to our IR layer (issue
    #3921). This should result in moderately different (and
    hopefully improved) exploration behavior in tests which use
    hypothesis.target().
- Update to 6.118.3
  - This patch adds more type hints to internal Hypothesis code.
- Update to 6.118.2
  - This patch migrates the explain phase to our IR layer (issue
    #3921). This should improve both its speed and precision.
- Update to 6.118.1
  - This patch updates some internals around how we determine an
    input is too large to finish generating.
- Update to 6.118.0
  - The urls() strategy no longer generates URLs where the port
    number is 0.
  - This change is motivated by the idea that the generated URLs
    should, at least in theory, be possible to fetch. The port
    number 0 is special; if a server binds to port 0, the kernel
    will allocate an unused, and non-zero, port instead. That
    means that it’s not possible for a server to actually be
    listening on port 0. This motivation is briefly described in
    the documentation for urls().
  - Fixes issue #4157.
  - Thanks to @gmacon for this contribution!
- Update to 6.117.0
  - This changes the behaviour of settings profiles so that
    if you reregister the currently loaded profile it will
    automatically reload it. Previously you would have had to
    load it again.
  - In particular this means that if you register a “ci” profile,
    it will automatically be used when Hypothesis detects you are
    running on CI.
- Update to 6.116.0
  - Hypothesis now detects if it is running on a CI server and
    provides better default settings for running on CI in this
    case.
- Update to 6.115.6
  - This patch changes the priority order of pretty printing
    logic so that a user provided pretty printing method will
    always be used in preference to e.g. printing it like a
    dataclass.
- Update to 6.115.5
  - This patch restores diversity to the outputs of
    from_type(type) (issue #4144).
- Update to 6.115.4
  - This release improves pretty printing of nested classes to
    include the outer class name in their printed representation.
- Update to 6.115.3
  - This patch fixes a regression from version 6.115.2 where
    generating values from integers() with certain values for
    min_value and max_value would error.
- Require numpy >= 2.

OBS-URL: https://build.opensuse.org/request/show/1224614
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=79
2024-11-18 18:57:08 +00:00
6a8a1d1f45 - Require numpy >= 2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=200
2024-11-16 17:28:51 +00:00
e82d270d35 - Update to 6.119.1
- This patch migrates some more internals (around generating
    novel inputs) to the IR layer (issue #3921).
- Update to 6.119.0
  - This release improves Hypothesis’ handling of ExceptionGroup
    - it’s now able to detect marker detections if they’re inside
    a group and attempts to resolve them. Note that this handling
    is still a work in progress and might not handle edge cases
    optimally. Please open issues if you encounter any problems
    or unexpected behavior with it.
- Update to 6.118.9
  - Internal refactorings in preparation for upcoming changes.
- Update to 6.118.8
  - Internal renamings.
- Update to 6.118.7
  - This patch removes some # type: ignore comments following a
    mypy update.
- Update to 6.118.6
  - When Hypothesis replays examples from its test database that
    it knows were previously fully shrunk it will no longer try
    to shrink them again.
  - This should significantly speed up development workflows for
    slow tests, as the shrinking could contribute a significant
    delay when rerunning the tests.
  - In some rare cases this may cause minor reductions in example
    quality. This was considered an acceptable tradeoff for the
    improved test runtime.
- Update to 6.118.5
  - This patch avoids computing some string representations we
    won’t need, giving a small speedup (part of issue #4139).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=199
2024-11-16 16:49:30 +00:00
ae52eb828f Accepting request 1217398 from devel:languages:python
Forwarded request #1217328 from glaubitz

- Update to 6.115.3
    * This patch fixes a regression from :ref:`version 6.115.2 <v6.115.2>` where
      generating values from :func:`~hypothesis.strategies.integers` with certain
      values for ``min_value`` and ``max_value`` would error.
  - from version 6.115.2
    * This release improves integer shrinking by folding the endpoint upweighting
      for :func:`~hypothesis.strategies.integers` into the ``weights`` parameter
      of our IR.
      If you maintain an alternative backend as part of our (for now explicitly
      unstable) :ref:`alternative-backends`, this release changes the type of the
      ``weights`` parameter to ``draw_integer`` and may be a breaking change for you.
  - from version 6.115.1
    * This patch improves the performance of :func:`~hypothesis.strategies.from_type`
      with `pydantic.types.condate
  - from version 6.115.0
    * This improves the formatting of dataclasses and attrs classes when printing
      falsifying examples.
  - from version 6.114.1
    * This patch upgrades remaining type annotations to Python 3.9 syntax.
  - from version 6.114.0
    * This release drops support for Python 3.8, which reached end of life on
      2024-10-07.
  - from version 6.113.0
    * This release adds ``hypothesis.errors.BackendCannotProceed``, an unstable API
      for use by :ref:`alternative-backends`.
  - from version 6.112.5
    * This release fixes a regression where :class:`hypothesis.stateful.Bundle` did
      not work properly with :ref:`flatmap <flatmap>` functionality.
  - from version 6.112.4
    * This patch tweaks the paths in ``@example(...)`` patches, so that

OBS-URL: https://build.opensuse.org/request/show/1217398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=78
2024-10-25 17:19:16 +00:00
105e31b62f - Update to 6.115.3
* This patch fixes a regression from :ref:`version 6.115.2 <v6.115.2>` where
    generating values from :func:`~hypothesis.strategies.integers` with certain
    values for ``min_value`` and ``max_value`` would error.
- from version 6.115.2
  * This release improves integer shrinking by folding the endpoint upweighting
    for :func:`~hypothesis.strategies.integers` into the ``weights`` parameter
    of our IR.
    If you maintain an alternative backend as part of our (for now explicitly
    unstable) :ref:`alternative-backends`, this release changes the type of the
    ``weights`` parameter to ``draw_integer`` and may be a breaking change for you.
- from version 6.115.1
  * This patch improves the performance of :func:`~hypothesis.strategies.from_type`
    with `pydantic.types.condate
- from version 6.115.0
  * This improves the formatting of dataclasses and attrs classes when printing
    falsifying examples.
- from version 6.114.1
  * This patch upgrades remaining type annotations to Python 3.9 syntax.
- from version 6.114.0
  * This release drops support for Python 3.8, which reached end of life on
    2024-10-07.
- from version 6.113.0
  * This release adds ``hypothesis.errors.BackendCannotProceed``, an unstable API
    for use by :ref:`alternative-backends`.
- from version 6.112.5
  * This release fixes a regression where :class:`hypothesis.stateful.Bundle` did
    not work properly with :ref:`flatmap <flatmap>` functionality.
- from version 6.112.4
  * This patch tweaks the paths in ``@example(...)`` patches, so that

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=197
2024-10-23 16:58:01 +00:00
dcef448332 Accepting request 1206400 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1206400
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=77
2024-10-09 20:03:21 +00:00
76ef9e2ad9 - Update to 6.112.2
* removes a now-incorrect internal assertion about numpy’s typing 
    after recent numpy changes
  * fixes an internal error when the __context__ attribute of a raised 
    exception leads to a cycle

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=195
2024-10-08 21:15:17 +00:00
36a1254cc4 Accepting request 1199124 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1199124
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=76
2024-09-09 12:43:21 +00:00
f7b0653032 - Update to 6.112.0
* This release adds support for variable-width bytes in our IR
    layer (issue #3921), which should mean improved performance
    anywhere you use binary(). If you maintain an alternative
    backend as part of our (for now explicitly unstable)
    Alternative backends for Hypothesis, this release changes the
    draw_* interface and may be a breaking change for you.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=193
2024-09-06 07:04:37 +00:00
1a12f01f9a Accepting request 1195137 from home:nkrapp:branches:devel:languages:python
- Update to 6.111.1
  * This patch improves shrinking in cases involving 'slips' from one 
    strategy to another. Highly composite strategies are the most likely 
    to benefit from this change.
  * This patch also reduces the range of :class:`python:datetime.datetime` 
    generated by :func:`~hypothesis.extra.django.from_model` in order to 
    avoid https://code.djangoproject.com/ticket/35683.
- Drop 0001-Revert-Use-tmp_path-in-ghostwriter-test.patch
  * included upstream

OBS-URL: https://build.opensuse.org/request/show/1195137
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=192
2024-08-30 10:46:59 +00:00
26f5c201a1 Accepting request 1191165 from home:mcalabkova:branches:devel:languages:python
- Update to 6.108.5
  * The alphabet= argument to from_regex() now accepts unions of characters() 
    and sampled_from() strategies, in addition to accepting each individually.
  * Improves support for unions of numpy dtypes such as np.float64 | np.complex128 
    in from_type() and arrays()
  * Support for Django 5.0, drop support for end-of-life Django versions (< 4.2).
  * Migrate the shrinker to our new internal representation, called the IR layer.
    This improves the shrinker’s performance in the majority of cases. For example, 
    on the Hypothesis test suite, shrinking is a median of 1.38x faster.
  * The from_dtype() function no longer generates NaT (“not-a-time”) values for the 
    datetime64 or timedelta64 dtypes if passed allow_nan=False
  * Add the experimental and unstable backend setting. See documentation for details.
  * Many more minor changes, see the upstream changelog.
- Add 0001-Revert-Use-tmp_path-in-ghostwriter-tests.patch to fix tests
  * https://github.com/HypothesisWorks/hypothesis/issues/4062

OBS-URL: https://build.opensuse.org/request/show/1191165
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=191
2024-08-02 15:49:41 +00:00
ac0410bcf3 Accepting request 1190234 from devel:languages:python
- Disable complete tests for non-tumbleweed to avoid python-pandas
  requirement

OBS-URL: https://build.opensuse.org/request/show/1190234
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=75
2024-07-30 09:53:48 +00:00
ec21781abf - Disable complete tests for non-tumbleweed to avoid python-pandas
requirement

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=189
2024-07-29 11:17:29 +00:00
6ad4d3784b Accepting request 1158311 from devel:languages:python
- Clean up the SPEC file

OBS-URL: https://build.opensuse.org/request/show/1158311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=74
2024-03-18 15:43:56 +00:00
945b1bb219 Accepting request 1152107 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1152107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=73
2024-02-28 18:45:01 +00:00
54d97a6d05 Accepting request 1141527 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1141527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=72
2024-01-29 21:25:52 +00:00
54263abfa8 Accepting request 1137295 from devel:languages:python
- update to 6.92.2:
  * updates vendored list of top-level domains

OBS-URL: https://build.opensuse.org/request/show/1137295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=71
2024-01-07 20:38:50 +00:00
29dd215142 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
2023-12-28 21:54:39 +00:00
5902cebfdf Accepting request 1121637 from devel:languages:python
- 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])

OBS-URL: https://build.opensuse.org/request/show/1121637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=69
2023-11-02 19:20:47 +00:00
449a9d2187 Accepting request 1118121 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1118121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=68
2023-10-19 20:47:09 +00:00
b8b128b4a5 Accepting request 1108256 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1108256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=67
2023-09-01 12:18:49 +00:00
6b659dc6a8 Accepting request 1105013 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1105013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=66
2023-08-22 06:55:21 +00:00
8f1765f0f7 Accepting request 1087109 from devel:languages:python
- update to 6.75.3:
  * This patch fixes ~hypothesis.strategies.complex_numbers accidentally
    invalidating itself when passed magnitude arguments for 32
    and 64-bit widths, i.e. 16- and 32-bit floats, due to not
    internally down-casting numbers

- Update to 6.75.2:
  * Improved the documentation regarding how to use
    GitHubArtifactDatabase and fixed a bug that occurred in
    repositories with no existing artifacts.
- 6.75.1
  * hypothesis.errors will now raise AttributeError when attempting to
    access an undefined attribute, rather than returning None.
- 6.75.0
  * Sick of adding @example()s by hand? Our Pytest plugin now writes
    .patch files to insert them for you, making this workflow easier
    than ever before.
  * Note that you’ll need LibCST (via hypothesis[codemods]), and that
    @example().via() requires PEP 614 (Python 3.9 or later).
- 6.74.1
  * This patch provides better error messages for datetime- and
    timedelta-related invalid dtypes in our Pandas extra (issue
    #3518).
- 6.74.0
  * This release adds support for nullable pandas dtypes in pandas()
    (issue #3604).
- 6.73.1
  * This patch updates our minimum Numpy version to 1.16, and restores
    compatibility with versions before 1.20, which were broken by a
    mistake in Hypothesis 6.72.4 (issue #3625).

OBS-URL: https://build.opensuse.org/request/show/1087109
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=65
2023-05-19 09:55:16 +00:00
c9ea6ca60a Accepting request 1081890 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=64
2023-04-22 20:00:30 +00:00
df2f4137d0 Accepting request 1066416 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1066416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=63
2023-02-19 17:18:30 +00:00
5ec0a77f78 Accepting request 1056961 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1056961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=62
2023-01-10 13:58:58 +00:00
b91381a466 Accepting request 1043052 from devel:languages:python
- Update to 6.61.0
  - This release improves our treatment of database keys, which based on (among
    other things) the source code of your test function.  We now post-process
    this source to ignore decorators, comments, trailing whitespace, and blank
    lines - so that you can add :obj:`@example() <hypothesis.example>`\ s or
    make some small no-op edits to your code without preventing replay of any
    known failing or covering examples.
- 6.60.1 - 2022-12-11
  - This patch updates our vendored `list of top-level domains
    <https://www.iana.org/domains/root/db>`__,
    which is used by the provisional :func:`~hypothesis.provisional.domains`
    strategy.
- 6.60.0 - 2022-12-04
  - This release improves Hypothesis' ability to resolve forward references in
    type annotations. It fixes a bug that prevented
    :func:`~hypothesis.strategies.builds` from being used with `pydantic models
    that possess updated forward references
    <https://pydantic-docs.helpmanual.io/usage/postponed_annotations/>`__. See
    :issue:`3519`.
- 6.59.0 - 2022-12-02
  - The :obj:`@example(...) <hypothesis.example>` decorator now has a ``.via()``
    method, which future tools will use to track automatically-added covering
    examples (:issue:`3506`).
- 6.58.2 - 2022-11-30
  - This patch updates our vendored `list of top-level domains
    <https://www.iana.org/domains/root/db>`__, which is used by the provisional
    :func:`~hypothesis.provisional.domains` strategy.
- 6.58.1 - 2022-11-26
  - This patch shifts ``hypothesis[lark]`` from depending on the old
    :pypi:`lark-parser` package to the new :pypi:`lark` package.  There are no
    code changes in Hypothesis, it's just that Lark got a new name on PyPI for
    version 1.0 onwards.
- 6.58.0 - 2022-11-19
  - :func:`~hypothesis.register_random` has used :mod:`weakref` since
    :ref:`v6.27.1`, allowing the :class:`~random.Random`-compatible objects to
    be garbage-collected when there are no other references remaining in order
    to avoid memory leaks.  We now raise an error or emit a warning when this
    seems likely to happen immediately.
  - The type annotation of :func:`~hypothesis.register_random` was also widened
    so that structural subtypes of :class:`~random.Random` are accepted by
    static typecheckers.
- 6.57.1 - 2022-11-14
  - This patch updates some internal type annotations and fixes a formatting
    bug in the :obj:`~hypothesis.Phase.explain` phase reporting.
- 6.57.0 - 2022-11-14
  - Hypothesis now raises an error if you passed a strategy as the
    ``alphabet=`` argument to :func:`~hypothesis.strategies.text`, and it
    generated something which was not a length-one string.  This has never been
    supported, we're just adding explicit validation to catch cases like `this
    StackOverflow question <https://stackoverflow.com/a/74336909/9297601>`__.
- 6.56.4 - 2022-10-28
  - This patch updates some docs, and depends on :pypi:`exceptiongroup` 1.0.0
    final to avoid a bug in the previous version.
- 6.56.3 - 2022-10-17
  - This patch teaches :func:`~hypothesis.strategies.text` to rewrite a few
    more filter predicates (:issue:`3134`).  You're unlikely to notice any
    change.

OBS-URL: https://build.opensuse.org/request/show/1043052
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=61
2023-01-06 16:04:37 +00:00
9e17e45726 Accepting request 1011261 from devel:languages:python
- update to 6.56.2:
  * This patch updates our vendored `list of top-level domains
    <https://www.iana.org/domains/root/db>`__, which is used by the provisional
    :func:`~hypothesis.provisional.domains` strategy, and fixes some incorrect
    examples in the docs for
    :func:`~hypothesis.extra.numpy.mutually_broadcastable_shapes`.

OBS-URL: https://build.opensuse.org/request/show/1011261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=60
2022-10-18 10:44:13 +00:00
d3204621ea Accepting request 1009218 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1009218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=59
2022-10-12 16:22:53 +00:00
4c036cfea8 Accepting request 982569 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/982569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=58
2022-06-17 19:18:17 +00:00
10af2cfb71 Accepting request 963099 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/963099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=57
2022-03-22 18:36:10 +00:00
14a6b1cfdf Accepting request 947747 from devel:languages:python
- Correct exclusion of test_recursion_error_is_not_flaky for 3.10.

OBS-URL: https://build.opensuse.org/request/show/947747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=56
2022-01-23 11:15:02 +00:00
b9a8e1e5cf 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
2022-01-19 23:12:08 +00:00
1187142ce4 Accepting request 940474 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/940474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=54
2021-12-16 20:19:32 +00:00
fa11581e41 Accepting request 904587 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/904587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=53
2021-07-10 20:54:03 +00:00
Richard Brown
ef1c8070bd Accepting request 881273 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/881273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=52
2021-04-01 12:15:53 +00:00
1d7ce7e0cc Accepting request 849393 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/849393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=51
2020-11-21 11:41:17 +00:00
47e38dcd39 Accepting request 847790 from devel:languages:python
- update to 5.41.2:
  * long list of changes and improvements, see
  https://hypothesis.readthedocs.io/en/latest/changes.html#v5-41-2

OBS-URL: https://build.opensuse.org/request/show/847790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=50
2020-11-12 21:33:15 +00:00
00f79c468f Accepting request 826724 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/826724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=49
2020-08-25 10:36:13 +00:00
cc190c1b51 Accepting request 818623 from devel:languages:python
- Update to version 5.19.0:
  * This release improves the randoms() strategy by adding support
    for Random instances where Hypothesis generates the random
    values rather than having them be “truly” random.
- Update to version 5.18.3:
  * This patch adds some internal functions to support a new feature
    we’re working on. There is no user-visible change… yet.
- Update to version 5.18.2:
  * This patch improves our docs for the derandomize setting.
- Update to version 5.18.1:
  * This release consists of some internal refactoring to the shrinker
    in preparation for future work. It has no user visible impact.
- Update to version 5.18.0:
  * This release teaches Hypothesis to shorten tracebacks for explicit
    examples, as we already do for generated examples, so that you can
    focus on your code rather than ours.
  * If you have multiple failing explicit examples, they will now all
    be reported. To report only the first failure, you can use the
    report_multiple_bugs=False setting as for generated examples.
- Update to version 5.17.0:
  * This patch adds strategy inference for the Literal, NewType, Type,
    DefaultDict, and TypedDict types from the typing_extensions
    backport on PyPI.
- Update to version 5.16.3:
  * This patch precomputes some of the setup logic for our
    experimental external fuzzer integration and sets deadline=None
    in fuzzing mode, saving around 150us on each iteration.
  * This is around two-thirds the runtime to fuzz an empty test with
    @given(st.none()), and nice to have even as a much smaller
    fraction of the runtime for non-trivial tests.

OBS-URL: https://build.opensuse.org/request/show/818623
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=48
2020-07-06 14:19:03 +00:00
d27fd6bd58 Accepting request 808025 from devel:languages:python
- Add failing-test_array_values_are_unique_high_collision.patch
  to avoid failing test on i586 (gh#HypothesisWorks/hypothesis#2447)

OBS-URL: https://build.opensuse.org/request/show/808025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=47
2020-05-29 19:19:59 +00:00
b3de46ad16 Accepting request 802287 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/802287
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=46
2020-05-11 11:26:15 +00:00
25206f76dc Accepting request 797702 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/797702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=45
2020-05-01 09:04:50 +00:00
a2621d7dbb Accepting request 794613 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/794613
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=44
2020-04-19 19:49:47 +00:00
bb005777ae Accepting request 755169 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/755169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=43
2019-12-11 11:11:11 +00:00
5ac49fd4a2 Accepting request 751830 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/751830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=42
2019-12-07 14:19:15 +00:00
507a90c5c3 Accepting request 743987 from devel:languages:python
- update to version 4.40.2
  * Type hints improved
  * Performance improved
  * Array indexing improved
  * **experimental** support for targeted property-based testing

OBS-URL: https://build.opensuse.org/request/show/743987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=41
2019-11-04 16:10:36 +00:00
b66dacb5f4 Accepting request 725982 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/725982
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=40
2019-08-27 08:11:41 +00:00
52c103be36 Accepting request 720895 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/720895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=39
2019-08-15 10:23:50 +00:00
408be7c3ee Accepting request 719519 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/719519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=38
2019-07-30 11:06:49 +00:00
2bf6964a0f Accepting request 708933 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/708933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=37
2019-06-13 20:38:29 +00:00
66c1f49494 Accepting request 702824 from devel:languages:python
- update to 4.23.4
  * Adds a recipe to the docstring of :func:`~hypothesis.strategies.from_type`
  * implements the :func:`~hypothesis.strategies.slices` strategy,
     to generate slices of a length-size sequence.

OBS-URL: https://build.opensuse.org/request/show/702824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=36
2019-05-17 21:37:18 +00:00
8550db1947 Accepting request 701259 from devel:languages:python
- Remove pandas dependency to make ring1 more happy
- Update to 4.22.0:
  * Various small tweaks only

- More love for the tests to make sure we execute and run them
  + skip/remove the obvious failures that are irelevant

- Update to 4.18.2:
  * This patch makes Hypothesis compatible with the Python 3.8 alpha
  * This release adds the functions() strategy
  * This release refactors stateful rule selection
  * This patch allows Hypothesis to try a few more examples after finding the first bug
  * This release adds the strategy broadcastable_shapes()
- Make sure the tests are executed (and fail at the moment, needs
  bit more love)

OBS-URL: https://build.opensuse.org/request/show/701259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=35
2019-05-07 21:13:01 +00:00
5e6cb52a62 Accepting request 694207 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/694207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=34
2019-04-19 16:37:01 +00:00
e23fa8b036 Accepting request 690686 from devel:languages:python
- Add changes.rst to %doc
- Update to v4.13.0
 * for changes please see doc/changes.rst or
   https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/docs/changes.rst
- update to 4.11.7
 * for changes please see doc/changes.rst or
 - https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/docs/changes.rst

OBS-URL: https://build.opensuse.org/request/show/690686
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=33
2019-04-04 10:05:18 +00:00
c05880cbe2 Accepting request 662305 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/662305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=32
2019-01-08 11:16:33 +00:00
c4b0f0b913 Accepting request 656754 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/656754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=31
2018-12-14 19:47:53 +00:00
a4e53d760b Accepting request 646018 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/646018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=30
2018-11-06 13:00:55 +00:00
df2c2169a9 Accepting request 641951 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/641951
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=29
2018-10-18 13:29:17 +00:00
f11541762c Accepting request 637683 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/637683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=28
2018-10-01 07:06:53 +00:00
d6cade422b Accepting request 633460 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/633460
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=27
2018-09-07 13:35:03 +00:00
5130904ef2 Accepting request 632628 from devel:languages:python
- Drop the pytest-xdist dependency to build on Leap 42.3, as it
  does not run tests it was quite pointless

OBS-URL: https://build.opensuse.org/request/show/632628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=26
2018-09-04 20:49:26 +00:00
8f7a6e6200 Accepting request 624649 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/624649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=25
2018-07-27 08:52:07 +00:00
990b82da1b Accepting request 624329 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/624329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=24
2018-07-21 08:09:37 +00:00
3602f5ae0b Accepting request 622327 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/622327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=23
2018-07-13 08:17:53 +00:00
4db38463db Accepting request 620082 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/620082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=22
2018-07-02 21:29:03 +00:00
33be74ece5 Accepting request 618930 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/618930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=21
2018-06-27 08:17:19 +00:00
fc64898c84 Accepting request 615037 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/615037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=20
2018-06-15 12:32:41 +00:00
79168d8ffa Accepting request 613244 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/613244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=19
2018-06-05 10:49:00 +00:00
63b35f0c13 Accepting request 583699 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/583699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=18
2018-03-09 09:34:27 +00:00
6c6f138d8a Accepting request 581961 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/581961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=17
2018-03-05 12:34:52 +00:00
f5e4fc3128 Accepting request 579946 from devel:languages:python
update to version 3.45.3
  * Bump version to 3.44.26 and update changelog
  * That doesn't need to be conditional in the shrinker
  * Add release notes
  * Wrong backticks
  * Response to review
  * Switch over to an adaptive greedy algorithm
  * Clarify dependencies on enum34, Django
  * don't try to assign to *args
  * Don't split expression over multiple lines needlessly
  * define labels in top-level constants since they're expensive-ish to compute
  * Change how we track whether a block is shrinking
  * Add tests for zig zagging behaviour
  * Update isort from 4.2.15 to 4.3.2
  * Add a section about deferring errors
  * specify target and args for build() together as *target_and_args
  * Fix typo
  * Bump version to 3.44.17 and update changelog
  * Add flaky annotation to test_can_generate_interval_endpoints
  * Add notion of labels to strategies
  * Bump version to 3.44.25 and update changelog
  * Update pytest from 3.3.2 to 3.4.0
  * address more code review comments
  * Bump version to 3.44.19 and update changelog
  * Remove just and of course
  * Bump version to 3.45.2 and update changelog
  * don't refer to hypothesis_internal_target from bad implementation
  * Add a release note for the source changes
  * Add quality tests on Python 2
  * Update safety from 1.6.1 to 1.7.0

OBS-URL: https://build.opensuse.org/request/show/579946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=16
2018-02-26 22:23:44 +00:00
15f4305cea Accepting request 566981 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/566981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=15
2018-01-19 10:49:09 +00:00
463bb31589 Accepting request 562296 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/562296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=14
2018-01-09 13:36:28 +00:00
8be0e6603f Accepting request 554735 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/554735
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=13
2017-12-08 20:47:50 +00:00
59bba06ee8 Accepting request 545893 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/545893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=12
2017-11-30 11:38:19 +00:00
958543a771 Accepting request 542943 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/542943
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=11
2017-11-21 14:28:39 +00:00
5d34ab0037 Accepting request 541883 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/541883
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=10
2017-11-17 09:37:15 +00:00
9ff7102136 Accepting request 539900 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/539900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=9
2017-11-10 13:38:18 +00:00
fbba7c8f54 Accepting request 534391 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/534391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=8
2017-10-18 08:44:28 +00:00
4a4a1357cf Accepting request 532615 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/532615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=7
2017-10-10 09:38:16 +00:00
66168d7c87 Accepting request 509186 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/509186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=6
2017-07-21 20:37:09 +00:00
b4c1f83475 Accepting request 507233 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/507233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=5
2017-07-04 09:56:27 +00:00
1dde5aadb9 Accepting request 460260 from devel:languages:python
first batch of singlespec packages

OBS-URL: https://build.opensuse.org/request/show/460260
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=4
2017-02-27 17:35:21 +00:00
b75d28c7dc Accepting request 395080 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/395080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=3
2016-05-19 10:03:39 +00:00
93dcf4e04a Accepting request 349123 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/349123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=2
2015-12-18 20:50:21 +00:00
5 changed files with 448 additions and 13 deletions

View File

@@ -2,11 +2,11 @@
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/HypothesisWorks/hypothesis.git</param>
<param name="scm">git</param>
<param name="revision">hypothesis-python-6.98.9</param>
<param name="revision">hypothesis-python-6.127.8</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">hypothesis-python-(.*)</param>
<param name="subdir">hypothesis-python</param>
<param name="filename">hypothesis-python</param>
<param name="subdir">hypothesis-python</param>
<param name="filename">hypothesis-python</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>

BIN
hypothesis-python-6.127.8.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
hypothesis-python-6.98.9.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,3 +1,424 @@
-------------------------------------------------------------------
Thu Mar 6 10:05:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 6.127.8
* Fix a type-hinting regression from version 6.125.1, where we would
no longer guarantee the type of the argument to .filter predicates
* Improve shrinking behavior for values from text() and binary()
which contain duplicate elements, like "zzzabc".
-------------------------------------------------------------------
Wed Mar 5 14:22:04 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 6.127.6
* This patch tweaks the performance of the target phase, avoiding
aborting some test cases when it would be better to finish
generating them.
-------------------------------------------------------------------
Mon Mar 3 11:32:39 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 6.127.5
* Improve shrinking of non-standard NaN float values
* Update our vendored list of top-level domains, which is used by
the provisional domains() strategy.
* Fix a bug where from_type() would error on certain types
involving Protocol
-------------------------------------------------------------------
Wed Feb 26 07:00:42 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 6.127.2:
- Adjust type hints for the pub-sub database implementation in
version 6.126.0, and remove a remnant debug print in its
implementation.
- 6.127.1:
- Improve the clarity of printing counterexamples in stateful
testing, by avoiding confusing Bundle references with equivalent
values drawn from a regular strategy.
- 6.127.0:
- This releases adds support for type aliases created with the type
statement (new in python 3.12) to from_type() and
register_type_strategy().
- 6.126.0:
- The Hypothesis database now supports a pub-sub interface to
efficiently listen for changes in the database, via .add_listener
and .remove_listener. While all databases that ship with
Hypothesis support this interface, implementing it is not required
for custom database subclasses. Hypothesis will warn when trying
to listen on a database without support.
- This feature is currently only used downstream in hypofuzz.
- 6.125.3:
- Improves sharing of some internal cache behavior.
- 6.125.2:
- Optimize performance (improves speed by ~5%) and clarify the
wording in an error message.
- 6.125.1:
- Fixes a bug since around version 6.124.4 where we might have
generated -0.0 for st.floats(min_value=0.0), which is unsound.
- 6.125.0:
- Add 2024.12 to the list of recognized Array API versions in
hypothesis.extra.array_api.
- 6.124.9:
- Registration of experimental Alternative backends for Hypothesis
is now done via
hypothesis.internal.conjecture.providers.AVAILABLE_PROVIDERS
instead of
hypothesis.internal.conjecture.data.AVAILABLE_PROVIDERS.
- 6.124.8:
- Refactor some internals for better type hinting.
- 6.124.7:
- Internal renamings.
- 6.124.6:
- More work on internal type hints.
- 6.124.5:
- Internal refactoring to make some stateful internals easier to access.
- 6.124.4:
- Refactoring of our internal input generation. This shouldnt lead
to any changes in the distribution of test inputs. If you notice
any, please open an issue!
- 6.124.3:
- Some Hypothesis internals now use the number of choices as a
yardstick of input size, rather than the entropy consumed by those
choices. We dont expect this to cause significant behavioral
changes.
- 6.124.2:
- Improves our internal caching logic for test cases.
- 6.124.1:
- fuzz_one_input is now implemented using an alternative backend.
This brings the interpretation of the fuzzer-provided bytestring
closer to the fuzzer mutations, allowing the mutations to work
more reliably. We hope to use this backend functionality to
improve fuzzing integration (see e.g.
https://github.com/google/atheris/issues/20) in the future!
- 6.124.0:
- The Hypothesis example database now uses a new internal format to
store examples. This new format is not compatible with the
previous format, so stored entries will not carry over.
- The database is best thought of as a cache that may be invalidated
at times. Instead of relying on it for correctness, we recommend
using @example to specify explicit examples. When using databases
across environments (such as connecting a GitHubArtifactDatabase
database in CI to your local environment), we recommend using the
same version of Hypothesis for each where possible, for maximum
reproducibility.
- 6.123.17:
- This patch improves certain corner cases for reporting of flaky
errors (issue #4183 and issue #4228).
- 6.123.16:
- Improves an edge case in one of our integer and float shrinking passes.
- 6.123.15:
- Improves one of our shrinking passes for integers which require a
constant relative difference to trigger the bug.
- 6.123.14:
- Avoid realizing symbolic values from Alternative backends for
Hypothesis when verbosity is verbose or higher.
- 6.123.13:
- More internal code refactoring.
- 6.123.12:
- DirectoryBasedExampleDatabase now creates files representing
database entries atomically, avoiding a very brief intermediary
state where a file could be created but not yet written to.
- 6.123.11:
- Internal code refactoring.
- 6.123.10:
- Fixes a bug caused by alternative backends raising
hypothesis.errors.BackendCannotProceed in certain cases.
- 6.123.9:
- Add internal type hints to our pretty printer.
- 6.123.8:
- The shrinker contains a pass aimed at integers which are required
to sum to a value. This patch extends that pass to floats as well.
- 6.123.7:
- Internal type hint additions and refactorings.
- 6.123.6:
- @reproduce_failure() now uses a newer internal interface to
represent failures. As a reminder, this representation is not
intended to be stable across versions or with respect to changes
in the test.
- 6.123.5:
- Internal code refactoring for the typed choice sequence (issue
#3921). May have some neutral effect on shrinking.
- 6.123.4:
- This patch improves shrinking involving long strings or byte
sequences whose value is not relevant to the failure.
- 6.123.3:
- This release further improves shrinking of strategies using
one_of(), allowing the shrinker to more reliably move between
branches of the strategy.
- 6.123.2:
- The shrinker now uses the typed choice sequence (issue #3921) when
ordering failing examples. As a result, Hypothesis may now report
a different minimal failing example for some tests. We expect most
cases to remain unchanged.
- 6.123.1:
- Our pytest plugin now emits a warning if you set Pytests
norecursedirs config option in such a way that the .hypothesis
directory would be searched for tests. This reliably indicates
that youve made a mistake which slows down test collection,
usually assuming that your configuration extends the set of
ignored patterns when it actually replaces them. (issue #4200)
- 6.123.0:
- from_type() can now handle constructors with required
positional-only arguments if they have type annotations.
Previously, we only passed arguments by keyword.
- 6.122.7:
- This patch lays some groundwork for migrating our internal
representation to the typed choice sequence (issue #3921)
- 6.122.6:
- This patch cleans up some internal code around clamping floats.
- 6.122.5:
- This release improves shrinking in some cases, especially for
strategies using one_of(). This will typically improve shrinking
speed and may in some cases improve the end result.
- 6.122.4:
- This patch improves generation performance for the provisional
domains() strategy, including its derivative strategies urls() and
emails().
- 6.122.3:
- This patch improves our error and warning messages.
- 6.122.2:
- This patch updates some outdated external links in our documentation.
- 6.122.1:
- Fix from_type() on collections.abc.Callable returning None.
- 6.122.0:
- This release adds .span_start() and .span_end() methods to our
internal PrimitiveProvider interface, for use by Alternative
backends for Hypothesis.
- 6.121.2:
- This patch updates our autoformatting tools, improving our code
style without any API changes.
- 6.121.1:
- This release brings back the old representation of
hypothesis.stateful.Bundle, reverting most changes of PR #4124.
- 6.121.0:
- This release adds BackgroundWriteDatabase, a new database backend
which defers writes on the wrapped database to a background
thread. This allows for low-overhead writes in
performance-critical environments like fuzz_one_input.
- 6.120.0:
- This release changes our input distribution for low max_examples.
Previously, we capped the size of inputs when generating at least
the first 10 inputs, with the reasoning that early inputs to a
property should be small. However, this meant properties with
max_examples=10 would consistent entirely of small inputs. This
patch removes the hard lower bound so that inputs to these
properties are more representative of the input space.
- When a user requests an interactive input via strategy.example, we
generate and cache a batch of 100 inputs, returning the first one.
This can be expensive for large strategies or when only a few
examples are needed. This release improves the speed of
strategy.example by lowering the batch size to 10.
- 6.119.4:
- This patch fixes a bug since 6.99.13 - 2024-03-24 where only
interactively-generated values (via data.draw) would be reported
in the arguments field of our observability output. Now, all
values are reported.
- 6.119.3:
- Hypothesis collects coverage information during the shrink and
explain phases in order to show a more informative error message.
On 3.12+, this uses sys.monitoring. This patch improves the
performance of coverage collection on 3.12+ by disabling events we
dont need.
- 6.119.2:
- This patch refactors some internals to prepare for future work
using our IR (issue #3921).
-------------------------------------------------------------------
Mon Nov 25 20:20:07 UTC 2024 - Matej Cepl <mcepl@suse.com>
- Skip tests matching `test_adds_note_showing_which_strategy`
(gh#HypothesisWorks/hypothesis#4185).
- Add missing BR: rich.
-------------------------------------------------------------------
Sat Nov 16 16:45:50 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to 6.119.1
- This patch migrates some more internals (around generating
novel inputs) to the IR layer (issue #3921).
- Update to 6.119.0
- This release improves Hypothesis handling of ExceptionGroup
- its now able to detect marker detections if theyre inside
a group and attempts to resolve them. Note that this handling
is still a work in progress and might not handle edge cases
optimally. Please open issues if you encounter any problems
or unexpected behavior with it.
- Update to 6.118.9
- Internal refactorings in preparation for upcoming changes.
- Update to 6.118.8
- Internal renamings.
- Update to 6.118.7
- This patch removes some # type: ignore comments following a
mypy update.
- Update to 6.118.6
- When Hypothesis replays examples from its test database that
it knows were previously fully shrunk it will no longer try
to shrink them again.
- This should significantly speed up development workflows for
slow tests, as the shrinking could contribute a significant
delay when rerunning the tests.
- In some rare cases this may cause minor reductions in example
quality. This was considered an acceptable tradeoff for the
improved test runtime.
- Update to 6.118.5
- This patch avoids computing some string representations we
wont need, giving a small speedup (part of issue #4139).
- Update to 6.118.4
- This patch migrates the optimisation algorithm for
targeted property-based testing to our IR layer (issue
#3921). This should result in moderately different (and
hopefully improved) exploration behavior in tests which use
hypothesis.target().
- Update to 6.118.3
- This patch adds more type hints to internal Hypothesis code.
- Update to 6.118.2
- This patch migrates the explain phase to our IR layer (issue
#3921). This should improve both its speed and precision.
- Update to 6.118.1
- This patch updates some internals around how we determine an
input is too large to finish generating.
- Update to 6.118.0
- The urls() strategy no longer generates URLs where the port
number is 0.
- This change is motivated by the idea that the generated URLs
should, at least in theory, be possible to fetch. The port
number 0 is special; if a server binds to port 0, the kernel
will allocate an unused, and non-zero, port instead. That
means that its not possible for a server to actually be
listening on port 0. This motivation is briefly described in
the documentation for urls().
- Fixes issue #4157.
- Thanks to @gmacon for this contribution!
- Update to 6.117.0
- This changes the behaviour of settings profiles so that
if you reregister the currently loaded profile it will
automatically reload it. Previously you would have had to
load it again.
- In particular this means that if you register a “ci” profile,
it will automatically be used when Hypothesis detects you are
running on CI.
- Update to 6.116.0
- Hypothesis now detects if it is running on a CI server and
provides better default settings for running on CI in this
case.
- Update to 6.115.6
- This patch changes the priority order of pretty printing
logic so that a user provided pretty printing method will
always be used in preference to e.g. printing it like a
dataclass.
- Update to 6.115.5
- This patch restores diversity to the outputs of
from_type(type) (issue #4144).
- Update to 6.115.4
- This release improves pretty printing of nested classes to
include the outer class name in their printed representation.
- Update to 6.115.3
- This patch fixes a regression from version 6.115.2 where
generating values from integers() with certain values for
min_value and max_value would error.
- Require numpy >= 2.
-------------------------------------------------------------------
Wed Oct 23 11:11:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 6.115.3
* This patch fixes a regression from :ref:`version 6.115.2 <v6.115.2>` where
generating values from :func:`~hypothesis.strategies.integers` with certain
values for ``min_value`` and ``max_value`` would error.
- from version 6.115.2
* This release improves integer shrinking by folding the endpoint upweighting
for :func:`~hypothesis.strategies.integers` into the ``weights`` parameter
of our IR.
If you maintain an alternative backend as part of our (for now explicitly
unstable) :ref:`alternative-backends`, this release changes the type of the
``weights`` parameter to ``draw_integer`` and may be a breaking change for you.
- from version 6.115.1
* This patch improves the performance of :func:`~hypothesis.strategies.from_type`
with `pydantic.types.condate
- from version 6.115.0
* This improves the formatting of dataclasses and attrs classes when printing
falsifying examples.
- from version 6.114.1
* This patch upgrades remaining type annotations to Python 3.9 syntax.
- from version 6.114.0
* This release drops support for Python 3.8, which reached end of life on
2024-10-07.
- from version 6.113.0
* This release adds ``hypothesis.errors.BackendCannotProceed``, an unstable API
for use by :ref:`alternative-backends`.
- from version 6.112.5
* This release fixes a regression where :class:`hypothesis.stateful.Bundle` did
not work properly with :ref:`flatmap <flatmap>` functionality.
- from version 6.112.4
* This patch tweaks the paths in ``@example(...)`` patches, so that
both ``git apply`` and ``patch`` will work by default.
- from version 6.112.3
* This release refactors internals of :class:`hypothesis.stateful.Bundle`
to have a more consistent representation internally.
- Remove trailing spaces before newlines in _service file
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Tue Oct 8 16:02:15 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 6.112.2
* removes a now-incorrect internal assertion about numpys typing
after recent numpy changes
* fixes an internal error when the __context__ attribute of a raised
exception leads to a cycle
-------------------------------------------------------------------
Fri Sep 6 05:56:55 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 6.112.0
* This release adds support for variable-width bytes in our IR
layer (issue #3921), which should mean improved performance
anywhere you use binary(). If you maintain an alternative
backend as part of our (for now explicitly unstable)
Alternative backends for Hypothesis, this release changes the
draw_* interface and may be a breaking change for you.
-------------------------------------------------------------------
Wed Aug 21 14:23:01 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- Update to 6.111.1
* This patch improves shrinking in cases involving 'slips' from one
strategy to another. Highly composite strategies are the most likely
to benefit from this change.
* This patch also reduces the range of :class:`python:datetime.datetime`
generated by :func:`~hypothesis.extra.django.from_model` in order to
avoid https://code.djangoproject.com/ticket/35683.
- Drop 0001-Revert-Use-tmp_path-in-ghostwriter-test.patch
* included upstream
-------------------------------------------------------------------
Wed Jul 31 13:22:46 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 6.108.5
* The alphabet= argument to from_regex() now accepts unions of characters()
and sampled_from() strategies, in addition to accepting each individually.
* Improves support for unions of numpy dtypes such as np.float64 | np.complex128
in from_type() and arrays()
* Support for Django 5.0, drop support for end-of-life Django versions (< 4.2).
* Migrate the shrinker to our new internal representation, called the IR layer.
This improves the shrinkers performance in the majority of cases. For example,
on the Hypothesis test suite, shrinking is a median of 1.38x faster.
* The from_dtype() function no longer generates NaT (“not-a-time”) values for the
datetime64 or timedelta64 dtypes if passed allow_nan=False
* Add the experimental and unstable backend setting. See documentation for details.
* Many more minor changes, see the upstream changelog.
- Add 0001-Revert-Use-tmp_path-in-ghostwriter-tests.patch to fix tests
* https://github.com/HypothesisWorks/hypothesis/issues/4062
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-hypothesis
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,8 @@
%global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} <= 1550
# Without complete tests for SLES to avoid python-pandas requirement
%if 0%{?suse_version} <= 1600
%bcond_with complete_tests
%else
%bcond_without complete_tests
@@ -37,7 +38,7 @@ ExclusiveArch: do_not_build
%endif
%{?sle15_python_module_pythons}
Name: python-hypothesis%{psuffix}
Version: 6.98.9
Version: 6.127.8
Release: 0
Summary: A library for property based testing
License: MPL-2.0
@@ -62,13 +63,13 @@ BuildArch: noarch
# SECTION requires_extra
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
# consuming packages need to declare these optional dependencies explicitly
Recommends: python-Django >= 3.2
Recommends: python-Django >= 4.2
Recommends: python-black >= 19.10
Recommends: python-click >= 7.0
Recommends: python-dpcontracts >= 0.4
Recommends: python-lark >= 0.10.1
Recommends: python-libcst >= 0.3.16
Recommends: python-numpy >= 1.16.0
Recommends: python-numpy >= 2
Recommends: python-pandas >= 1.1
Recommends: python-pytest >= 4.6
Recommends: python-python-dateutil >= 1.4
@@ -86,12 +87,14 @@ BuildRequires: %{python_module dpcontracts >= 0.4}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module lark >= 0.10.1}
BuildRequires: %{python_module libcst >= 0.3.16}
BuildRequires: %{python_module numpy >= 1.16.0}
BuildRequires: %{python_module numpy >= 2}
BuildRequires: %{python_module pexpect}
BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module python-dateutil >= 1.4}
BuildRequires: %{python_module rich >= 9.0.0}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module watchdog}
%if %{with complete_tests}
BuildRequires: %{python_module Django >= 3.2}
BuildRequires: %{python_module fakeredis}
@@ -157,12 +160,20 @@ fi
# https://github.com/HypothesisWorks/hypothesis/issues/3704
donttest+=" or (test_make_full_patch and covering)"
donttest+=" or test_overflowing_integers_are_deprecated"
# suddenly does not raise InvalidArgument with Numpy 2
donttest+=" or test_unrepresentable_elements_are_deprecated"
# we're disabling the healthcheck below, obs is too flaky with it
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_self_ref_regression"
# flaky test
donttest+=" or test_has_string_of_max_length"
# Test not working with 3.13.2
# gh#HypothesisWorks/hypothesis#4276
# https://github.com/python/cpython/issues/125553
donttest+=" or test_clean_source[case-5]"
# Requires latest black
donttest+=" or test_ghostwriter_example_outputs[union_sequence_parameter]"
# adapted from pytest.ini in github repo toplevel dir (above hypothesis-python)
echo '[pytest]
addopts=
@@ -203,6 +214,9 @@ hypothesis.settings.register_profile(
" >> tests/conftest.py
%if %{without complete_tests}
export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_exampledatabase.py"
# gh#HypothesisWorks/hypothesis#4185
# pytest < 8.0 doesn't support __notes__ in pytest.raises()
donttest+=" or test_adds_note_showing_which_strategy"
%endif
%pytest -c pytest.ini -k "not ($donttest)" tests; rm -rf .pytest_cache
%endif
@@ -210,7 +224,7 @@ export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_ex
%if !%{with test}
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%doc README.md
%python_alternative %{_bindir}/hypothesis
%{python_sitelib}/hypothesis
%{python_sitelib}/_hypothesis*.py