2015-11-11 11:36:03 +01:00
|
|
|
#
|
2021-12-06 10:30:18 +01:00
|
|
|
# spec file
|
2015-11-11 11:36:03 +01:00
|
|
|
#
|
2023-01-09 06:05:53 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-11-11 11:36:03 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-17 15:03:22 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-09 11:08:24 +01:00
|
|
|
#
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
|
2020-08-14 23:42:04 +02:00
|
|
|
%bcond_with ringdisabled
|
2018-09-13 16:27:57 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
2019-04-30 15:27:39 +02:00
|
|
|
%define psuffix -test
|
2018-09-13 16:27:57 +02:00
|
|
|
%bcond_without test
|
2020-08-14 23:42:04 +02:00
|
|
|
# Magic for OBS Staging. Only build the flavors required by
|
|
|
|
# other packages in the ring.
|
|
|
|
%if %{with ringdisabled}
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
%endif
|
2018-09-13 16:27:57 +02:00
|
|
|
%else
|
2019-04-30 15:27:39 +02:00
|
|
|
%define psuffix %{nil}
|
2018-09-05 13:17:34 +02:00
|
|
|
%bcond_with test
|
2018-09-13 16:27:57 +02:00
|
|
|
%endif
|
2023-02-17 17:55:10 +01:00
|
|
|
%if 0%{?suse_version} <= 1550
|
|
|
|
%bcond_with complete_tests
|
|
|
|
%else
|
|
|
|
%bcond_without complete_tests
|
|
|
|
%endif
|
2023-04-21 16:31:18 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-04-30 15:27:39 +02:00
|
|
|
Name: python-hypothesis%{psuffix}
|
2023-08-31 12:17:27 +02:00
|
|
|
Version: 6.82.7
|
2015-11-11 11:36:03 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A library for property based testing
|
2015-12-09 11:08:24 +01:00
|
|
|
License: MPL-2.0
|
2020-08-14 23:42:04 +02:00
|
|
|
URL: https://github.com/HypothesisWorks/hypothesis
|
|
|
|
# Source is the `hypothesis-python` subdir of the Github repository.
|
|
|
|
# Edit the `_service` file and run `osc service runall` for updates.
|
2021-03-25 08:53:05 +01:00
|
|
|
# See also https://hypothesis.readthedocs.io/en/latest/packaging.html
|
2022-01-10 21:28:02 +01:00
|
|
|
Source: hypothesis-python-%{version}.tar.gz
|
Accepting request 963086 from home:bnavigator:branches:devel:languages:python
- Update to 6.39.4
* This patch tweaks some internal formatting. There is no
user-visible change.
- Release 6.39.3
* If the shrink phase is disabled, we now stop the generate phase
as soon as an error is found regardless of the value of the
report_multiple_examples setting, since that’s probably what
you wanted (issue #3244).
- Release 6.39.2
* This patch clarifies rare error messages in builds() (issue
#3225) and floats() (issue #3207).
- Release 6.39.1
* This patch fixes a regression where the bound inner function
(your_test.hypothesis.inner_test) would be invoked with
positional arguments rather than passing them by name, which
broke pytest-asyncio (issue #3245).
- 6.39.0
* This release improves Hypothesis’ handling of positional-only
arguments, which are now allowed @st.composite strategies.
* On Python 3.8 and later, the first arguments to builds() and
from_model() are now natively positional-only. In cases which
were already errors, the TypeError from incorrect usage will
therefore be raises immediately when the function is called,
rather than when the strategy object is used.
- Release 6.38.0
* This release makes floats() error consistently when your
floating-point hardware has been configured to violate IEEE-754
for subnormal numbers, instead of only when an internal
assertion was tripped (issue #3092).
* If this happens to you, passing allow_subnormal=False will
suppress the explicit error. However, we strongly recommend
fixing the root cause by disabling global-effect unsafe-math
compiler options instead, or at least consulting e.g. Simon
Byrne’s Beware of fast-math explainer first.
- Release 6.37.2
* This patch fixes a bug in stateful testing, where returning a
single value wrapped in multiple() would be printed such that
the assigned variable was a tuple rather than the single
element (issue #3236).
- Release 6.37.1
* This patch fixes a warning under pytest 7 relating to our rich
traceback display logic (issue #3223).
- Release 6.37.0
* When distinguishing multiple errors, Hypothesis now looks at
the inner exceptions of PEP 654 ExceptionGroups.
- Release 6.36.2
* This patch updates our vendored list of top-level domains,
which is used by the provisional domains() strategy.
- Release 6.36.1
* This patch fixes some deprecation warnings from pytest 7.0,
along with some code formatting and docs updates.
- Release 6.36.0
* This release disallows using typing.Final with from_type() and
register_type_strategy().
* Why? Because Final can only be used during class definition. We
don’t generate class attributes.
* It also does not make sense as a runtime type on its own.
- Release 6.35.1
* This patch fixes hypothesis write output highlighting with rich
version 12.0 and later.
- Drop importorskip-numpy-pandas.patch
OBS-URL: https://build.opensuse.org/request/show/963086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=150
2022-03-20 00:02:39 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2023-01-09 06:05:53 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-02-17 17:55:10 +01:00
|
|
|
BuildRequires: %{python_module pytz}
|
Accepting request 963086 from home:bnavigator:branches:devel:languages:python
- Update to 6.39.4
* This patch tweaks some internal formatting. There is no
user-visible change.
- Release 6.39.3
* If the shrink phase is disabled, we now stop the generate phase
as soon as an error is found regardless of the value of the
report_multiple_examples setting, since that’s probably what
you wanted (issue #3244).
- Release 6.39.2
* This patch clarifies rare error messages in builds() (issue
#3225) and floats() (issue #3207).
- Release 6.39.1
* This patch fixes a regression where the bound inner function
(your_test.hypothesis.inner_test) would be invoked with
positional arguments rather than passing them by name, which
broke pytest-asyncio (issue #3245).
- 6.39.0
* This release improves Hypothesis’ handling of positional-only
arguments, which are now allowed @st.composite strategies.
* On Python 3.8 and later, the first arguments to builds() and
from_model() are now natively positional-only. In cases which
were already errors, the TypeError from incorrect usage will
therefore be raises immediately when the function is called,
rather than when the strategy object is used.
- Release 6.38.0
* This release makes floats() error consistently when your
floating-point hardware has been configured to violate IEEE-754
for subnormal numbers, instead of only when an internal
assertion was tripped (issue #3092).
* If this happens to you, passing allow_subnormal=False will
suppress the explicit error. However, we strongly recommend
fixing the root cause by disabling global-effect unsafe-math
compiler options instead, or at least consulting e.g. Simon
Byrne’s Beware of fast-math explainer first.
- Release 6.37.2
* This patch fixes a bug in stateful testing, where returning a
single value wrapped in multiple() would be printed such that
the assigned variable was a tuple rather than the single
element (issue #3236).
- Release 6.37.1
* This patch fixes a warning under pytest 7 relating to our rich
traceback display logic (issue #3223).
- Release 6.37.0
* When distinguishing multiple errors, Hypothesis now looks at
the inner exceptions of PEP 654 ExceptionGroups.
- Release 6.36.2
* This patch updates our vendored list of top-level domains,
which is used by the provisional domains() strategy.
- Release 6.36.1
* This patch fixes some deprecation warnings from pytest 7.0,
along with some code formatting and docs updates.
- Release 6.36.0
* This release disallows using typing.Final with from_type() and
register_type_strategy().
* Why? Because Final can only be used during class definition. We
don’t generate class attributes.
* It also does not make sense as a runtime type on its own.
- Release 6.35.1
* This patch fixes hypothesis write output highlighting with rich
version 12.0 and later.
- Drop importorskip-numpy-pandas.patch
OBS-URL: https://build.opensuse.org/request/show/963086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=150
2022-03-20 00:02:39 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-01-09 06:05:53 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-30 09:30:34 +02:00
|
|
|
BuildRequires: fdupes
|
2017-02-24 15:34:42 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-08-14 23:42:04 +02:00
|
|
|
Requires: python-attrs >= 19.2.0
|
2023-01-09 06:05:53 +01:00
|
|
|
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
|
|
|
|
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
|
2020-11-11 13:23:09 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-03-25 08:53:05 +01:00
|
|
|
Requires(preun):update-alternatives
|
2021-12-14 14:03:46 +01:00
|
|
|
# SECTION requires_extra
|
|
|
|
# consuming packages need to declare these optional dependencies explicitly
|
2023-01-09 06:05:53 +01:00
|
|
|
Recommends: python-Django >= 3.2
|
2021-12-14 14:03:46 +01:00
|
|
|
Recommends: python-black >= 19.10
|
|
|
|
Recommends: python-click >= 7.0
|
2020-08-14 23:42:04 +02:00
|
|
|
Recommends: python-dpcontracts >= 0.4
|
2022-12-15 07:51:57 +01:00
|
|
|
Recommends: python-lark >= 0.10.1
|
2021-03-25 08:53:05 +01:00
|
|
|
Recommends: python-libcst >= 0.3.16
|
2023-05-10 18:33:33 +02:00
|
|
|
Recommends: python-numpy >= 1.16.0
|
|
|
|
Recommends: python-pandas >= 1.1
|
2021-12-14 14:03:46 +01:00
|
|
|
Recommends: python-pytest >= 4.6
|
2020-08-14 23:42:04 +02:00
|
|
|
Recommends: python-python-dateutil >= 1.4
|
2021-12-14 14:03:46 +01:00
|
|
|
Recommends: python-pytz >= 2014.1
|
2020-11-19 12:58:51 +01:00
|
|
|
Recommends: python-redis >= 3.0.0
|
2021-12-14 14:03:46 +01:00
|
|
|
Recommends: python-rich >= 9.0
|
|
|
|
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
|
|
|
|
# /SECTION
|
2018-06-25 13:02:02 +02:00
|
|
|
BuildArch: noarch
|
2019-03-18 09:14:01 +01:00
|
|
|
%if %{with test}
|
2023-01-09 06:05:53 +01:00
|
|
|
BuildRequires: %{python_module hypothesis = %{version}}
|
2018-06-07 20:15:11 +02:00
|
|
|
# SECTION test requirements
|
2023-02-17 17:55:10 +01:00
|
|
|
%if %{with complete_tests}
|
2023-01-09 06:05:53 +01:00
|
|
|
BuildRequires: %{python_module Django >= 3.2}
|
2023-02-17 17:55:10 +01:00
|
|
|
BuildRequires: %{python_module fakeredis}
|
2023-05-10 18:33:33 +02:00
|
|
|
BuildRequires: %{python_module pandas >= 1.1}
|
2023-02-17 17:55:10 +01:00
|
|
|
%endif
|
2022-06-14 09:39:05 +02:00
|
|
|
BuildRequires: %{python_module backports.zoneinfo >= 0.2.1 if %python-base < 3.9}
|
2021-12-14 14:03:46 +01:00
|
|
|
BuildRequires: %{python_module black >= 19.10}
|
2023-02-17 17:55:10 +01:00
|
|
|
BuildRequires: %{python_module click}
|
2021-03-25 08:53:05 +01:00
|
|
|
BuildRequires: %{python_module dpcontracts >= 0.4}
|
2018-06-07 20:15:11 +02:00
|
|
|
BuildRequires: %{python_module flaky}
|
2022-12-15 07:51:57 +01:00
|
|
|
BuildRequires: %{python_module lark >= 0.10.1}
|
2021-03-25 08:53:05 +01:00
|
|
|
BuildRequires: %{python_module libcst >= 0.3.16}
|
2023-05-10 18:33:33 +02:00
|
|
|
BuildRequires: %{python_module numpy >= 1.16.0}
|
2020-08-14 23:42:04 +02:00
|
|
|
BuildRequires: %{python_module pexpect}
|
2021-03-25 08:53:05 +01:00
|
|
|
BuildRequires: %{python_module pytest >= 4.6}
|
2020-08-14 23:42:04 +02:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
|
|
BuildRequires: %{python_module python-dateutil >= 1.4}
|
2023-02-17 17:55:10 +01:00
|
|
|
BuildRequires: %{python_module typing_extensions}
|
2018-06-07 20:15:11 +02:00
|
|
|
# /SECTION
|
2021-12-14 14:03:46 +01:00
|
|
|
%endif
|
2017-02-24 15:34:42 +01:00
|
|
|
%python_subpackages
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%description
|
Accepting request 963086 from home:bnavigator:branches:devel:languages:python
- Update to 6.39.4
* This patch tweaks some internal formatting. There is no
user-visible change.
- Release 6.39.3
* If the shrink phase is disabled, we now stop the generate phase
as soon as an error is found regardless of the value of the
report_multiple_examples setting, since that’s probably what
you wanted (issue #3244).
- Release 6.39.2
* This patch clarifies rare error messages in builds() (issue
#3225) and floats() (issue #3207).
- Release 6.39.1
* This patch fixes a regression where the bound inner function
(your_test.hypothesis.inner_test) would be invoked with
positional arguments rather than passing them by name, which
broke pytest-asyncio (issue #3245).
- 6.39.0
* This release improves Hypothesis’ handling of positional-only
arguments, which are now allowed @st.composite strategies.
* On Python 3.8 and later, the first arguments to builds() and
from_model() are now natively positional-only. In cases which
were already errors, the TypeError from incorrect usage will
therefore be raises immediately when the function is called,
rather than when the strategy object is used.
- Release 6.38.0
* This release makes floats() error consistently when your
floating-point hardware has been configured to violate IEEE-754
for subnormal numbers, instead of only when an internal
assertion was tripped (issue #3092).
* If this happens to you, passing allow_subnormal=False will
suppress the explicit error. However, we strongly recommend
fixing the root cause by disabling global-effect unsafe-math
compiler options instead, or at least consulting e.g. Simon
Byrne’s Beware of fast-math explainer first.
- Release 6.37.2
* This patch fixes a bug in stateful testing, where returning a
single value wrapped in multiple() would be printed such that
the assigned variable was a tuple rather than the single
element (issue #3236).
- Release 6.37.1
* This patch fixes a warning under pytest 7 relating to our rich
traceback display logic (issue #3223).
- Release 6.37.0
* When distinguishing multiple errors, Hypothesis now looks at
the inner exceptions of PEP 654 ExceptionGroups.
- Release 6.36.2
* This patch updates our vendored list of top-level domains,
which is used by the provisional domains() strategy.
- Release 6.36.1
* This patch fixes some deprecation warnings from pytest 7.0,
along with some code formatting and docs updates.
- Release 6.36.0
* This release disallows using typing.Final with from_type() and
register_type_strategy().
* Why? Because Final can only be used during class definition. We
don’t generate class attributes.
* It also does not make sense as a runtime type on its own.
- Release 6.35.1
* This patch fixes hypothesis write output highlighting with rich
version 12.0 and later.
- Drop importorskip-numpy-pandas.patch
OBS-URL: https://build.opensuse.org/request/show/963086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=150
2022-03-20 00:02:39 +01:00
|
|
|
Hypothesis is a family of testing libraries which let you write tests parametrized
|
|
|
|
by a source of examples. A Hypothesis implementation then generates simple and
|
|
|
|
comprehensible examples that make your tests fail. This simplifies writing your
|
|
|
|
tests and makes them more powerful at the same time, by letting software automate
|
|
|
|
the boring bits and do them to a higher standard than a human would, freeing you
|
|
|
|
to focus on the higher level test logic.
|
2015-11-11 11:36:03 +01:00
|
|
|
|
Accepting request 963086 from home:bnavigator:branches:devel:languages:python
- Update to 6.39.4
* This patch tweaks some internal formatting. There is no
user-visible change.
- Release 6.39.3
* If the shrink phase is disabled, we now stop the generate phase
as soon as an error is found regardless of the value of the
report_multiple_examples setting, since that’s probably what
you wanted (issue #3244).
- Release 6.39.2
* This patch clarifies rare error messages in builds() (issue
#3225) and floats() (issue #3207).
- Release 6.39.1
* This patch fixes a regression where the bound inner function
(your_test.hypothesis.inner_test) would be invoked with
positional arguments rather than passing them by name, which
broke pytest-asyncio (issue #3245).
- 6.39.0
* This release improves Hypothesis’ handling of positional-only
arguments, which are now allowed @st.composite strategies.
* On Python 3.8 and later, the first arguments to builds() and
from_model() are now natively positional-only. In cases which
were already errors, the TypeError from incorrect usage will
therefore be raises immediately when the function is called,
rather than when the strategy object is used.
- Release 6.38.0
* This release makes floats() error consistently when your
floating-point hardware has been configured to violate IEEE-754
for subnormal numbers, instead of only when an internal
assertion was tripped (issue #3092).
* If this happens to you, passing allow_subnormal=False will
suppress the explicit error. However, we strongly recommend
fixing the root cause by disabling global-effect unsafe-math
compiler options instead, or at least consulting e.g. Simon
Byrne’s Beware of fast-math explainer first.
- Release 6.37.2
* This patch fixes a bug in stateful testing, where returning a
single value wrapped in multiple() would be printed such that
the assigned variable was a tuple rather than the single
element (issue #3236).
- Release 6.37.1
* This patch fixes a warning under pytest 7 relating to our rich
traceback display logic (issue #3223).
- Release 6.37.0
* When distinguishing multiple errors, Hypothesis now looks at
the inner exceptions of PEP 654 ExceptionGroups.
- Release 6.36.2
* This patch updates our vendored list of top-level domains,
which is used by the provisional domains() strategy.
- Release 6.36.1
* This patch fixes some deprecation warnings from pytest 7.0,
along with some code formatting and docs updates.
- Release 6.36.0
* This release disallows using typing.Final with from_type() and
register_type_strategy().
* Why? Because Final can only be used during class definition. We
don’t generate class attributes.
* It also does not make sense as a runtime type on its own.
- Release 6.35.1
* This patch fixes hypothesis write output highlighting with rich
version 12.0 and later.
- Drop importorskip-numpy-pandas.patch
OBS-URL: https://build.opensuse.org/request/show/963086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=150
2022-03-20 00:02:39 +01:00
|
|
|
This sort of testing is often called "property-based testing", and the most widely
|
|
|
|
known implementation of the concept is the Haskell library QuickCheck, but
|
|
|
|
Hypothesis differs significantly from QuickCheck and is designed to fit idiomatically
|
|
|
|
and easily into existing styles of testing that you are used to, with absolutely no
|
|
|
|
familiarity with Haskell or functional programming needed.
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%prep
|
2022-01-10 21:28:02 +01:00
|
|
|
%setup -q -n hypothesis-python-%{version}
|
|
|
|
%autopatch -p1
|
|
|
|
|
2020-08-14 23:42:04 +02:00
|
|
|
# gh#HypothesisWorks/hypothesis#2447: make sure arr==0.0 is an array on 32-bit
|
|
|
|
sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_gen_data.py
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-14 23:42:04 +02:00
|
|
|
%if !%{with test}
|
2023-01-09 06:05:53 +01:00
|
|
|
%pyproject_wheel
|
2020-08-14 23:42:04 +02:00
|
|
|
%endif
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%install
|
2018-09-17 15:03:22 +02:00
|
|
|
%if !%{with test}
|
2023-01-09 06:05:53 +01:00
|
|
|
%pyproject_install
|
2020-08-14 23:42:04 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-09-05 13:17:34 +02:00
|
|
|
|
2020-11-11 13:23:09 +01:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/hypothesis
|
2020-11-19 12:58:51 +01:00
|
|
|
%endif
|
2020-11-11 13:23:09 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative hypothesis
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative hypothesis
|
|
|
|
|
2018-09-05 13:17:34 +02:00
|
|
|
%check
|
2019-04-30 15:27:39 +02:00
|
|
|
%if %{with test}
|
2020-08-14 23:42:04 +02:00
|
|
|
# theses tests try to write into global python_sitelib
|
|
|
|
# https://github.com/HypothesisWorks/hypothesis/issues/2546
|
2021-03-25 08:53:05 +01:00
|
|
|
donttest="test_updating_the_file_include_new_shrinkers"
|
|
|
|
donttest+=" or test_can_learn_to_normalize_the_unnormalized"
|
2023-05-10 18:37:20 +02:00
|
|
|
# Fail because typing comparison
|
2023-05-10 18:33:33 +02:00
|
|
|
donttest+=" or test_ghostwriter_on_hypothesis"
|
2023-08-31 12:17:27 +02:00
|
|
|
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
|
|
|
donttest+=" or test_gets_right_dtype_for_empty_indices"
|
|
|
|
donttest+=" or test_has_string_of_max_length"
|
|
|
|
fi
|
|
|
|
# https://github.com/HypothesisWorks/hypothesis/issues/3704
|
|
|
|
donttest+=" or (test_make_full_patch and covering)"
|
|
|
|
donttest+=" or test_overflowing_integers_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"
|
2021-03-25 08:53:05 +01:00
|
|
|
# adapted from pytest.ini in github repo toplevel dir (above hypothesis-python)
|
|
|
|
echo '[pytest]
|
|
|
|
addopts=
|
2023-08-31 12:17:27 +02:00
|
|
|
-rfE
|
2021-03-25 08:53:05 +01:00
|
|
|
--strict-markers
|
|
|
|
--tb=native
|
2023-08-31 12:17:27 +02:00
|
|
|
-p pytester
|
|
|
|
--runpytest=subprocess
|
|
|
|
--hypothesis-profile=obs
|
2021-03-25 08:53:05 +01:00
|
|
|
-v
|
|
|
|
-n auto
|
2023-08-31 12:17:27 +02:00
|
|
|
xfail_strict = False
|
2021-03-25 08:53:05 +01:00
|
|
|
filterwarnings =
|
2023-08-31 12:17:27 +02:00
|
|
|
# error <-- disabled for obs packaging
|
2021-03-25 08:53:05 +01:00
|
|
|
ignore::hypothesis.errors.NonInteractiveExampleWarning
|
2022-06-14 09:39:05 +02:00
|
|
|
# https://github.com/pandas-dev/pandas/issues/41199
|
|
|
|
default:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning
|
|
|
|
default:distutils Version classes are deprecated\. Use packaging\.version instead:DeprecationWarning
|
|
|
|
# https://github.com/pandas-dev/pandas/issues/32056 (?)
|
|
|
|
default:numpy\.ufunc size changed, may indicate binary incompatibility\. Expected 216 from C header, got 232 from PyObject:RuntimeWarning
|
|
|
|
# https://github.com/pandas-dev/pandas/issues/34848
|
|
|
|
default:`np\.bool` is a deprecated alias for the builtin `bool`:DeprecationWarning
|
|
|
|
default:`np\.complex` is a deprecated alias for the builtin `complex`:DeprecationWarning
|
|
|
|
default:`np\.object` is a deprecated alias for the builtin `object`:DeprecationWarning
|
2021-03-25 08:53:05 +01:00
|
|
|
' > pytest.ini
|
2023-08-31 12:17:27 +02:00
|
|
|
# increase test deadline for slow obs executions
|
|
|
|
echo "
|
|
|
|
import hypothesis
|
|
|
|
|
|
|
|
hypothesis.settings.register_profile(
|
|
|
|
'obs',
|
|
|
|
deadline=5000,
|
|
|
|
suppress_health_check=[
|
|
|
|
hypothesis.HealthCheck.too_slow,
|
|
|
|
]
|
|
|
|
)
|
|
|
|
" >> tests/conftest.py
|
2023-02-17 17:55:10 +01:00
|
|
|
%if %{without complete_tests}
|
|
|
|
export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_exampledatabase.py"
|
|
|
|
%endif
|
2023-08-31 12:17:27 +02:00
|
|
|
%pytest -c pytest.ini -k "not ($donttest)" tests; rm -rf .pytest_cache
|
2018-09-05 13:17:34 +02:00
|
|
|
%endif
|
2015-11-11 11:36:03 +01:00
|
|
|
|
2019-04-30 15:27:39 +02:00
|
|
|
%if !%{with test}
|
2017-02-24 15:34:42 +01:00
|
|
|
%files %{python_files}
|
2020-08-14 23:42:04 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2020-11-11 13:23:09 +01:00
|
|
|
%python_alternative %{_bindir}/hypothesis
|
2021-12-06 10:35:57 +01:00
|
|
|
%{python_sitelib}/*hypothesis*
|
2023-01-09 06:05:53 +01:00
|
|
|
%{python_sitelib}/hypothesis-%{version}.dist-info
|
2021-12-06 10:35:57 +01:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__/*hypothesis*
|
2018-09-13 16:27:57 +02:00
|
|
|
%endif
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%changelog
|