|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global srcname hypothesis
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 5.29.4
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 5.41.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Library for property based testing
|
|
|
|
|
|
|
|
|
|
License: MPLv2.0
|
|
|
|
@ -18,16 +18,17 @@ BuildArch: noarch
|
|
|
|
|
%if %{with doc}
|
|
|
|
|
# Manpage
|
|
|
|
|
BuildRequires: %{_bindir}/sphinx-build
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx-hoverxref
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
|
|
BuildRequires: %{py3_dist sphinx-hoverxref}
|
|
|
|
|
BuildRequires: %{py3_dist sphinx-rtd-theme}
|
|
|
|
|
BuildRequires: %{py3_dist sphinx_selective_exclude}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
Hypothesis is a library for testing your Python code against a much\
|
|
|
|
|
larger range of examples than you would ever want to write by\
|
|
|
|
|
hand. It’s based on the Haskell library, Quickcheck, and is designed\
|
|
|
|
|
to integrate seamlessly into your existing Python unit testing work\
|
|
|
|
|
flow.
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Hypothesis is a library for testing your Python code against a much
|
|
|
|
|
larger range of examples than you would ever want to write by
|
|
|
|
|
hand. It’s based on the Haskell library, Quickcheck, and is designed
|
|
|
|
|
to integrate seamlessly into your existing Python unit testing work
|
|
|
|
|
flow.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -37,24 +38,22 @@ Summary: %{summary}
|
|
|
|
|
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python3dist(attrs) >= 19.2.0
|
|
|
|
|
BuildRequires: python3dist(sortedcontainers)
|
|
|
|
|
BuildRequires: %{py3_dist attrs} >= 19.2.0
|
|
|
|
|
BuildRequires: %{py3_dist sortedcontainers}
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
#BuildRequires: python3dist(django)
|
|
|
|
|
#BuildRequires: python3dist(dpcontracts)
|
|
|
|
|
#BuildRequires: python3dist(lark)
|
|
|
|
|
BuildRequires: black
|
|
|
|
|
BuildRequires: python3dist(numpy)
|
|
|
|
|
BuildRequires: python3dist(pandas)
|
|
|
|
|
BuildRequires: python3dist(pexpect)
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
BuildRequires: python3dist(pytest-xdist)
|
|
|
|
|
BuildRequires: python3dist(typing-extensions)
|
|
|
|
|
BuildRequires: %{py3_dist lark-parser}
|
|
|
|
|
BuildRequires: %{py3_dist numpy}
|
|
|
|
|
BuildRequires: %{py3_dist pandas}
|
|
|
|
|
BuildRequires: %{py3_dist pexpect}
|
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
|
BuildRequires: %{py3_dist pytest-xdist}
|
|
|
|
|
BuildRequires: %{py3_dist typing-extensions}
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python%{python3_version}dist(sortedcontainers)
|
|
|
|
|
Suggests: python%{python3_version}dist(pytz) >= 2014.1
|
|
|
|
|
Suggests: python%{python3_version}dist(numpy) >= 1.9.0
|
|
|
|
|
Suggests: python%{python3_version}dist(pytest) >= 3.0
|
|
|
|
|
Requires: %{py3_dist sortedcontainers}
|
|
|
|
|
Suggests: %{py3_dist pytz} >= 2014.1
|
|
|
|
|
Suggests: %{py3_dist numpy} >= 1.9.0
|
|
|
|
|
Suggests: %{py3_dist pytest} >= 3.0
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
|
|
|
|
|
|
|
|
@ -66,7 +65,7 @@ Python 3 version.
|
|
|
|
|
sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py
|
|
|
|
|
|
|
|
|
|
# remove tests we cannot run
|
|
|
|
|
rm -r tests/lark tests/dpcontracts # missing deps
|
|
|
|
|
rm -r tests/dpcontracts tests/redis # missing deps
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
@ -82,7 +81,8 @@ PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -n auto -k "not test_healthcheck_traceback_is_hidden"
|
|
|
|
|
%pytest -v -n auto \
|
|
|
|
|
-k "not test_healthcheck_traceback_is_hidden and not test_registered_from_entrypoint"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
@ -96,6 +96,12 @@ PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python3_sitelib} pyte
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Nov 22 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.41.3-1
|
|
|
|
|
- Update to 5.41.3
|
|
|
|
|
- Use py3_dist macro
|
|
|
|
|
- Disable Redis tests (missing dependency)
|
|
|
|
|
- Enable lark-parser tests
|
|
|
|
|
|
|
|
|
|
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 5.29.4-2
|
|
|
|
|
- Remove build dependencies on mock and coverage
|
|
|
|
|
|
|
|
|
|