diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:51:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:51:01 +0000 |
commit | 5e5153187b448113d0f144e29d0fb5be9373d5d7 (patch) | |
tree | 9caef72e5f41a36a467776c89509bc0dc47667d8 | |
parent | 59991ca8848e0ea5c13c11e602808f2300039085 (diff) |
automatic import of python-pyzmq
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyzmq.spec | 368 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 370 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyzmq-25.0.2.tar.gz diff --git a/python-pyzmq.spec b/python-pyzmq.spec new file mode 100644 index 0000000..df3b7c1 --- /dev/null +++ b/python-pyzmq.spec @@ -0,0 +1,368 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyzmq +Version: 25.0.2 +Release: 1 +Summary: Python bindings for 0MQ +License: LGPL+BSD +URL: https://pyzmq.readthedocs.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/7f/24a55c3393d54570f26fa8845e8e42e813bf1b7fb668ed5d3de76b71dbe9/pyzmq-25.0.2.tar.gz + + +%description +# PyZMQ: Python bindings for ØMQ + +This package contains Python bindings for [ZeroMQ](https://zeromq.org). +ØMQ is a lightweight and fast messaging implementation. + +PyZMQ should work with any reasonable version of Python (≥ 3.4), +as well as Python 2.7 and 3.3, as well as PyPy. +The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x), +but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x). + +For a summary of changes to pyzmq, see our +[changelog](https://pyzmq.readthedocs.io/en/latest/changelog.html). + +### ØMQ 3.x, 4.x + +PyZMQ fully supports the 3.x and 4.x APIs of libzmq, +developed at [zeromq/libzmq](https://github.com/zeromq/libzmq). +No code to change, no flags to pass, +just build pyzmq against the latest and it should work. + +PyZMQ does not support the old libzmq 2 API on PyPy. + +## Documentation + +See PyZMQ's Sphinx-generated +documentation [on Read the Docs](https://pyzmq.readthedocs.io) for API +details, and some notes on Python and Cython development. If you want to +learn about using ØMQ in general, the excellent [ØMQ +Guide](http://zguide.zeromq.org/py:all) is the place to start, which has a +Python version of every example. We also have some information on our +[wiki](https://github.com/zeromq/pyzmq/wiki). + +## Downloading + +Unless you specifically want to develop PyZMQ, we recommend downloading +the PyZMQ source code or wheels from +[PyPI](https://pypi.io/project/pyzmq/), +or install with conda. + +You can also get the latest source code from our GitHub repository, but +building from the repository will require that you install recent Cython. + +## Building and installation + +For more detail on building pyzmq, see [our Wiki](https://github.com/zeromq/pyzmq/wiki/Building-and-Installing-PyZMQ). + +We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with: + +``` +pip install pyzmq +``` + +but compiling from source with `pip install pyzmq` should work in most environments. +Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels. + +If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled +(this is often preferable if you already have libzmq installed and configured the way you want it), +you can force installation with: + +``` +pip install --no-binary=:all: pyzmq +``` + +When compiling pyzmq (e.g. installing with pip on Linux), +it is generally recommended that zeromq be installed separately, +via homebrew, apt, yum, etc: + +``` +# Debian-based +sudo apt-get install libzmq3-dev + +# RHEL-based +sudo yum install libzmq3-devel +``` + +If this is not available, pyzmq will _try_ to build libzmq as a Python Extension, +though this is not guaranteed to work. + +Building pyzmq from the git repo (including release tags on GitHub) requires Cython. + +## Old versions + +pyzmq 16 drops support Python 2.6 and 3.2. +If you need to use one of those Python versions, you can pin your pyzmq version to before 16: + +``` +pip install 'pyzmq<16' +``` + +For libzmq 2.0.x, use 'pyzmq\<2.1' + +pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5, +and pyzmq ≥ 2.2.0 requires Python ≥ 2.6. +pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer. + +PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case, +starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?). +PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself. + + +%package -n python3-pyzmq +Summary: Python bindings for 0MQ +Provides: python-pyzmq +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pyzmq +# PyZMQ: Python bindings for ØMQ + +This package contains Python bindings for [ZeroMQ](https://zeromq.org). +ØMQ is a lightweight and fast messaging implementation. + +PyZMQ should work with any reasonable version of Python (≥ 3.4), +as well as Python 2.7 and 3.3, as well as PyPy. +The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x), +but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x). + +For a summary of changes to pyzmq, see our +[changelog](https://pyzmq.readthedocs.io/en/latest/changelog.html). + +### ØMQ 3.x, 4.x + +PyZMQ fully supports the 3.x and 4.x APIs of libzmq, +developed at [zeromq/libzmq](https://github.com/zeromq/libzmq). +No code to change, no flags to pass, +just build pyzmq against the latest and it should work. + +PyZMQ does not support the old libzmq 2 API on PyPy. + +## Documentation + +See PyZMQ's Sphinx-generated +documentation [on Read the Docs](https://pyzmq.readthedocs.io) for API +details, and some notes on Python and Cython development. If you want to +learn about using ØMQ in general, the excellent [ØMQ +Guide](http://zguide.zeromq.org/py:all) is the place to start, which has a +Python version of every example. We also have some information on our +[wiki](https://github.com/zeromq/pyzmq/wiki). + +## Downloading + +Unless you specifically want to develop PyZMQ, we recommend downloading +the PyZMQ source code or wheels from +[PyPI](https://pypi.io/project/pyzmq/), +or install with conda. + +You can also get the latest source code from our GitHub repository, but +building from the repository will require that you install recent Cython. + +## Building and installation + +For more detail on building pyzmq, see [our Wiki](https://github.com/zeromq/pyzmq/wiki/Building-and-Installing-PyZMQ). + +We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with: + +``` +pip install pyzmq +``` + +but compiling from source with `pip install pyzmq` should work in most environments. +Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels. + +If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled +(this is often preferable if you already have libzmq installed and configured the way you want it), +you can force installation with: + +``` +pip install --no-binary=:all: pyzmq +``` + +When compiling pyzmq (e.g. installing with pip on Linux), +it is generally recommended that zeromq be installed separately, +via homebrew, apt, yum, etc: + +``` +# Debian-based +sudo apt-get install libzmq3-dev + +# RHEL-based +sudo yum install libzmq3-devel +``` + +If this is not available, pyzmq will _try_ to build libzmq as a Python Extension, +though this is not guaranteed to work. + +Building pyzmq from the git repo (including release tags on GitHub) requires Cython. + +## Old versions + +pyzmq 16 drops support Python 2.6 and 3.2. +If you need to use one of those Python versions, you can pin your pyzmq version to before 16: + +``` +pip install 'pyzmq<16' +``` + +For libzmq 2.0.x, use 'pyzmq\<2.1' + +pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5, +and pyzmq ≥ 2.2.0 requires Python ≥ 2.6. +pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer. + +PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case, +starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?). +PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself. + + +%package help +Summary: Development documents and examples for pyzmq +Provides: python3-pyzmq-doc +%description help +# PyZMQ: Python bindings for ØMQ + +This package contains Python bindings for [ZeroMQ](https://zeromq.org). +ØMQ is a lightweight and fast messaging implementation. + +PyZMQ should work with any reasonable version of Python (≥ 3.4), +as well as Python 2.7 and 3.3, as well as PyPy. +The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x), +but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x). + +For a summary of changes to pyzmq, see our +[changelog](https://pyzmq.readthedocs.io/en/latest/changelog.html). + +### ØMQ 3.x, 4.x + +PyZMQ fully supports the 3.x and 4.x APIs of libzmq, +developed at [zeromq/libzmq](https://github.com/zeromq/libzmq). +No code to change, no flags to pass, +just build pyzmq against the latest and it should work. + +PyZMQ does not support the old libzmq 2 API on PyPy. + +## Documentation + +See PyZMQ's Sphinx-generated +documentation [on Read the Docs](https://pyzmq.readthedocs.io) for API +details, and some notes on Python and Cython development. If you want to +learn about using ØMQ in general, the excellent [ØMQ +Guide](http://zguide.zeromq.org/py:all) is the place to start, which has a +Python version of every example. We also have some information on our +[wiki](https://github.com/zeromq/pyzmq/wiki). + +## Downloading + +Unless you specifically want to develop PyZMQ, we recommend downloading +the PyZMQ source code or wheels from +[PyPI](https://pypi.io/project/pyzmq/), +or install with conda. + +You can also get the latest source code from our GitHub repository, but +building from the repository will require that you install recent Cython. + +## Building and installation + +For more detail on building pyzmq, see [our Wiki](https://github.com/zeromq/pyzmq/wiki/Building-and-Installing-PyZMQ). + +We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with: + +``` +pip install pyzmq +``` + +but compiling from source with `pip install pyzmq` should work in most environments. +Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels. + +If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled +(this is often preferable if you already have libzmq installed and configured the way you want it), +you can force installation with: + +``` +pip install --no-binary=:all: pyzmq +``` + +When compiling pyzmq (e.g. installing with pip on Linux), +it is generally recommended that zeromq be installed separately, +via homebrew, apt, yum, etc: + +``` +# Debian-based +sudo apt-get install libzmq3-dev + +# RHEL-based +sudo yum install libzmq3-devel +``` + +If this is not available, pyzmq will _try_ to build libzmq as a Python Extension, +though this is not guaranteed to work. + +Building pyzmq from the git repo (including release tags on GitHub) requires Cython. + +## Old versions + +pyzmq 16 drops support Python 2.6 and 3.2. +If you need to use one of those Python versions, you can pin your pyzmq version to before 16: + +``` +pip install 'pyzmq<16' +``` + +For libzmq 2.0.x, use 'pyzmq\<2.1' + +pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5, +and pyzmq ≥ 2.2.0 requires Python ≥ 2.6. +pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer. + +PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case, +starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?). +PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself. + + +%prep +%autosetup -n pyzmq-25.0.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pyzmq -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 25.0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +b709fe87594316e21fd0d969acc6923a pyzmq-25.0.2.tar.gz |