d445d31
%global srcname hypothesis
d38d6a4
d445d31
Name:           python-%{srcname}
eeddc37
Version:        5.43.9
eeddc37
Release:        1%{?dist}
584fbb6
Summary:        Library for property based testing
d38d6a4
d38d6a4
License:        MPLv2.0
2f31c25
URL:            https://github.com/HypothesisWorks/hypothesis-python
cbd22f3
Source0:        %{url}/archive/%{srcname}-python-%{version}/%{srcname}-%{version}.tar.gz
d38d6a4
d38d6a4
BuildArch:      noarch
f073ccd
c8af0a6
# Needs pytest and others, but hypothesis is built sooner than pytest when bootstrapping
c8af0a6
%bcond_without tests
ec82102
%bcond_without doc
ec82102
ec82102
%if %{with doc}
ec82102
# Manpage
ec82102
BuildRequires:  %{_bindir}/sphinx-build
7f22d3b
BuildRequires:  %{py3_dist sphinx-hoverxref}
7f22d3b
BuildRequires:  %{py3_dist sphinx-rtd-theme}
7f22d3b
BuildRequires:  %{py3_dist sphinx_selective_exclude}
ec82102
%endif
c8af0a6
7f22d3b
%global _description %{expand:
7f22d3b
Hypothesis is a library for testing your Python code against a much
7f22d3b
larger range of examples than you would ever want to write by
7f22d3b
hand. It’s based on the Haskell library, Quickcheck, and is designed
7f22d3b
to integrate seamlessly into your existing Python unit testing work
7f22d3b
flow.}
d445d31
d6de9d4
%description %{_description}
d6de9d4
e44857e
%package     -n python%{python3_pkgversion}-%{srcname}
584fbb6
Summary:        %{summary}
e44857e
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
a23493a
Obsoletes:      platform-python-%{srcname} < %{version}-%{release}
e44857e
BuildRequires:  python%{python3_pkgversion}-devel
e44857e
BuildRequires:  python%{python3_pkgversion}-setuptools
7f22d3b
BuildRequires:  %{py3_dist attrs} >= 19.2.0
7f22d3b
BuildRequires:  %{py3_dist sortedcontainers}
c8af0a6
%if %{with tests}
8710abd
BuildRequires:  black
7f22d3b
BuildRequires:  %{py3_dist lark-parser}
7f22d3b
BuildRequires:  %{py3_dist numpy}
7f22d3b
BuildRequires:  %{py3_dist pandas}
7f22d3b
BuildRequires:  %{py3_dist pexpect}
7f22d3b
BuildRequires:  %{py3_dist pytest}
7f22d3b
BuildRequires:  %{py3_dist pytest-xdist}
7f22d3b
BuildRequires:  %{py3_dist typing-extensions}
c8af0a6
%endif
7f22d3b
Requires:       %{py3_dist sortedcontainers}
7f22d3b
Suggests:       %{py3_dist pytz} >= 2014.1
7f22d3b
Suggests:       %{py3_dist numpy} >= 1.9.0
7f22d3b
Suggests:       %{py3_dist pytest} >= 3.0
d38d6a4
e44857e
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
d6de9d4
cbd22f3
Python 3 version.
f073ccd
d38d6a4
%prep
cf0fc0c
%autosetup -n %{srcname}-%{srcname}-python-%{version}/%{srcname}-python -p2
9c3f9f4
# disable Sphinx extensions that require Internet access
9c3f9f4
sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py
d445d31
c8af0a6
# remove tests we cannot run
7f22d3b
rm -r tests/dpcontracts tests/redis # missing deps
c8af0a6
d38d6a4
%build
f073ccd
%py3_build
ec82102
%if %{with doc}
fbdb3cd
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
ec82102
%endif
f073ccd
d38d6a4
%install
d445d31
%py3_install
ec82102
%if %{with doc}
f3aed1b
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1
ec82102
%endif
d38d6a4
c8af0a6
%if %{with tests}
c8af0a6
%check
7f22d3b
%pytest -v -n auto \
7f22d3b
  -k "not test_healthcheck_traceback_is_hidden and not test_registered_from_entrypoint"
