Blame python-hypothesis.spec

d445d31
%global srcname hypothesis
d38d6a4
d445d31
Name:           python-%{srcname}
6b8bfef
Version:        3.42.2
2e78c5d
Release:        1%{?dist}
584fbb6
Summary:        Library for property based testing
d38d6a4
d38d6a4
License:        MPLv2.0
2f31c25
URL:            https://github.com/HypothesisWorks/hypothesis-python
d0c7b71
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
9d8c2c5
# disable Sphinx extensions that require Internet access
2f31c25
Patch0:         %{srcname}-3.12.0-offline.patch
d38d6a4
cae9e13
# Manpage
cae9e13
BuildRequires:  %{_bindir}/sphinx-build
cae9e13
d38d6a4
BuildArch:      noarch
f073ccd
d6de9d4
%global _description \
d6de9d4
Hypothesis is a library for testing your Python code against a much\
d6de9d4
larger range of examples than you would ever want to write by\
d6de9d4
hand. It’s based on the Haskell library, Quickcheck, and is designed\
d6de9d4
to integrate seamlessly into your existing Python unit testing work\
d445d31
flow.
d445d31
d6de9d4
%description %{_description}
d6de9d4
d445d31
%package     -n python2-%{srcname}
584fbb6
Summary:        %{summary}
3302d51
BuildRequires:  python2-devel
3207db2
BuildRequires:  python2-attrs
3207db2
BuildRequires:  python2-coverage
3302d51
BuildRequires:  python2-enum34
5b5cd6a
%{?python_provide:%python_provide python2-%{srcname}}
3207db2
Requires:       python2-attrs
3207db2
Requires:       python2-coverage
3207db2
Requires:       python2-enum34
26fc529
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
8699790
Suggests:       python2-numpy
8699790
Suggests:       python2-pytz
7410982
%endif
d38d6a4
d6de9d4
%description -n python2-%{srcname} %{_description}
d6de9d4
d6de9d4
Python 2 version.
f073ccd
ead9c24
%package     -n python3-%{srcname}
584fbb6
Summary:        %{summary}
3302d51
BuildRequires:  python3-devel
3302d51
BuildRequires:  python3-setuptools
3207db2
BuildRequires:  python3-attrs
3207db2
BuildRequires:  python3-coverage
ead9c24
%{?python_provide:%python_provide python3-%{srcname}}
3207db2
Requires:       python3-attrs
3207db2
Requires:       python3-coverage
26fc529
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
ead9c24
Suggests:       python3-numpy
ead9c24
Suggests:       python3-pytz
2f31c25
%endif
a23493a
Obsoletes:      platform-python-%{srcname} < %{version}-%{release}
d38d6a4
d6de9d4
%description -n python3-%{srcname} %{_description}
d6de9d4
d6de9d4
Python 2 version.
f073ccd
d38d6a4
%prep
5b5cd6a
%autosetup -n %{srcname}-python-%{version} -p1
d445d31
d38d6a4
%build
d445d31
%py2_build
f073ccd
%py3_build
fbdb3cd
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
f073ccd
d38d6a4
%install
d445d31
%py2_install
d445d31
%py3_install
f3aed1b
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1
d38d6a4
d445d31
%files -n python2-%{srcname}
d445d31
%license LICENSE.txt
d445d31
%doc README.rst
3826556
%{python2_sitelib}/hypothesis-*.egg-info/
3826556
%{python2_sitelib}/hypothesis/
d38d6a4
%{_mandir}/man1/hypothesis.1*
d38d6a4
ead9c24
%files -n python3-%{srcname}
d445d31
%license LICENSE.txt
d445d31
%doc README.rst
3826556
%{python3_sitelib}/hypothesis-*.egg-info
3826556
%{python3_sitelib}/hypothesis/
d445d31
%{_mandir}/man1/hypothesis.1*
f073ccd
d38d6a4
%changelog
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