commit 5e7a23e25ffb84cbf590dbe64f025f58fbad64ac Author: lkx690 Date: Tue Dec 3 17:35:36 2019 +0800 inital python-hypothesis diff --git a/hypothesis-3.12.0-offline.patch b/hypothesis-3.12.0-offline.patch new file mode 100644 index 0000000..3da7157 --- /dev/null +++ b/hypothesis-3.12.0-offline.patch @@ -0,0 +1,10 @@ +--- hypothesis-python-3.12.0/docs/conf.py.orig 2017-07-06 23:59:48.000000000 -0700 ++++ hypothesis-python-3.12.0/docs/conf.py 2017-07-10 22:27:58.643985059 -0700 +@@ -40,7 +40,6 @@ + 'sphinx.ext.doctest', + 'sphinx.ext.extlinks', + 'sphinx.ext.viewcode', +- 'sphinx.ext.intersphinx', + ] + + templates_path = ['_templates'] diff --git a/hypothesis-3.66.11.tar.gz b/hypothesis-3.66.11.tar.gz new file mode 100644 index 0000000..0b2c517 Binary files /dev/null and b/hypothesis-3.66.11.tar.gz differ diff --git a/python-hypothesis.spec b/python-hypothesis.spec new file mode 100644 index 0000000..a5d14e6 --- /dev/null +++ b/python-hypothesis.spec @@ -0,0 +1,76 @@ +%{?python_enable_dependency_generator} +Name: python-hypothesis +Version: 3.66.11 +Release: 2 +Summary: based testing for python code +License: MPLv2.0 +URL: https://github.com/HypothesisWorks/hypothesis-python +Source0: %{url}/archive/hypothesis-python-%{version}/hypothesis-%{version}.tar.gz +Patch0: hypothesis-3.12.0-offline.patch +BuildRequires: python-sphinx +BuildArch: noarch + +%description +This package provides a library called hypothesis for testing Python code, +which has more examples and is based on the Haskell library, Quickcheck, +which is used to integrate directly into your existing Python unit testing work. + +%package -n python2-hypothesis +Summary: based testing for python code +%{?python_provide:%python_provide python2-hypothesis} +BuildRequires: python2-devel python2-setuptools python2dist(attrs) + +%description -n python2-hypothesis +This package provides a library called hypothesis for testing Python code, +which has more examples and is based on the Haskell library, Quickcheck, +which is used to integrate directly into your existing Python unit testing work. +Python 2 version. + +%package -n python3-hypothesis +Summary: based testing for python code +%{?python_provide:%python_provide python3-hypothesis} +Obsoletes: platform-python-hypothesis < %{version}-%{release} +BuildRequires: python3-devel python3-setuptools python3dist(attrs) + +%description -n python3-hypothesis +This package provides a library called hypothesis for testing Python code, +which has more examples and is based on the Haskell library, Quickcheck, +which is used to integrate directly into your existing Python unit testing work. +Python 3 version. + +%package help +Summary: help document for the python-hypothesis + +%description help +Help document for the python-hypothesis + +%prep +%autosetup -n hypothesis-hypothesis-python-%{version}/hypothesis-python -p1 + +%build +%py2_build +%py3_build +PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man + +%install +%py2_install +%py3_install +%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1 + +%files help +%{_mandir}/man1/hypothesis.1* +%doc README.rst + +%files -n python2-hypothesis +%doc ../LICENSE.txt +%{python2_sitelib}/hypothesis-*.egg-info/ +%{python2_sitelib}/hypothesis/ + +%files -n python3-hypothesis +%doc ../LICENSE.txt +%{python3_sitelib}/hypothesis-*.egg-info +%{python3_sitelib}/hypothesis/ + +%changelog +* Thu Nov 28 2019 likexin - 3.66.11-2 +- Package init