From d799f9be9b553a83289c6184d3a5bcec2b914d48 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 15 Jan 2024 11:01:00 +0300 Subject: [PATCH] import python-hypothesis-6.39.1-1.el9 --- .gitignore | 2 +- .python-hypothesis.metadata | 2 +- SPECS/python-hypothesis.spec | 317 ++++++++++++++++++++++++++++++----- 3 files changed, 275 insertions(+), 46 deletions(-) diff --git a/.gitignore b/.gitignore index 2aff7e7..1b380c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/hypothesis-3.44.24.tar.gz +SOURCES/hypothesis-6.39.1.tar.gz diff --git a/.python-hypothesis.metadata b/.python-hypothesis.metadata index f2fdbb7..d1abed5 100644 --- a/.python-hypothesis.metadata +++ b/.python-hypothesis.metadata @@ -1 +1 @@ -aedb18222bbbb7e9f50d5dd58c5c7d156f0ab4af SOURCES/hypothesis-3.44.24.tar.gz +8f8d99c0853615cebeb22884ef91d2b057f69fad SOURCES/hypothesis-6.39.1.tar.gz diff --git a/SPECS/python-hypothesis.spec b/SPECS/python-hypothesis.spec index 7064e6f..ec1cf3a 100644 --- a/SPECS/python-hypothesis.spec +++ b/SPECS/python-hypothesis.spec @@ -1,71 +1,299 @@ -%{?python_enable_dependency_generator} -%global srcname hypothesis - -Name: python-%{srcname} -Version: 3.44.24 -Release: 6%{?dist} +## START: Set by rpmautospec +## (rpmautospec version 0.2.5) +%define autorelease(e:s:pb:) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} +## END: Set by rpmautospec + +%if 0%{?el9} +# Needs pytest-xdist and typing-extensions which pull in a bunch of BRs, see +# missing-epel9-test-brs.json +%bcond_with tests +%bcond_with doc +%else +%bcond_without tests +%bcond_without doc +%endif + +Name: python-hypothesis +Version: 6.39.1 +Release: %autorelease Summary: Library for property based testing License: MPLv2.0 -URL: https://github.com/HypothesisWorks/hypothesis-python -Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz -# disable Sphinx extensions that require Internet access -Patch0: %{srcname}-3.12.0-offline.patch +URL: https://github.com/HypothesisWorks/hypothesis +Source0: %{url}/archive/hypothesis-python-%{version}/hypothesis-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: pyproject-rpm-macros >= 0-43 -# Manpage +%if %{with tests} +# optional test dependencies: +BuildRequires: %{py3_dist typing_extensions} +%endif + +%if %{with doc} BuildRequires: %{_bindir}/sphinx-build +BuildRequires: %{py3_dist sphinx-hoverxref} +BuildRequires: %{py3_dist sphinx-rtd-theme} +BuildRequires: %{py3_dist sphinx_selective_exclude} +%endif -BuildArch: noarch -%global _description \ -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. +%global _description %{expand: +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.} %description %{_description} -%package -n python3-%{srcname} + +%package -n python%{python3_pkgversion}-hypothesis Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -Obsoletes: platform-python-%{srcname} < %{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3dist(attrs) -BuildRequires: python3dist(coverage) -Suggests: python%{python3_version}dist(pytz) -Suggests: python%{python3_version}dist(numpy) >= 1.9.0 -Suggests: python%{python3_version}dist(pytest) >= 2.8.0 - -%description -n python3-%{srcname} %{_description} + +%description -n python%{python3_pkgversion}-hypothesis %{_description} + + +%global extras cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django +# extras with missing deps: +# codemods: libcst +# dpcontracts: dpcontracts +%{pyproject_extras_subpkg -n python%{python3_pkgversion}-hypothesis %{extras}} + %prep -%autosetup -n %{srcname}-python-%{version} -p1 +%autosetup -n hypothesis-hypothesis-python-%{version}/hypothesis-python -p2 +# disable Sphinx extensions that require Internet access +sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py +# disable Sphinx non-available extensions +sed -i -e '/sphinx_codeautolink/d' docs/conf.py + + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:../requirements/test.in -x %{extras}} + %build -%py3_build +%pyproject_wheel + +%if %{with doc} PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man +%endif + %install -%py3_install -%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1 +%pyproject_install +%pyproject_save_files hypothesis + +%if %{with doc} +install -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1 +%endif -%files -n python3-%{srcname} -%license LICENSE.txt + +%if %{with tests} +%check +k="not test_registered_from_entrypoint" + +# https://github.com/HypothesisWorks/hypothesis/issues/3035 +k="$k and not test_recursion_error_is_not_flaky" + +# https://github.com/pandas-dev/pandas/commit/95a86a9884e +%if "%{_arch}" == "s390x" +k="$k and not test_data_frames_with_timestamp_columns" +%endif + +%pytest -v -n auto -k "$k" \ + --ignore tests/codemods \ + --ignore tests/dpcontracts \ + --ignore tests/redis \ + +# The BRP that handles bytecompilation already run at the end of %%install. +# This autogenerated file gets re-generated during tests, +# the tests asserts the content is identical, but the mtime is changed anyway. +# Since %%pytest disables byte-compilation, we need to update the pycs manually: +%py_byte_compile %{python3} %{buildroot}%{python3_sitelib}/hypothesis/internal/conjecture/shrinking/learned_dfas.py +%endif + + +%files -n python%{python3_pkgversion}-hypothesis -f %{pyproject_files} +%license ../LICENSE.txt %doc README.rst -%{python3_sitelib}/hypothesis-*.egg-info -%{python3_sitelib}/hypothesis/ +%{python3_sitelib}/_hypothesis_pytestplugin.py +%{python3_sitelib}/__pycache__/_hypothesis_pytestplugin*.pyc +%{_bindir}/hypothesis +%if %{with doc} %{_mandir}/man1/hypothesis.1* +%endif + %changelog -* Mon Jul 09 2018 Petr Viktorin - 3.44.24-6 -- Remove the python2 subpackage - https://bugzilla.redhat.com/show_bug.cgi?id=1590811 +* Mon Jan 15 2024 Arkady L. Shane - 6.39.1-1 +- Rebuilt for MSVSphere 9.3 + +* Thu Mar 03 2022 Miro Hrončok 6.39.1-1 +- Update to 6.39.1, fix regression in @proxies + +* Wed Mar 02 2022 Michel Alexandre Salim 6.39.0-1 +- Update to 6.39.0 (resolves: rhbz#2048882) + +* Fri Jan 21 2022 Michel Alexandre Salim 6.36.0-1 +- Update to 6.36.0 (resolves: rhbz#2022978) + +* Fri Jan 21 2022 Fedora Release Engineering - 6.24.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Nov 12 2021 Lumír Balhar - 6.24.2-1 +- Update to 6.24.2 +Resolves: rhbz#1986184 + +* Mon Jul 19 2021 Miro Hrončok - 6.14.3-1 +- Update to 6.14.3 +- Fixes: rhbz#1937016 +- Fixes: rhbz#1902285 + +* Fri Jun 04 2021 Python Maint - 6.6.0-4 +- Rebuilt for Python 3.10 + +* Wed Jun 02 2021 Python Maint - 6.6.0-3 +- Bootstrap for Python 3.10 + +* Thu Mar 11 2021 Miro Hrončok - 6.6.0-2 +- Skip test_data_frames_with_timestamp_columns on s390x until Pandas is fixed + +* Mon Mar 08 2021 Miro Hrončok - 6.6.0-1 +- Update to 6.6.0 +- Add subpackages with extras +- Fix python-bytecode-inconsistent-mtime of learned_dfas.py +- Fixes: rhbz#1902400 + +* Mon Feb 01 2021 Miro Hrončok - 5.43.9-1 +- Update to 5.43.9 -* Mon Jun 25 2018 Petr Viktorin - 3.44.24-5 -- Allow Python 2 for build - see https://hurl.corp.redhat.com/rhel8-py2 +* Wed Jan 27 2021 Fedora Release Engineering - 5.41.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Nov 22 2020 Michel Alexandre Salim - 5.41.3-1 +- Update to 5.41.3 +- Use py3_dist macro +- Disable Redis tests (missing dependency) +- Enable lark-parser tests + +* Fri Nov 13 2020 Miro Hrončok - 5.29.4-2 +- Remove build dependencies on mock and coverage + +* Fri Aug 28 2020 Michel Alexandre Salim - 5.29.4-1 +- Update to 5.29.4 + +* Fri Aug 28 2020 Michel Alexandre Salim - 5.29.3-1 +- Update to 5.29.3 + +* Tue Aug 25 2020 Michel Alexandre Salim - 5.29.0-1 +- Update to 5.29.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 5.20.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Michel Alexandre Salim - 5.20.3-1 +- Update to 5.20.3 + +* Tue May 26 2020 Miro Hrončok - 5.15.1-3 +- Rebuilt for Python 3.9 + +* Fri May 22 2020 Miro Hrončok - 5.15.1-2 +- Bootstrap for Python 3.9 + +* Thu May 21 2020 Michel Alexandre Salim - 5.15.1-1 +- Update to 5.15.1 +- Upstream now verifies against Python 3.9 pre-releases in CI + +* Sat May 16 2020 Michel Alexandre Salim - 5.14.0-1 +- Update to 5.14.0 + +* Wed May 13 2020 Michel Alexandre Salim - 5.13.1-1 +- Update to 5.13.1 +- Python 3.9 fix now upstreamed + +* Tue May 12 2020 Michel Alexandre Salim - 5.13.0-1 +- Update to 5.13.0 +- Fix NamedTuple detection on Python 3.9 + +* Mon May 11 2020 Michel Alexandre Salim - 5.12.0-1 +- Update to 5.12.0 + +* Wed May 6 2020 Michel Alexandre Salim - 5.10.5-1 +- Update to 5.10.5 + +* Sat Apr 25 2020 Michel Alexandre Salim - 5.10.4-1 +- Update to 5.10.4 + +* Wed Apr 22 2020 Michel Alexandre Salim - 5.10.3-1 +- Update to 5.10.3 + +* Sun Apr 12 2020 Michel Alexandre Salim - 5.8.2-1 +- Update to 5.8.2 + +* Tue Apr 7 2020 Michel Alexandre Salim - 5.8.0-2 +- Manually add requirement on sortedcontainers + +* Tue Apr 7 2020 Michel Alexandre Salim - 5.8.0-1 +- Update to 5.8.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 4.23.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 11 2019 Miro Hrončok - 4.23.8-6 +- Drop python2-hypothesis + +* Thu Oct 03 2019 Miro Hrončok - 4.23.8-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 4.23.8-4 +- Rebuilt for Python 3.8 + +* Thu Aug 15 2019 Miro Hrončok - 4.23.8-3 +- Bootstrap for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 4.23.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 28 2019 Miro Hrončok - 4.23.8-1 +- Update to 4.23.8 (#1711096) + +* Thu May 09 2019 Miro Hrončok - 4.23.4-1 +- Update to 4.23.4 (#1609770) + +* Sat Mar 09 2019 Igor Gnatenko - 4.9.0-1 +- Update to 4.9.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 3.66.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 28 2018 Igor Gnatenko - 3.66.11-1 +- Update to 3.66.11 + +* Sat Jul 14 2018 Fedora Release Engineering - 3.66.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jul 07 2018 Igor Gnatenko - 3.66.0-1 +- Update to 3.66.0 + +* Sat Jul 07 2018 Igor Gnatenko - 3.56.7-1 +- Update to 3.56.7 + +* Thu Jun 14 2018 Miro Hrončok - 3.49.0-2 +- Rebuilt for Python 3.7 + +* Mon Mar 12 2018 Igor Gnatenko - 3.49.0-1 +- Update to 3.49.0 + +* Mon Mar 12 2018 Igor Gnatenko - 3.47.0-1 +- Update to 3.47.0 * Sun Feb 11 2018 Igor Gnatenko - 3.44.24-4 - Pick up automatic dependency from generator @@ -202,3 +430,4 @@ PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man * Thu Jul 23 2015 Michel Alexandre Salim - 1.8.2-1 - Initial package +