Accepting request 872200 from home:bnavigator:branches:devel:languages:python
- Update to 22.0.3 - Don't test numpy on python36 flavor, because python36-numpy is no longer available in Tumbleweed (NEP 29) - Make sure we use the Cython backend, not CFFI, wich is for PyPy. * fixes gh#zeromq/pyzmq#1431 and gh#zeromq/pyzmq#1432 - Remove skip_test_tracker.patch - Got an oom error on the build service: Require at least 8GB of RAM through _constraints file OBS-URL: https://build.opensuse.org/request/show/872200 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=93
This commit is contained in:
parent
fff7603583
commit
6dd4546c28
7
_constraints
Normal file
7
_constraints
Normal file
@ -0,0 +1,7 @@
|
||||
<constraints>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="M">8000</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
</constraints>
|
@ -1,3 +1,50 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 14 17:15:28 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 22.0.3
|
||||
* Fix fork-safety bug in garbage collection thread (regression
|
||||
in 20.0) when using subprocesses.
|
||||
- Changes in 22.0.1
|
||||
* Fix type of Frame.bytes for non-copying recvs with CFFI
|
||||
backend (regression in 21.0)
|
||||
- Changes in 22.0.0
|
||||
* This is a major release due to changes in wheels and building
|
||||
on Windows. Code changes from 21.0 are minimal.
|
||||
* Some typing fixes
|
||||
* Bump bundled libzmq to 4.3.4
|
||||
- Relevant Changes in 21.0
|
||||
* pyzmq 21 is a major version bump because of dropped support
|
||||
for old Pythons and some changes in packaging. CPython users
|
||||
should not face major compatibility issues if installation
|
||||
works at all :) PyPy users may see issues with the new
|
||||
implementation of send/recv. If you do, please report them!
|
||||
The big changes are:
|
||||
* drop support for Python 3.5. Python >= 3.6 is required
|
||||
* mypy type stubs, which should improve static analysis of
|
||||
pyzmq, especially for dynamically defined attributes such as
|
||||
zmq constants. These are new! Let us know if you find any
|
||||
issues.
|
||||
* support for zero-copy and sending bufferables with cffi
|
||||
backend. This is experimental! Please report issues.
|
||||
Packaging updates:
|
||||
* Require Python >= 3.6, required for good type annotation
|
||||
support
|
||||
* rework cffi backend in setup.py
|
||||
New features:
|
||||
* zero-copy support in CFFI backend (send(copy=False) now does
|
||||
something).
|
||||
* Support sending any buffer-interface-providing objects in CFFI
|
||||
backend.
|
||||
Bugs fixed:
|
||||
* Errors during teardown of asyncio Sockets
|
||||
- Don't test numpy on python36 flavor, because python36-numpy is
|
||||
no longer available in Tumbleweed (NEP 29)
|
||||
- Make sure we use the Cython backend, not CFFI, wich is for PyPy.
|
||||
* fixes gh#zeromq/pyzmq#1431 and gh#zeromq/pyzmq#1432
|
||||
- Remove skip_test_tracker.patch
|
||||
- Got an oom error on the build service: Require at least 8GB of
|
||||
RAM through _constraints file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 25 16:26:52 UTC 2020 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyzmq
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -26,41 +26,43 @@
|
||||
%bcond_with tests
|
||||
%endif
|
||||
Name: python-pyzmq
|
||||
Version: 20.0.0
|
||||
Version: 22.0.3
|
||||
Release: 0
|
||||
Summary: Python bindings for 0MQ
|
||||
License: LGPL-3.0-or-later AND BSD-3-Clause
|
||||
URL: https://github.com/zeromq/pyzmq
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz
|
||||
Source1: python-pyzmq-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE skip_test_tracker.patch
|
||||
Patch1: skip_test_tracker.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module cffi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module gevent}
|
||||
# Test requirements
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module pexpect}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module devel >= 3.6}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module simplejson}
|
||||
BuildRequires: %{python_module tornado}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: zeromq-devel
|
||||
Requires: python
|
||||
# SECTION Test requirements
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module simplejson}
|
||||
BuildRequires: %{python_module tornado}
|
||||
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
||||
# /SECTION
|
||||
# SECTION pypy3 is not in openSUSE at the moment, it would use the cffi backend
|
||||
BuildRequires: %{python_module cffi if (%python with pypy3)}
|
||||
BuildRequires: %{python_module py if (%python with pypy3)}
|
||||
%if "%{python_flavor}" == "pypy3"
|
||||
Requires: python-cffi
|
||||
Requires: python-py
|
||||
%endif
|
||||
# /SECTION
|
||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||
Recommends: python-cffi
|
||||
Recommends: python-gevent
|
||||
Recommends: python-numpy
|
||||
Recommends: python-paramiko
|
||||
Recommends: python-pexpect
|
||||
Recommends: python-py
|
||||
Suggests: python-paramiko
|
||||
Recommends: python-simplejson
|
||||
Recommends: python-tornado
|
||||
Recommends: zeromq
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@ -84,6 +86,13 @@ Development libraries and headers needed to build software using %{name}.
|
||||
find examples zmq -name "*.py" -exec sed -i "s|#\!\/usr\/bin\/env python||" {} \;
|
||||
|
||||
%build
|
||||
# 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
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build
|
||||
|
||||
@ -94,13 +103,16 @@ export CFLAGS="%{optflags}"
|
||||
%if %{with tests}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
# skipped tests because of gh#zeromq/pyzmq#1431
|
||||
SKIPPED_TESTS="test_buffer_numpy or test_bytes or test_curve or test_frame_more or "
|
||||
SKIPPED_TESTS+="test_large_send or test_lifecycle1 or test_lifecycle2 or "
|
||||
SKIPPED_TESTS+="test_memoryview_shape or test_multi_tracker or test_plain or test_tracker"
|
||||
# gh#zeromq/pyzmq#1432
|
||||
SKIPPED_TESTS+=" or TestSocketGreen"
|
||||
%pytest_arch -k "not (${SKIPPED_TESTS})"
|
||||
# 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"
|
||||
%if 0%{?suse_version} < 1550
|
||||
# tries to open a network connection on older distributions
|
||||
SKIPPED_TESTS+=" or test_null"
|
||||
%endif
|
||||
mkdir cleantest
|
||||
pushd cleantest
|
||||
%pytest_arch --pyargs zmq -k "not (${SKIPPED_TESTS:4})" --timeout 120 -ra
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
@ -109,12 +121,10 @@ SKIPPED_TESTS+=" or TestSocketGreen"
|
||||
%{python_sitearch}/zmq/
|
||||
%{python_sitearch}/pyzmq-%{version}-py*.egg-info
|
||||
%exclude %{python_sitearch}/zmq/utils/*.h
|
||||
%exclude %{python_sitearch}/zmq/backend/cffi/_verify.c
|
||||
%exclude %{python_sitearch}/zmq/backend/cffi/_cdefs.h
|
||||
|
||||
%files %{python_files devel}
|
||||
%{python_sitearch}/zmq/utils/*.h
|
||||
%{python_sitearch}/zmq/backend/cffi/_verify.c
|
||||
%{python_sitearch}/zmq/backend/cffi/_cdefs.h
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:824ad5888331aadeac772bce27e1c2fbcab82fade92edbd234542c4e12f0dca9
|
||||
size 1213019
|
3
pyzmq-22.0.3.tar.gz
Normal file
3
pyzmq-22.0.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f7f63ce127980d40f3e6a5fdb87abf17ce1a7c2bd8bf2c7560e1bbce8ab1f92d
|
||||
size 1218664
|
@ -1,10 +0,0 @@
|
||||
--- a/zmq/tests/test_socket.py.orig 2015-06-18 19:46:28.000000000 +0200
|
||||
+++ b/zmq/tests/test_socket.py 2015-09-08 17:34:13.309795000 +0200
|
||||
@@ -216,6 +216,7 @@
|
||||
@skip_pypy
|
||||
def test_tracker(self):
|
||||
"test the MessageTracker object for tracking when zmq is done with a buffer"
|
||||
+ raise SkipTest("test_tracker test skiped")
|
||||
addr = 'tcp://127.0.0.1'
|
||||
# get a port:
|
||||
sock = socket.socket()
|
Loading…
Reference in New Issue
Block a user