From f785d06f9e795e9d2eec58085f437e87827a4eae Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 17 Dec 2024 16:23:06 +0300 Subject: [PATCH] import python-execnet-2.1.1-4.el10 --- .gitignore | 3 +- .python-execnet.metadata | 1 + .../python-execnet.spec | 101 +++++++++++++----- sources | 1 - 4 files changed, 77 insertions(+), 29 deletions(-) create mode 100644 .python-execnet.metadata rename python-execnet.spec => SPECS/python-execnet.spec (79%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index d0b80e8..3724489 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/execnet-*.tar.gz -/execnet-*.zip +SOURCES/execnet-2.1.1.tar.gz diff --git a/.python-execnet.metadata b/.python-execnet.metadata new file mode 100644 index 0000000..a05b9d5 --- /dev/null +++ b/.python-execnet.metadata @@ -0,0 +1 @@ +80f44189499cab60a01e98bb87cf194803691c63 SOURCES/execnet-2.1.1.tar.gz diff --git a/python-execnet.spec b/SPECS/python-execnet.spec similarity index 79% rename from python-execnet.spec rename to SPECS/python-execnet.spec index 6d2206a..0d3a6d1 100644 --- a/python-execnet.spec +++ b/SPECS/python-execnet.spec @@ -1,8 +1,13 @@ %global srcname execnet +# Some of the BuildRequires are used in tests only when installed. +# To speedup bootstrap of the next Python version in Fedora +# we allow disabling them. +%bcond optional_test_deps %{undefined rhel} + Name: python-%{srcname} -Version: 1.9.0 -Release: 3%{?dist} +Version: 2.1.1 +Release: 4%{?dist} Summary: Distributed Python deployment and communication License: MIT URL: https://github.com/pytest-dev/execnet @@ -10,9 +15,9 @@ Source0: %pypi_source BuildArch: noarch BuildRequires: make -BuildRequires: %{_bindir}/ps +BuildRequires: /usr/bin/ps -%description +%global _description %{expand: execnet provides a share-nothing model with channel-send/receive communication for distributing execution across many Python interpreters across version, platform and network barriers. It has a @@ -21,30 +26,21 @@ minimal and fast API targetting the following uses: * distribute tasks to (many) local or remote CPUs * write and deploy hybrid multi-process applications * write scripts to administer multiple environments +} +%description %_description %package -n python3-%{srcname} Summary: Elastic Python Deployment BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm -BuildRequires: python3-apipkg -BuildRequires: python3-pytest -#BuildRequires: python3-eventlet -- not yet ready for Python 3.10 +%if %{with optional_test_deps} +#BuildRequires: python3-eventlet -- retired in Fedora 41+ BuildRequires: python3-gevent -BuildRequires: python3-pytest-timeout +%endif BuildRequires: %{_bindir}/sphinx-build-3 %{?python_provide:%python_provide python3-%{srcname}} -%description -n python3-%{srcname} -execnet provides a share-nothing model with channel-send/receive -communication for distributing execution across many Python -interpreters across version, platform and network barriers. It has a -minimal and fast API targetting the following uses: - - * distribute tasks to (many) local or remote CPUs - * write and deploy hybrid multi-process applications - * write scripts to administer multiple environments +%description -n python3-%{srcname} %_description %prep @@ -55,17 +51,22 @@ find . -type f -a \( -name '*.py' -o -name 'py.*' \) \ -exec chmod u=rw,go=r {} \; +%generate_buildrequires +%pyproject_buildrequires -t + + %build SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%py3_build -make -C doc html PYTHONPATH=$(pwd) +%pyproject_wheel +make -C doc html PYTHONPATH=$(pwd)/src # remove hidden file rm doc/_build/html/.buildinfo %install SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%py3_install +%pyproject_install +%pyproject_save_files -l execnet %check @@ -73,22 +74,70 @@ PYTEST_SELECT='not test_popen_io[gevent-sys.executable]' PYTEST_SELECT+=' and not [gevent-socket]' PYTEST_SELECT+=' and not [eventlet-socket]' PYTEST_SELECT+=' and not [python2.7]' -PYTHONPATH=$(pwd) \ +PYTHONPATH=$(pwd)/src \ py.test-%{python3_version} -r s \ -k "$PYTEST_SELECT" \ testing \ --timeout=30 -%files -n python3-%{srcname} -%{python3_sitelib}/%{srcname}*/ +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst -%doc CHANGELOG.rst %doc doc/_build/html %license LICENSE %changelog +* Tue Dec 17 2024 Arkady L. Shane - 2.1.1-4 +- Rebuilt for MSVSphere 10 + +* Mon Aug 12 2024 Miro Hrončok - 2.1.1-4 +- Generate BuildRequires instead of manually listing them +- Drop some unused BuildRequires + +* Fri Jul 19 2024 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.1.1-2 +- Bootstrap for Python 3.13 + +* Sun Apr 14 2024 Thomas Moschny - 2.1.1-1 +- Update to 2.1.1. +- Modernize spec file. + +* Fri Jan 26 2024 Fedora Release Engineering - 1.9.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.9.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.9.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 16 2023 Miro Hrončok - 1.9.0-11 +- Run gevent tests during build + +* Wed Jun 14 2023 Python Maint - 1.9.0-10 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.9.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Nov 30 2022 Lumír Balhar - 1.9.0-8 +- Fix compatibility with pytest 7.2 (#2142053) + +* Fri Jul 22 2022 Fedora Release Engineering - 1.9.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jun 18 2022 Python Maint - 1.9.0-6 +- Rebuilt for Python 3.11 + +* Wed Jun 15 2022 Ali Erdinc Koroglu - 1.9.0-5 +- apipkg dependency removed from 1.9.0 + +* Tue Jun 14 2022 Python Maint - 1.9.0-4 +- Rebuilt for Python 3.11 + * Fri Jan 21 2022 Fedora Release Engineering - 1.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources deleted file mode 100644 index c2c1fe1..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (execnet-1.9.0.tar.gz) = d425e7b6f3708efecb5dfa2c36a837cb55f2c32cf2ec0c1dc11cd1ca6ea614d119d04908b84dd5a3593c87db35e71fee202f843665c853ac3538479f60c83d60