From 219ab46bb1bc1d89b77f0a14006f0263cc249470 Mon Sep 17 00:00:00 2001 From: Carl George Date: Jul 26 2022 23:56:10 +0000 Subject: Convert to pyproject macros --- diff --git a/.gitignore b/.gitignore index 9c5de18..5058344 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ eventlet-0.9.9.tar.gz /v0.32.0.zip /v0.33.0.zip /v0.33.1.zip +/eventlet-0.33.1.tar.gz diff --git a/python-eventlet.spec b/python-eventlet.spec index cc1cb53..d3c3fef 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -1,63 +1,47 @@ -%global modname eventlet -%{?python_enable_dependency_generator} +%global srcname eventlet +%global _description %{expand: +Eventlet is a networking library written in Python. It achieves high +scalability by using non-blocking io while at the same time retaining +high programmer usability by using coroutines to make the non-blocking +io operations appear blocking at the source code level.} -Name: python-%{modname} +Name: python-%{srcname} Version: 0.33.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Highly concurrent networking library License: MIT -URL: http://eventlet.net -Source0: https://github.com/eventlet/%{modname}/archive/v%{version}.zip +URL: https://eventlet.net +Source: %pypi_source %{srcname} BuildArch: noarch -%description -Eventlet is a networking library written in Python. It achieves high -scalability by using non-blocking io while at the same time retaining -high programmer usability by using coroutines to make the non-blocking -io operations appear blocking at the source code level. +%description %{_description} -%package -n python3-%{modname} +%package -n python3-%{srcname} Summary: %{summary} -BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3dist(greenlet) >= 0.3 -BuildRequires: python3dist(monotonic) >= 1.4 -BuildRequires: python3dist(six) >= 1.10 BuildRequires: python3-nose BuildRequires: python3-pyOpenSSL -BuildRequires: python3dist(dnspython) >= 1.15 -BuildRequires: python3dist(dnspython) < 3 - -%{?python_provide:%python_provide python3-%{modname}} +%description -n python3-%{srcname} %{_description} - -%description -n python3-%{modname} -Eventlet is a networking library written in Python. It achieves high -scalability by using non-blocking io while at the same time retaining -high programmer usability by using coroutines to make the non-blocking -io operations appear blocking at the source code level. - -%package -n python3-%{modname}-doc -Summary: Documentation for python3-%{modname} +%package -n python3-%{srcname}-doc +Summary: Documentation for python3-%{srcname} BuildRequires: python3-sphinx BuildRequires: python3-zmq -%description -n python3-%{modname}-doc +%description -n python3-%{srcname}-doc %{summary}. %prep -%setup -n %{modname}-%{version} -q -# Remove dependency on enum-compat from setup.py -# enum-compat is not needed for Python 3 -sed -i "/'enum-compat',/d" setup.py -rm -vrf *.egg-info +%setup -n %{srcname}-%{version} -q + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel # Disable setting up dns (we have no /etc/resolv.conf in mock export EVENTLET_NO_GREENDNS=yes @@ -65,8 +49,8 @@ export PYTHONPATH=$(pwd) sphinx-build-%{python3_version} -b html -d doctrees doc html-3 %install -%py3_install -rm -vrf %{buildroot}%{python3_sitelib}/tests +%pyproject_install +%pyproject_save_files %{srcname} %check # Disable setting up dns (we have no /etc/resolv.conf in mock @@ -74,17 +58,17 @@ export EVENTLET_NO_GREENDNS=yes # Tests are written only for Python 3 nosetests-%{python3_version} -v -e greendns_test -e socket_test -e test_patcher_existing_locks_locked -e test_017_ssl_zeroreturnerror -%files -n python3-%{modname} -%doc README.rst AUTHORS LICENSE NEWS -%license LICENSE -%{python3_sitelib}/%{modname}/ -%{python3_sitelib}/%{modname}-*.egg-info/ +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.rst AUTHORS NEWS -%files -n python3-%{modname}-doc +%files -n python3-%{srcname}-doc %license LICENSE %doc html-3 %changelog +* Tue Jul 26 2022 Carl George - 0.33.1-4 +- Convert to pyproject macros + * Fri Jul 22 2022 Fedora Release Engineering - 0.33.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 8b8115e..7da0d08 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -SHA512 (dnspython-1.16.0.zip) = d3f71b726b7722d17b761674b44a7ca0975eeff7f9fb2fb507df0b1aaac975ddce097246340ea5809c6a7563b6851a34f43012b5cb8a37926879746b59e92575 -SHA512 (v0.33.0.zip) = 0bbdff403e1420652e959bcf8dc0f48ef1421537d4d500949054ac2ad4201304a62e0aecc0842569c553f48ddd89e4ad5afc743299fe9d8f4c87571ddf83f016 -SHA512 (v0.33.1.zip) = ac01bc13f270c51417c3193ace6260ffd04149fd1800cc90f16cdee4a91e9657264d34d5a2a5ad77fd513a4a4e393b5a1e247503c22963496e04ff1e65e9c2c2 +SHA512 (eventlet-0.33.1.tar.gz) = c8ece6a26039631b13ecc188f480f348a42551267fb6135551899dec7a23d0cfd032c14728e114901e4d256bf580203bfbdb1795881abdd71e49a53f8ed58964