From e59546760ca5dfce6e24dfd091f69c746a8114c3ecba3cbf3968ca845d6bb915 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 8 Jul 2025 04:54:43 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=2027.0.0=20=20=20*=20The=20Cyth?= =?UTF-8?q?on=20backend=20has=20been=20rewritten=20using=20Cython=203?= =?UTF-8?q?=E2=80=99s=20pure=20Python=20=20=20=20=20mode.=20=20=20*=20The?= =?UTF-8?q?=20build=20system=20has=20been=20rewritten=20to=20use=20CMake?= =?UTF-8?q?=20via=20scikit-build-core=20=20=20=20=20instead=20of=20setupto?= =?UTF-8?q?ols=20=20=20*=20Bundled=20libzmq=20is=20updated=20to=204.3.5,?= =?UTF-8?q?=20which=20changes=20its=20license=20from=20=20=20=20=20LGPL=20?= =?UTF-8?q?to=20MPL.=20=20=20*=20Many=20smaller=20changes,=20see=20upstrea?= =?UTF-8?q?m=20chngelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=123 --- pytest.ini | 8 +++++--- python-pyzmq.changes | 12 ++++++++++++ python-pyzmq.spec | 30 +++++++----------------------- pyzmq-25.1.2.tar.gz | 3 --- pyzmq-27.0.0.tar.gz | 3 +++ 5 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 pyzmq-25.1.2.tar.gz create mode 100644 pyzmq-27.0.0.tar.gz diff --git a/pytest.ini b/pytest.ini index b445f2a..3a816c2 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,11 +1,13 @@ [pytest] -addopts = --durations 10 +addopts = --durations 10 --import-mode=importlib markers = large: these tests use a lot of memory new_console: these tests create a new console wheel: these tests are for installs from a wheel, not dev-installs +# import-mode=importlib doesn't put testpaths on sys.path +pythonpath = tests testpaths = - zmq/tests - + tests # automatically run coroutine tests with asyncio asyncio_mode = auto +asyncio_default_fixture_loop_scope = function diff --git a/python-pyzmq.changes b/python-pyzmq.changes index 743c87e..c031602 100644 --- a/python-pyzmq.changes +++ b/python-pyzmq.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jul 7 10:27:31 UTC 2025 - Markéta Machová + +- Update to 27.0.0 + * The Cython backend has been rewritten using Cython 3’s pure Python + mode. + * The build system has been rewritten to use CMake via scikit-build-core + instead of setuptools + * Bundled libzmq is updated to 4.3.5, which changes its license from + LGPL to MPL. + * Many smaller changes, see upstream chngelog + ------------------------------------------------------------------- Wed Jun 11 05:49:39 UTC 2025 - Steve Kowalik diff --git a/python-pyzmq.spec b/python-pyzmq.spec index 3105811..4db9a66 100644 --- a/python-pyzmq.spec +++ b/python-pyzmq.spec @@ -26,7 +26,7 @@ %endif %{?sle15_python_module_pythons} Name: python-pyzmq -Version: 25.1.2 +Version: 27.0.0 Release: 0 Summary: Python bindings for 0MQ License: BSD-3-Clause AND LGPL-3.0-or-later @@ -34,13 +34,13 @@ URL: https://github.com/zeromq/pyzmq Source: https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz # For test markers Source1: https://raw.githubusercontent.com/zeromq/pyzmq/v%{version}/pytest.ini -BuildRequires: %{python_module Cython} -BuildRequires: %{python_module devel >= 3.6} -BuildRequires: %{python_module packaging} +BuildRequires: %{python_module Cython >= 3} +BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module scikit-build-core} BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: gcc-c++ BuildRequires: python-rpm-macros BuildRequires: zeromq-devel Recommends: python-gevent @@ -97,14 +97,6 @@ cp %{SOURCE1} ./ find examples zmq -name "*.py" -exec sed -i "s|#\!\/usr\/bin\/env python||" {} \; chmod -x examples/pubsub/topics_pub.py examples/pubsub/topics_sub.py -# See https://github.com/zeromq/pyzmq/blob/master/setup.cfg.template -echo ' -[global] -skip_check_zmq = False -zmq_prefix = %{_prefix} -no_libzmq_extension = True -'>> setup.cfg - %build export CFLAGS="%{optflags}" %pyproject_wheel @@ -116,25 +108,17 @@ export CFLAGS="%{optflags}" %if %{with tests} %check export LANG=en_US.UTF-8 -# This test wants to build a custom cython extension, but does -# not have the source files installed into the buildroot -SKIPPED_TESTS+=" or test_cython" # unreliable socket handling in obs environment SKIPPED_TESTS+=" or test_log" %if 0%{?suse_version} < 1550 # tries to open a network connection on older distributions SKIPPED_TESTS+=" or test_null or test_int_sockopts" %endif -# temporarily disable to build with OpenSSL 3.0 bsc#1205042 -SKIPPED_TESTS+=" or test_on_recv_basic" -mkdir cleantest -pushd cleantest -%pytest_arch --pyargs zmq -k "not (${SKIPPED_TESTS:4})" --timeout 1200 -popd +%pytest_arch --pyargs zmq -k "not (${SKIPPED_TESTS:4})" --timeout 1200 tests %endif %files %{python_files} -%license LICENSE.BSD LICENSE.LESSER +%license LICENSE.md %doc AUTHORS.md README.md examples %{python_sitearch}/zmq %{python_sitearch}/pyzmq-%{version}.dist-info diff --git a/pyzmq-25.1.2.tar.gz b/pyzmq-25.1.2.tar.gz deleted file mode 100644 index d182c46..0000000 --- a/pyzmq-25.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93f1aa311e8bb912e34f004cf186407a4e90eec4f0ecc0efd26056bf7eda0226 -size 1402339 diff --git a/pyzmq-27.0.0.tar.gz b/pyzmq-27.0.0.tar.gz new file mode 100644 index 0000000..d7d2a7d --- /dev/null +++ b/pyzmq-27.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1f08eeb9ce1510e6939b6e5dcd46a17765e2333daae78ecf4606808442e52cf +size 280478