From 2f31c2579e2e400d805b486776e66d87847b25c6 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jul 11 2017 05:53:58 +0000 Subject: Update to 3.12.0 Reenable docs in EPEL7 --- diff --git a/.gitignore b/.gitignore index 78577a7..fe46ab3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/hypothesis-3.4.0.tar.gz +/hypothesis-3.12.0.tar.gz diff --git a/hypothesis-2.0.0-offline.patch b/hypothesis-2.0.0-offline.patch deleted file mode 100644 index 57a95dc..0000000 --- a/hypothesis-2.0.0-offline.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- hypothesis-2.0.0/docs/conf.py.offline 2016-01-11 00:47:23.000000000 +0700 -+++ hypothesis-2.0.0/docs/conf.py 2016-02-14 10:50:58.790136352 +0700 -@@ -33,7 +33,6 @@ - extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.viewcode', -- 'sphinx.ext.intersphinx', - ] - - templates_path = ['_templates'] diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 004e9a9..796c1fd 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -1,26 +1,24 @@ -%{!?__python2: %global __python2 /usr/bin/python2} %global srcname hypothesis +%global sum A library for property based testing Name: python-%{srcname} -Version: 3.4.0 -Release: 4%{?dist} -Summary: A library for property based testing +Version: 3.12.0 +Release: 1%{?dist} +Summary: %{sum} License: MPLv2.0 -URL: https://github.com/DRMacIver/hypothesis -Source0: https://github.com/DRMacIver/hypothesis/archive/%{version}.tar.gz#/hypothesis-%{version}.tar.gz +URL: https://github.com/HypothesisWorks/hypothesis-python +Source0: %{url}/archive/%{version}.tar.gz#/hypothesis-%{version}.tar.gz # disable Sphinx extensions that require Internet access -Patch0: %{srcname}-2.0.0-offline.patch +Patch0: %{srcname}-3.12.0-offline.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-sphinx BuildRequires: python-enum34 - -%if 0%{?fedora} -BuildRequires: python3-devel -%endif +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %description Hypothesis is a library for testing your Python code against a much @@ -35,12 +33,10 @@ Summary: A library for property based testing Obsoletes: python-%{srcname} < 1.11.1-1 Requires: python-enum34 -%if 0%{?fedora} %{?python_provide:%python_provide python2-%{srcname}} +%if 0%{?fedora} Suggests: numpy Suggests: pytz -%else -Provides: python-hypothesis = %{version}-%{release} %endif %description -n python2-%{srcname} @@ -51,21 +47,20 @@ to integrate seamlessly into your existing Python unit testing work flow. -%if 0%{?fedora} -%package -n python3-%{srcname} +%package -n python%{python3_pkgversion}-%{srcname} Summary: A library for property based testing -%{?python_provide:%python_provide python3-%{srcname}} - -Suggests: python3-numpy -Suggests: python3-pytz +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +%if 0%{?fedora} +Suggests: python%{python3_pkgversion}-numpy +Suggests: python%{python3_pkgversion}-pytz +%endif -%description -n python3-%{srcname} +%description -n python%{python3_pkgversion}-%{srcname} 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. -%endif %prep @@ -76,43 +71,36 @@ flow. %build -%if 0%{?fedora} %py2_build %py3_build -READTHEDOCS=True sphinx-build -b man docs docs/_build/man -%else -%{__python2} setup.py build -%endif +PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man %install -%if 0%{?fedora} %py2_install %py3_install %{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \ $RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1 -%else -%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot} -%endif %files -n python2-%{srcname} %license LICENSE.txt %doc README.rst %{python2_sitelib}/* -%if 0%{?fedora} %{_mandir}/man1/hypothesis.1* -%endif -%if 0%{?fedora} -%files -n python3-%{srcname} +%files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt %doc README.rst %{python3_sitelib}/* %{_mandir}/man1/hypothesis.1* -%endif + %changelog +* Mon Jul 10 2017 Michel Alexandre Salim - 3.12.0-1 +- Update to 3.12.0 +- Reenable docs in EPEL7 + * Sat Feb 11 2017 Fedora Release Engineering - 3.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index f1254a8..5eda8e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c123bc1c62545d18cd243e3964000357 hypothesis-3.4.0.tar.gz +SHA512 (hypothesis-3.12.0.tar.gz) = 7f82d2c8f2e2c875dd050b6403dff6aa6fee20f176920e74d155de1fbc311369d608f3d637b497480d27bca3cc3caee9d0c683c0b7e44daad62317ddbe893f8a