Update to 5.41.3

Use py3_dist macro
Disable Redis tests
Enable lark-parser tests

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 4 years ago
parent 65a4191709
commit 7f22d3bcae

1
.gitignore vendored

@ -1 +1,2 @@
/hypothesis-5.29.4.tar.gz
/hypothesis-5.41.3.tar.gz

@ -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. Its 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. Its 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

@ -1 +1 @@
SHA512 (hypothesis-5.29.4.tar.gz) = 9da4b487fd3c56540a20e2fbff635704f0720f422d8a398d0accd24a1fb9517476b0d29135b9113a96e8dc98fcfc31cc53215ad82cb727be54e4e77b44d4c8e4
SHA512 (hypothesis-5.41.3.tar.gz) = 974dee6040222fa55729257cea4e3c4c049625a2a5dfddbc12667dbd58dfe31718474ce8e9de81519e998c7a0c8ff01920e0aa2bca9fb7100754e985177f4b69

Loading…
Cancel
Save