Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
95321ccdb2
!22 Update package to version 6.98.9
From: @jxy_git 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-02-21 01:50:23 +00:00
jxy_git
3256d4f9a4 Update package to version 6.98.9 2024-02-20 14:41:49 +08:00
openeuler-ci-bot
c7ebf63a61
!14 update to upstream version 6.79.0
From: @desert-sailor 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-06-25 08:12:27 +00:00
desert-sailor
b2271ca5a4 Upgrade to version 6.79.0 2023-06-25 16:05:13 +08:00
openeuler-ci-bot
0213a93c4e
!11 python-hypothesis升级至6.47.0版本
From: @wu-leilei 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-07-12 11:04:44 +00:00
wu-leilei
952298701f Upgrade to 6.47.0 2022-07-08 11:19:09 +08:00
openeuler-ci-bot
43654dc04f !4 Disable Sphinx extensions that require Internet access
From: @ultra_planet
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-03-02 18:07:10 +08:00
lingsheng
d641e3b896 Disable Sphinx extensions that require Internet access 2021-03-02 16:50:25 +08:00
openeuler-ci-bot
68de367e5b !3 update to 5.20.3
Merge pull request !3 from tianwei/master
2020-08-08 16:49:42 +08:00
weiwei_150212
d5a0d5d6c2 update to release 5.20.3 2020-08-08 16:14:10 +08:00
5 changed files with 24 additions and 66 deletions

View File

@ -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']

Binary file not shown.

BIN
hypothesis-6.98.9.tar.gz Normal file

Binary file not shown.

View File

@ -1,28 +0,0 @@
From 8f47297fa2e19c426a42b06bb5f8bf1406b8f0f3 Mon Sep 17 00:00:00 2001
From: Paul Ganssle <paul@ganssle.io>
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.

View File

@ -1,13 +1,11 @@
%{?python_enable_dependency_generator} %{?python_enable_dependency_generator}
Name: python-hypothesis Name: python-hypothesis
Version: 3.66.11 Version: 6.98.9
Release: 3 Release: 1
Summary: based testing for python code Summary: based testing for python code
License: MPLv2.0 License: MPLv2.0
URL: https://github.com/HypothesisWorks/hypothesis-python URL: https://github.com/HypothesisWorks/hypothesis
Source0: %{url}/archive/hypothesis-python-%{version}/hypothesis-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/b3/93/45cc0666c848efe13871668b2aa5aa210425598aad671d6974da8a78d0e6/hypothesis-6.98.9.tar.gz
Patch0000: hypothesis-3.12.0-offline.patch
Patch0001: hypothesis-Add-support-for-positional-only-arguments.patch
BuildRequires: python-sphinx BuildRequires: python-sphinx
BuildArch: noarch 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 has more examples and is based on the Haskell library, Quickcheck,
which is used to integrate directly into your existing Python unit testing work. 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 %package -n python3-hypothesis
Summary: based testing for python code Summary: based testing for python code
@ -46,33 +34,41 @@ Summary: help document for the python-hypothesis
Help document for the python-hypothesis Help document for the python-hypothesis
%prep %prep
%autosetup -n hypothesis-hypothesis-python-%{version}/hypothesis-python -p1 %autosetup -n hypothesis-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
%install %install
%py2_install
%py3_install %py3_install
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1
%files help %files help
%{_mandir}/man1/hypothesis.1*
%doc README.rst %doc README.rst
%files -n python2-hypothesis
%doc ../LICENSE.txt
%{python2_sitelib}/hypothesis-*.egg-info/
%{python2_sitelib}/hypothesis/
%files -n python3-hypothesis %files -n python3-hypothesis
%doc ../LICENSE.txt %license LICENSE.txt
%{python3_sitelib}/_hypothesis_*.py
%{python3_sitelib}/__pycache__/_hypothesis_*.pyc
%{_bindir}/hypothesis
%{python3_sitelib}/hypothesis-*.egg-info %{python3_sitelib}/hypothesis-*.egg-info
%{python3_sitelib}/hypothesis/ %{python3_sitelib}/hypothesis/
%changelog %changelog
* Tue Feb 20 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 6.98.9-1
- Update package to version 6.98.9
* Sun Jun 18 2023 Dongxing Wang <dxwangk@isoftstone.com> - 6.79.0-1
- Upgrade package to version 6.79.0
* Thu Jul 7 2022 wulei <wulei80@h-partners.com> - 6.47.0-1
- Upgrade to 6.47.0
* Tue Mar 2 2021 lingsheng<lingsheng@huawei.com> - 5.20.3-2
- Disable Sphinx extensions that require Internet access
* Sat Aug 8 2020 tianwei<tianwei12@huawei.com> - 5.20.3-1
- update release to 5.20.3
* Wed Jun 24 2020 lingsheng<lingsheng@huawei.com> - 3.66.11-3 * Wed Jun 24 2020 lingsheng<lingsheng@huawei.com> - 3.66.11-3
- Add support for positional only arguments - Add support for positional only arguments