Commit Graph

207 Commits

Author SHA256 Message Date
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Dominique Leuenberger
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
Ana Guerrero
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
c42e29d24a - Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=187
2024-03-15 17:18:02 +00:00
Ana Guerrero
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
fc0f03b461 Accepting request 1152084 from home:mcalabkova:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1152084
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=185
2024-02-27 10:18:11 +00:00
Ana Guerrero
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
b5769c4ca6 Accepting request 1141260 from home:ecsos:python
- 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).

OBS-URL: https://build.opensuse.org/request/show/1141260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=183
2024-01-25 13:56:53 +00:00
Dominique Leuenberger
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
94fb987a24 - update to 6.92.2:
* updates vendored list of top-level domains

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=181
2024-01-06 20:29:36 +00:00
Ana Guerrero
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
0c289f0595 - 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/package/show/devel:languages:python/python-hypothesis?expand=0&rev=179
2023-12-27 10:15:20 +00:00
Ana Guerrero
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
a53eb8ad40 - 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/package/show/devel:languages:python/python-hypothesis?expand=0&rev=177
2023-11-01 15:22:24 +00:00
Ana Guerrero
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
4b04aefafb Accepting request 1118040 from home:mimi_vx:branches:devel:languages:python
- 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.)

OBS-URL: https://build.opensuse.org/request/show/1118040
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=175
2023-10-16 22:19:23 +00:00
6c15f432a1 Accepting request 1116915 from home:mimi_vx:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1116915
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=174
2023-10-11 12:12:14 +00:00
Ana Guerrero
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
465d9067f4 Accepting request 1108226 from home:bnavigator:branches:devel:languages:python
- Update to 6.82.7
  * This patch updates our autoformatting tools, improving our code
    style without any API changes.
- Release 6.82.6
  * This patch enables and fixes many more of ruff‘s lint rules.
- Release 6.82.5
  * Fixes the error message for missing [cli] extra.
- Use slow 'obs' profile for testing and disable healthcheck
  tests because of it.

OBS-URL: https://build.opensuse.org/request/show/1108226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=172
2023-08-31 10:17:27 +00:00
Ana Guerrero
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
d2464b3130 ------------------------------------------------------------------
- update to 6.82.4:
  * This patch ensures that we always close the download
    connection in :class:`~hypothesis.database.GitHubArtifactDatabase`.
  * We can now pretty-print combinations of *zero*
    :class:`enum.Flag` values, like ``SomeFlag(0)``,
    which has never worked before.
  * This patch fixes pretty-printing of combinations of
    :class:`enum.Flag` values, which was previously an error
    (:issue:`3709`).
  * Improve shrinking of floats in narrow regions that don't
    cross an integer boundary. Closes :issue:`3357`.
  * :func:`~hypothesis.strategies.from_regex` now supports the
    atomic grouping (``(?>...)``) and possessive quantifier
    (``*+``, ``++``, ``?+``, ``{m,n}+``) syntax `added in Python 3.11
  * If the :envvar:`HYPOTHESIS_NO_PLUGINS` environment variable
    is set, we'll avoid :ref:`loading plugins <entry-points>`
    such as `the old Pydantic integration
  * Fixes some lingering issues with inference of recursive types
  * in `~hypothesis.strategies.from_type`. Closes :issue:`3525`.
  * This release drops support for Python 3.7, `which reached end
    of life on 2023-06-27
  * Fixes occasional recursion-limit-exceeded errors when
    validating deeply nested strategies. Closes: :issue:`3671`
  * Improve the type rendered in
    :func:`~hypothesis.strategies.from_type`, which improves the
    coverage of Ghostwriter.
  * This patch improves Ghostwriter's use of qualified names for
    re-exported functions and classes, and avoids importing useless
    :obj:`~typing.TypeVar`\ s.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=170
2023-08-14 07:08:47 +00:00
Dominique Leuenberger
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
3be375c5b1 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=168
2023-05-14 15:30:47 +00:00
adc9271da2 - Complete comment in spec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=167
2023-05-10 16:37:20 +00:00
bb19a4f556 - 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).
- 6.73.0
  * This release upgrades the explain phase (issue #3411).
- 6.72.4
  * This patch fixes type annotations for the arrays() strategy.
- 6.72.3
  * This patch fixes a bug with from_type() with dict[tuple[int, int], str] (issue #3527).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=166
2023-05-10 16:33:33 +00:00
Dominique Leuenberger
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
8551ff793e Accepting request 1081445 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081445
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=164
2023-04-21 14:31:18 +00:00
Dominique Leuenberger
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
7b8c12895a Accepting request 1066410 from home:dirkmueller:acdc
- Limit dependencies for tests on older distributions
  (particularly do not depend on Django, Pandas, and fakeredis
  and Redis).

OBS-URL: https://build.opensuse.org/request/show/1066410
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=162
2023-02-17 16:55:10 +00:00
Dominique Leuenberger
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
Steve Kowalik
d1e7af94d3 Accepting request 1056822 from home:bnavigator:branches:devel:languages:python
- Update to 6.61.2
  * This patch improves our pretty-printing of failing examples,
    including some refactoring to prepare for exciting future
    features.
- Release 6.61.1
  * This patch brings our domains() and emails() strategies into
    compliance with RFC 5890 §2.3.1: we no longer generate
    parts-of-domains where the third and fourth characters are --
    (“R-LDH labels”), though future versions may deliberately
    generate xn-- punycode labels. Thanks to python-email-validator
    for the report!
- Update dependencies
- Move to PEP517 build

OBS-URL: https://build.opensuse.org/request/show/1056822
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=160
2023-01-09 05:05:53 +00:00
Dominique Leuenberger
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
f2d24d2d30 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=158
2022-12-15 06:51:57 +00:00
Dominique Leuenberger
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
ca44547f1e - 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/package/show/devel:languages:python/python-hypothesis?expand=0&rev=156
2022-10-16 17:45:36 +00:00
Dominique Leuenberger
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
74f2435244 Accepting request 1009201 from home:bnavigator:branches:devel:languages:python
- Update to 6.56.1

OBS-URL: https://build.opensuse.org/request/show/1009201
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=154
2022-10-10 05:24:48 +00:00