c8af0a6
%endif
c8af0a6
e44857e
%files -n python%{python3_pkgversion}-%{srcname}
cbd22f3
%license ../LICENSE.txt
d445d31
%doc README.rst
8710abd
%{_bindir}/hypothesis
3826556
%{python3_sitelib}/hypothesis-*.egg-info
3826556
%{python3_sitelib}/hypothesis/
ec82102
%if %{with doc}
d445d31
%{_mandir}/man1/hypothesis.1*
ec82102
%endif
f073ccd
d38d6a4
%changelog
eeddc37
* Mon Feb 01 2021 Miro Hrončok <mhroncok@redhat.com> - 5.43.9-1
eeddc37
- Update to 5.43.9
eeddc37
c455f91
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.41.3-2
c455f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c455f91
7f22d3b
* Sun Nov 22 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.41.3-1
7f22d3b
- Update to 5.41.3
7f22d3b
- Use py3_dist macro
7f22d3b
- Disable Redis tests (missing dependency)
7f22d3b
- Enable lark-parser tests
7f22d3b
65a4191
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 5.29.4-2
65a4191
- Remove build dependencies on mock and coverage
65a4191
13da45a
* Fri Aug 28 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.29.4-1
13da45a
- Update to 5.29.4
13da45a
c686fa2
* Fri Aug 28 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.29.3-1
c686fa2
- Update to 5.29.3
c686fa2
8710abd
* Tue Aug 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.29.0-1
8710abd
- Update to 5.29.0
8710abd
65c84c4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.20.3-2
65c84c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
65c84c4
f0f6d4d
* Tue Jul 21 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.20.3-1
f0f6d4d
- Update to 5.20.3
f0f6d4d
8af63a5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 5.15.1-3
8af63a5
- Rebuilt for Python 3.9
8af63a5
240d27f
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 5.15.1-2
240d27f
- Bootstrap for Python 3.9
240d27f
3389ab1
* Thu May 21 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.15.1-1
3389ab1
- Update to 5.15.1
3389ab1
- Upstream now verifies against Python 3.9 pre-releases in CI
3389ab1
13b568d
* Sat May 16 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.14.0-1
13b568d
- Update to 5.14.0
13b568d
242ffb3
* Wed May 13 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.13.1-1
242ffb3
- Update to 5.13.1
242ffb3
- Python 3.9 fix now upstreamed
242ffb3
cf0fc0c
* Tue May 12 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.13.0-1
cf0fc0c
- Update to 5.13.0
cf0fc0c
- Fix NamedTuple detection on Python 3.9
cf0fc0c
9648cba
* Mon May 11 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.12.0-1
9648cba
- Update to 5.12.0
9648cba
9648cba
* Wed May  6 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.10.5-1
7b9fd15
- Update to 5.10.5
7b9fd15
2b8af06
* Sat Apr 25 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.10.4-1
2b8af06
- Update to 5.10.4
2b8af06
444fff5
* Wed Apr 22 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.10.3-1
444fff5
- Update to 5.10.3
444fff5
241d316
* Sun Apr 12 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.8.2-1
241d316
- Update to 5.8.2
241d316
b63a6b8
* Tue Apr  7 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.8.0-2
b63a6b8
- Manually add requirement on sortedcontainers
b63a6b8
afe78cb
* Tue Apr  7 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.8.0-1
afe78cb
- Update to 5.8.0
afe78cb
a726522
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.23.8-7
a726522
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a726522
2327470
* Mon Nov 11 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-6
2327470
- Drop python2-hypothesis
2327470
4d3cce9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-5
4d3cce9
- Rebuilt for Python 3.8.0rc1 (#1748018)
4d3cce9
a406458
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-4
a406458
- Rebuilt for Python 3.8
a406458
c85ffba
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-3
c85ffba
- Bootstrap for Python 3.8
c85ffba
e4d8381
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.23.8-2
e4d8381
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e4d8381
f8e8af8
* Tue May 28 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-1
f8e8af8
- Update to 4.23.8 (#1711096)
f8e8af8
6b190f6
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.4-1
6b190f6
- Update to 4.23.4 (#1609770)
6b190f6
d7fb540
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.9.0-1
d7fb540
- Update to 4.9.0
d7fb540
18de50c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.66.11-2
18de50c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
18de50c
fc7ddd8
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.66.11-1
fc7ddd8
- Update to 3.66.11
fc7ddd8
0b6d856
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.66.0-2
0b6d856
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0b6d856
cbd22f3
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.66.0-1
cbd22f3
- Update to 3.66.0
cbd22f3
7947c81
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.56.7-1
7947c81
- Update to 3.56.7
7947c81
41d15db
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 3.49.0-2
41d15db
- Rebuilt for Python 3.7
41d15db
015c638
* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.49.0-1
015c638
- Update to 3.49.0
015c638
cab9486
* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.47.0-1
cab9486
- Update to 3.47.0
cab9486
a83dda3
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.24-4
a83dda3
- Pick up automatic dependency from generator
a83dda3
ba38b31
* Sat Feb 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.24-3
ba38b31
- Add missing dependency on enum34
ba38b31
78bf544
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.44.24-2
78bf544
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
78bf544
de250cd
* Sun Jan 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.24-1
de250cd
- Update to 3.44.24
de250cd
7181b72
* Sat Jan 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.18-1
7181b72
- Update to 3.44.18
7181b72
1f7d95a
* Mon Jan 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.17-1
1f7d95a
- Update to 3.44.17
1f7d95a
063dcf6
* Sun Jan 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.16-1
063dcf6
- Update to 3.44.16
063dcf6
d84f045
* Tue Jan 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.14-1
d84f045
- Update to 3.44.14
d84f045
10fb028
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.12-1
10fb028
- Update to 3.44.12
10fb028
ac6da0e
* Sun Dec 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.44.4-1
ac6da0e
- Update to 3.44.4
ac6da0e
6b8bfef
* Wed Dec 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.42.2-1
6b8bfef
- Update to 3.42.2
6b8bfef
f3aed1b
* Thu Nov 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.38.4-1
f3aed1b
- Update to 3.38.4
f3aed1b
9e7435a
* Sun Nov 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.38.0-1
9e7435a
- Update to 3.38.0
9e7435a
0e262d6
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.37.0-1
0e262d6
- Update to 3.37.0
0e262d6
2e78c5d
* Sun Nov 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.36.1-1
2e78c5d
- Update to 3.36.1
2e78c5d
a23493a
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.36.0-2
a23493a
- Use better Obsoletes for platform-python
a23493a
21b9943
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.36.0-1
21b9943
- Update to 3.36.0
21b9943
3826556
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.34.1-1
3826556
- Update to 3.34.1
3826556
5496c90
* Sat Nov 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.34.0-1
5496c90
- Update to 3.34.0
5496c90
3207db2
* Thu Nov 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.33.1-1
3207db2
- Update to 3.33.1
3207db2
54b4917
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.12.0-4
54b4917
- Rebuilt for rhbz#1484607
54b4917
f073ccd
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 3.12.0-3
f073ccd
- Added the platform-python subpackage
f073ccd
d2758f5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
d2758f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d2758f5
2f31c25
* Mon Jul 10 2017 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.12.0-1
2f31c25
- Update to 3.12.0
2f31c25
- Reenable docs in EPEL7
2f31c25
88aa9d8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-4
88aa9d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88aa9d8
4331b8b
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.4.0-3
4331b8b
- Rebuild for Python 3.6
4331b8b
4ae1a67
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
4ae1a67
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4ae1a67
9487d2e
* Sun May 29 2016 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.4.0-1
9487d2e
- Update to 3.4.0
9487d2e
- Version the explicit Provides
9487d2e
5b5cd6a
* Wed May 04 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.1.3-1
5b5cd6a
- Update to 3.1.3
5b5cd6a
- Remove unused code
5b5cd6a
- Remove unused dependencies
5b5cd6a
c955852
* Sun Feb 14 2016 Michel Salim <salimma@fedoraproject.org> - 2.0.0-1
c955852
- Update to 2.0.0
c955852
17c60f4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-3
17c60f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
17c60f4
dd5c6fb
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
dd5c6fb
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
dd5c6fb
a5986d9
* Fri Sep 25 2015 Michel Salim <salimma@fedoraproject.org> - 1.11.2-1
a5986d9
- Update to 1.11.2
a5986d9
d445d31
* Sun Sep 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11.1-1
d445d31
- Update to 1.11.1
d445d31
74f99a9
* Wed Sep  2 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11.0-1
74f99a9
- Update to 1.11.0
74f99a9
899e465
* Tue Sep  1 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-3
899e465
- Re-disable tests for now
899e465
e80bd62
* Tue Sep  1 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-2
e80bd62
- Disable Python3 tests - need debugging on ARM builders
e80bd62
edb1f06
* Mon Aug 31 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-1
edb1f06
- Update to 1.10.6
edb1f06
- Enable tests
edb1f06
d50397b
* Fri Aug  7 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.0-1
d50397b
- Update to 1.10
d50397b
32393e9
* Wed Jul 29 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.9.0-1
32393e9
- Update to 1.9.0
32393e9
d38d6a4
* Fri Jul 24 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.5-2
d38d6a4
- Remove she-bang from tools/mergedbs.py
d38d6a4
- Include manpage
d38d6a4
d38d6a4
* Fri Jul 24 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.5-1
d38d6a4
- Update to 1.8.5
d38d6a4
- Make Python3 build unconditional
d38d6a4
d38d6a4
* Thu Jul 23 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.2-1
d38d6a4
- Initial package