- Update to 0.21.0

* Add cleanup_socket param on create_unix_server()
  * Use cythonized SO_REUSEPORT rather than the unwrapped native one (#609)
  * UDP errors should result in protocol.error_received (#601)
  * Updates for Cython3 (#587)
  * Test with Python 3.13 (#610)
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvloop?expand=0&rev=32
This commit is contained in:
Dirk Mueller 2024-10-29 17:05:04 +00:00 committed by Git OBS Bridge
commit 1d87941cd1
8 changed files with 283 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

166
python-uvloop.changes Normal file
View File

@ -0,0 +1,166 @@
-------------------------------------------------------------------
Tue Oct 29 11:20:43 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.21.0
* Add cleanup_socket param on create_unix_server()
* Use cythonized SO_REUSEPORT rather than the unwrapped native one (#609)
* UDP errors should result in protocol.error_received (#601)
* Updates for Cython3 (#587)
* Test with Python 3.13 (#610)
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
Mon Oct 7 20:54:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.20.0:
* Upgrade libuv to v1.48.0
* Fix test_create_server_4 with Python 3.12.5
* Use len(os.sched_getaffinity(0)) instead of os.cpu_count()
* Inline _Py_RestoreSignals() from CPython
-------------------------------------------------------------------
Fri Dec 29 09:59:34 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.19.0:
* Drop support of Python 3.7 and update CI (#578)
* Restore uvloop.new_event_loop and other missing uvloop
members to typing (#573)
* Fix docstring of loop.shutdown_default_executor (#535)
- update to 0.18.0:
* CI fixes (#520, #553)
* Make extract_stack resilient to lacking frames. (#563)
* Port uvloop to Python 3.12 (#570)
-------------------------------------------------------------------
Mon Aug 14 06:55:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
- limit to Cython < 3
-------------------------------------------------------------------
Tue Jul 4 13:13:21 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Wed Oct 12 18:17:57 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.17.0
* This release adds Python 3.11 support, updates bundled libuv to 1.43.0
and fixes a handful of issues.
* visit https://github.com/MagicStack/uvloop/releases/tag/v0.17.0 for more changelog for 0.17.0
-------------------------------------------------------------------
Thu Sep 9 14:04:48 UTC 2021 - Fusion Future <qydwhotmail@gmail.com>
- Add libuv >= 1.28.0 BuildRequires.
(https://github.com/MagicStack/uvloop/commit/c2b65bc8d2e1bb759a755adb255f095fb40ce953)
- Do not include autogenerated source code (loop.c).
- Add rpmlintrc to suppress devel-file-in-non-devel-package messages.
-------------------------------------------------------------------
Mon Aug 30 16:07:06 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.16.0:
* Python 3.10 support (#432)
* Bump vendored libuv to 1.42.0 (#433)
* Use cibuildwheel to build wheels (#435)
* Add support for <timer handle>.when()
* Fix ref issue when protocol is in Cython
* Set python_requires in setup.py
* SSL: schedule first data after waiter wakeup
* Fix a possible race condition in sslproto test
* Fix call_soon_threadsafe thread safety
- from version 0.15.3:
* SSL: schedule first data after waiter wakeup
* Fix a possible race condition in sslproto test
* Fix call_soon_threadsafe thread safety
- from version 0.15.2:
* Add python_requires in setup.py to fix dependency resolution issues
- from version 0.15.1:
* Fix a segfault issue when a Cython protocol is de-referencing
itself from Context.run() callbacks
- from version 0.15.0:
* Add name keyword argument to loop.create_task()
* Add typing support
* SSL: many improvements
* Fix KeyboardInterrupt handling logic
* Python 3.8/3.9 compatibility fixes, drop support for 3.5/3.6
* UDP: multiple bug fixes
* Pipe: a critical crash fix that affects subprocess, pipe and socketpair
* Restore context on protocol callbacks
* Subprocess: stdio bug fixes
* Sock: fix issue in sock_connect() for large concurrency
* Misc fixes about docs URL, test typo, and CI compatibility
* Check Cython version semantically
* Add .flake8 to distribution tarball
* Switch to Github actions
* Bump libuv to v1.40.0
- Disable build on Python 3.6
-------------------------------------------------------------------
Wed Nov 6 10:54:23 CET 2019 - Matej Cepl <mcepl@suse.com>
- Update to 0.14.0:
- Add support for Python 3.8
- numerous bug fixes
-------------------------------------------------------------------
Tue Sep 10 09:29:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.13.0:
* Implement Server.start_serving() and related APIs
* Make Server an asynchronous context manager.
* Start using high-performance uv_udp_t handle. This
should result in a significantly faster UDP support.
* Make address validation faster in udp.sendto().
-------------------------------------------------------------------
Tue May 14 20:31:01 UTC 2019 - Drew Balliet <aballiet@suse.com>
- Commented out testing since it is timing out at 5400 seconds in build service
-------------------------------------------------------------------
Thu Mar 21 11:05:07 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.2
* Fix circular references in SSL implementation
* Fix a memory leak in call_later() and call_at()
* Round (instead of flooring) delay in call_later()
-------------------------------------------------------------------
Thu Feb 28 15:00:03 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.12.1
* Fix a circular references case in SSL implementation.
* Cleanup references to callbacks in canceled callback handles.
* New SSL implementation. The new implementation is faster and
and more complete, and will become the default SSL implementation
in asyncio 3.8. This is a significant change that warrants a release
candidate to make sure it is tested properly.
* New uvloop.install() helper function.
* ssl.CertificateError is no longer logged as it's delivered to
the Protocol.connection_lost() anyways.
* Improve UDPTransport.sendto() performance.
-------------------------------------------------------------------
Wed Feb 13 12:24:56 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Distribute again the .c files as they are needed by parts
of the py app rh#1639457
- Do not distribute the tests
-------------------------------------------------------------------
Thu Oct 25 12:22:16 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Tests are flaky, thus continue even if we fail...
-------------------------------------------------------------------
Sun Oct 14 09:52:45 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Ensure neutrality of description.
-------------------------------------------------------------------
Thu Oct 11 15:49:36 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- initial package version 0.11.2

4
python-uvloop.rpmlintrc Normal file
View File

@ -0,0 +1,4 @@
# The devel files identified by rpmlint are required for
# uvloop, it does not make sense to put them in a separate
# devel package
addFilter("devel-file-in-non-devel-package")

80
python-uvloop.spec Normal file
View File

@ -0,0 +1,80 @@
#
# spec file for package python-uvloop
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname uvloop
%{?sle15_python_module_pythons}
Name: python-uvloop
Version: 0.21.0
Release: 0
Summary: An asyncio event loop on top of libuv
License: Apache-2.0 AND MIT
Group: Development/Languages/Python
URL: http://github.com/MagicStack/uvloop
Source: https://files.pythonhosted.org/packages/source/u/uvloop/uvloop-%{version}.tar.gz
Source1: python-uvloop.rpmlintrc
BuildRequires: %{python_module Cython >= 3.0}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libuv) >= 1.28.0
%python_subpackages
%description
uvloop is a drop-in replacement of the built-in asyncio
event loop. uvloop is implemented in Cython and uses libuv
under the hood.
%prep
%setup -q -n uvloop-%{version}
# always use cython to generate code
sed -i -e "/self.cython_always/s/False/True/" setup.py
# use system libuv
sed -i -e "/self.use_system_libuv/s/False/True/" setup.py
# To be sure, no 3rd-party stuff
rm -vrf vendor/
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# https://github.com/MagicStack/uvloop/issues/70
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/_testbase.py
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/__pycache__/_testbase.*
# Remove autogenerated source code
%python_expand rm -vf %{buildroot}%{$python_sitearch}/%{modname}/loop.c
%check
# Actually the tests are VERY flaky, thus continue even if they fail :(
#%%python_exec setup.py test || :
%files %{python_files}
%license LICENSE-APACHE LICENSE-MIT
%doc README.rst
%{python_sitearch}/uvloop
%{python_sitearch}/uvloop-%{version}.dist-info
%changelog

3
uvloop-0.19.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0246f4fd1bf2bf702e06b0d45ee91677ee5c31242f39aab4ea6fe0c51aedd0fd
size 2318492

BIN
uvloop-0.20.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
uvloop-0.21.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bf12b0fda68447806a7ad847bfa591613177275d35b6724b1ee573faa3704e3
size 2492741