diff --git a/hypothesis-3.12.0-offline.patch b/hypothesis-3.12.0-offline.patch deleted file mode 100644 index 3da71574fd0c80531614f9366c28dddbefeb48d5..0000000000000000000000000000000000000000 --- a/hypothesis-3.12.0-offline.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- 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 deleted file mode 100644 index 0b2c517c2155c87f6d3e98a03d0838345c2003aa..0000000000000000000000000000000000000000 Binary files a/hypothesis-3.66.11.tar.gz and /dev/null differ diff --git a/hypothesis-Add-support-for-positional-only-arguments.patch b/hypothesis-Add-support-for-positional-only-arguments.patch deleted file mode 100644 index 46b3375f62ad4e2fbdf0b92e1310a851ebb8ec89..0000000000000000000000000000000000000000 --- a/hypothesis-Add-support-for-positional-only-arguments.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 8f47297fa2e19c426a42b06bb5f8bf1406b8f0f3 Mon Sep 17 00:00:00 2001 -From: Paul Ganssle -Date: Mon, 29 Apr 2019 15:12:28 -0400 -Subject: [PATCH] Add support for positional only arguments - -PEP 570 adds "positional only" arguments to Python, which changes the -code object constructor. This adds support for Python 3.8. - -Fixes GH #1943: https://github.com/HypothesisWorks/hypothesis/issues/1943 ---- - hypothesis-python/src/hypothesis/internal/compat.py | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/hypothesis-python/src/hypothesis/internal/compat.py b/hypothesis-python/src/hypothesis/internal/compat.py -index 73305bacd2..58f63715ac 100644 ---- a/src/hypothesis/internal/compat.py -+++ b/src/hypothesis/internal/compat.py -@@ -392,6 +392,10 @@ def get_type_hints(thing): - 'co_cellvars', - ] - -+ if sys.version_info >= (3, 8, 0): -+ # PEP 570 added "positional only arguments" -+ CODE_FIELD_ORDER.insert(1, "co_posonlyargcount") -+ - - def update_code_location(code, newfile, newlineno): - """Take a code object and lie shamelessly about where it comes from. diff --git a/hypothesis-python-5.20.3.tar.gz b/hypothesis-python-5.20.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..228a43616a4ab0b214f862e065ecd6b831b7b1fe Binary files /dev/null and b/hypothesis-python-5.20.3.tar.gz differ diff --git a/python-hypothesis.spec b/python-hypothesis.spec index dd17b46491eb4165bbe79977337b0b1d14387c40..e918f766ecfe1e13ac31819faf75b8488739a019 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -1,13 +1,11 @@ %{?python_enable_dependency_generator} Name: python-hypothesis -Version: 3.66.11 -Release: 3 +Version: 5.20.3 +Release: 1 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 -Patch0000: hypothesis-3.12.0-offline.patch -Patch0001: hypothesis-Add-support-for-positional-only-arguments.patch +Source0: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-%{version}.tar.gz BuildRequires: python-sphinx BuildArch: noarch @@ -16,16 +14,6 @@ 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 @@ -49,12 +37,10 @@ Help document for the python-hypothesis %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 @@ -62,17 +48,15 @@ PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man %{_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 +* Sat Aug 8 2020 tianwei - 5.20.3-1 +- update release to 5.20.3 + * Wed Jun 24 2020 lingsheng - 3.66.11-3 - Add support for positional only arguments