[packages/python3-eventlet] - up to 0.39.1
baggins
baggins at pld-linux.org
Mon Apr 7 20:09:56 CEST 2025
commit c5a508a30280cf053cdf9d6e3f7a58e2a95b960d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Apr 7 20:54:45 2025 +0200
- up to 0.39.1
python-eventlet.spec => python3-eventlet.spec | 102 ++++----------------------
1 file changed, 16 insertions(+), 86 deletions(-)
---
diff --git a/python-eventlet.spec b/python3-eventlet.spec
similarity index 52%
rename from python-eventlet.spec
rename to python3-eventlet.spec
index aaad4c5..197fe16 100644
--- a/python-eventlet.spec
+++ b/python3-eventlet.spec
@@ -2,45 +2,29 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests (random timeouts on builders)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Highly concurrent networking library for Python 2
Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
-Name: python-eventlet
-Version: 0.33.1
+Name: python3-eventlet
+Version: 0.39.1
Release: 1
License: MIT
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/eventlet/
Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
-# Source0-md5: 538c969ce38b7e8dc09e789adb1aec33
+# Source0-md5: 00206ce34e033f9a8167270c29c4b24d
URL: https://pypi.org/project/eventlet/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.7
-BuildRequires: python-setuptools >= 1:5.4.1
-%if %{with tests}
-BuildRequires: python-dns >= 1.15.0
-BuildRequires: python-enum34
-BuildRequires: python-greenlet >= 0.3
-BuildRequires: python-monotonic >= 1.4
-BuildRequires: python-nose >= 1.3.1
-BuildRequires: python-six >= 1.10.0
-BuildRequires: python-subprocess32
-%endif
-%endif
-%if %{with python3}
BuildRequires: python3-devel >= 1:3.5
-BuildRequires: python3-setuptools >= 1:5.4.1
+BuildRequires: python3-build
+BuildRequires: python3-installer
%if %{with tests}
BuildRequires: python3-dns >= 1.15.0
BuildRequires: python3-greenlet >= 0.3
BuildRequires: python3-nose >= 1.3.1
BuildRequires: python3-six >= 1.10.0
%endif
-%endif
%if %{with doc}
BuildRequires: python3-dns >= 1.15.0
BuildRequires: python3-greenlet >= 0.3
@@ -50,7 +34,7 @@ BuildRequires: sphinx-pdg >= 2
# SO_REUSEPORT option for tests.convenience_test.test_socket_reuse
BuildRequires: uname(release) >= 3.9
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -76,34 +60,6 @@ ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
interpretera Pythona lub jako małej części dużej aplikacji.
-%package -n python3-eventlet
-Summary: Highly concurrent networking library for Python 3
-Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 3
-Group: Development/Languages/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-eventlet
-Eventlet is a concurrent networking library for Python that allows you
-to change how you run your code, not how you write it.
-
-It uses epoll or libevent for highly scalable non-blocking I/O.
-Coroutines ensure that the developer uses a blocking style of
-programming that is similar to threading, but provide the benefits of
-non-blocking I/O. The event dispatch is implicit, which means you can
-easily use Eventlet from the Python interpreter, or as a small part of
-a larger application.
-
-%description -n python3-eventlet -l pl.UTF-8
-Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
-zmianę sposobu uruchamiania kodu bez sposobu pisania go.
-
-Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
-nieblokujących operacji we/wy. Korutyny zapewniają, że programista
-korzysta z blokującego stylu programowania, podobnego do wątkowego,
-ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
-domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
-interpretera Pythona lub jako małej części dużej aplikacji.
-
%package apidocs
Summary: API documentation for eventlet module
Summary(pl.UTF-8): Dokumentacja API modułu eventlet
@@ -125,63 +81,37 @@ Dokumentacja API modułu eventlet.
%{__rm} tests/mysqldb_test.py
%build
-%if %{with python2}
-%py_build
+%py3_build_pyproject
%if %{with tests}
-PYTHONPATH=$(pwd) \
-nosetests-%{py_ver} tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-nosetests-%{py3_ver} tests
-%endif
+#PYTHONPATH=$(pwd) \
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
-%{__make} -C doc -j1 html
+sphinx-build-3 -b html doc/source doc/source/_build/html
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc AUTHORS LICENSE NEWS README.rst
-%{py_sitescriptdir}/eventlet
-%{py_sitescriptdir}/eventlet-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-eventlet
-%defattr(644,root,root,755)
-%doc AUTHORS LICENSE NEWS README.rst
%{py3_sitescriptdir}/eventlet
-%{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/eventlet-%{version}.dist-info
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc doc/_build/html/{_images,_static,modules,*.html,*.js}
+%doc doc/source/_build/html/{_images,_static,modules,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-eventlet.git/commitdiff/c5a508a30280cf053cdf9d6e3f7a58e2a95b960d
More information about the pld-cvs-commit
mailing list