Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/kombu/
Date: Sun, 22 Aug 2021 07:05:10
Message-Id: 1629615588.fd644f5d0dfeb2f72852a0bc1ba39d22fc8b7a94.arthurzam@gentoo
1 commit: fd644f5d0dfeb2f72852a0bc1ba39d22fc8b7a94
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 06:47:32 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 06:59:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd644f5d
7
8 dev-python/kombu: add 5.1.0, major cleanup
9
10 - enable py3.9
11 - Move from USE flags to optfeature and test dep
12 - use distutils_enable_sphinx
13 - use distutils_enable_tests
14 - disable problematic tests depending on unpackaged modules
15 - add more optional backends
16
17 Closes: https://bugs.gentoo.org/800659
18 Closes: https://bugs.gentoo.org/805197
19 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
20
21 dev-python/kombu/Manifest | 1 +
22 dev-python/kombu/kombu-5.1.0.ebuild | 77 +++++++++++++++++++++++++++++++++++++
23 2 files changed, 78 insertions(+)
24
25 diff --git a/dev-python/kombu/Manifest b/dev-python/kombu/Manifest
26 index b767a8f4c93..d69a3bfeb53 100644
27 --- a/dev-python/kombu/Manifest
28 +++ b/dev-python/kombu/Manifest
29 @@ -1 +1,2 @@
30 DIST kombu-5.0.1.tar.gz 404428 BLAKE2B 89d4c2daf70c3dcd0a990c8f045074780f2d4f13f39899c0ab3b73b473948469746cf8872aaa8565f5c4b071bf18ff510cd565e8f9b6a3735a0bf1d0af55e9b6 SHA512 aa5d35b7753f5ec8d95512c322fabf0163628b9afbd228faa2be910a1cd4ea3236a7e43485e17650e1aa9aebae59a91a2b0bdc1950e4e4c622b499a4ae29ea0e
31 +DIST kombu-5.1.0.tar.gz 416353 BLAKE2B 2c26aac0a8eda62475e2a9a859b2548046dfce0699a8dafce3cc6471ee3b82f82882a53903a86f69cf16f948e4d0e66f379479f7f1f46aca2bcbdd031ba87811 SHA512 62ef16e8e3fb592882b8060f29b95e7224ba635132ed688eece0c2d254e7f7fb525c778cac23f15495464c6dbcf84d7a1372fde6f55fcfe66677cf43d3e9d4de
32
33 diff --git a/dev-python/kombu/kombu-5.1.0.ebuild b/dev-python/kombu/kombu-5.1.0.ebuild
34 new file mode 100644
35 index 00000000000..5d90881cb0c
36 --- /dev/null
37 +++ b/dev-python/kombu/kombu-5.1.0.ebuild
38 @@ -0,0 +1,77 @@
39 +# Copyright 1999-2021 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=8
43 +
44 +PYTHON_COMPAT=( python3_{8..9} )
45 +inherit distutils-r1 optfeature
46 +
47 +DESCRIPTION="AMQP Messaging Framework for Python"
48 +HOMEPAGE="https://pypi.org/project/kombu/ https://github.com/celery/kombu"
49 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm64 ~x86"
54 +IUSE="examples"
55 +
56 +RDEPEND="
57 + >=dev-python/py-amqp-5.0.6[${PYTHON_USEDEP}]
58 + <dev-python/py-amqp-6.0.0[${PYTHON_USEDEP}]
59 + dev-python/vine[${PYTHON_USEDEP}]
60 +"
61 +BDEPEND="
62 + test? (
63 + app-arch/brotli[python,${PYTHON_USEDEP}]
64 + >=dev-python/boto3-1.4.4[${PYTHON_USEDEP}]
65 + >=dev-python/case-1.5.2[${PYTHON_USEDEP}]
66 + dev-python/kazoo[${PYTHON_USEDEP}]
67 + >=dev-python/msgpack-0.3.0[${PYTHON_USEDEP}]
68 + dev-python/pycurl[${PYTHON_USEDEP}]
69 + >=dev-python/pymongo-3.3.0[${PYTHON_USEDEP}]
70 + dev-python/pyro:4[${PYTHON_USEDEP}]
71 + dev-python/pytz[${PYTHON_USEDEP}]
72 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
73 + >=dev-python/redis-py-3.3.11[${PYTHON_USEDEP}]
74 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
75 + dev-python/zstandard[${PYTHON_USEDEP}]
76 + )
77 +"
78 +
79 +distutils_enable_tests pytest
80 +distutils_enable_sphinx docs \
81 + dev-python/sphinx_celery
82 +
83 +EPYTEST_IGNORE=(
84 + # Unpackaged azure-servicebus
85 + t/unit/transport/test_azureservicebus.py
86 + # Unpackaged librabbitmq
87 + t/unit/transport/test_librabbitmq.py
88 + # Unpackaged python-consul
89 + t/unit/transport/test_consul.py
90 + # AttributeError: test_Etcd instance has no attribute 'patch'
91 + t/unit/transport/test_etcd.py
92 +)
93 +
94 +python_install_all() {
95 + if use examples; then
96 + docompress -x "/usr/share/doc/${PF}/examples"
97 + docinto examples
98 + dodoc -r examples/.
99 + fi
100 + distutils-r1_python_install_all
101 +}
102 +
103 +pkg_postinst() {
104 + optfeature "Amazon SQS backend" "dev-python/boto3 dev-python/pycurl"
105 + optfeature "Etcd backend" dev-python/python-etcd
106 + optfeature "MongoDB backend" dev-python/pymongo
107 + optfeature "Pyro 4 backend" dev-python/pyro:4
108 + optfeature "Redis backend" dev-python/redis-py
109 + optfeature "sqlalchemy backend" dev-python/sqlalchemy
110 + optfeature "yaml backend" dev-python/pyyaml
111 + optfeature "Zookeeper backend" dev-python/kazoo
112 + optfeature "MessagePack (de)serializer for Python" dev-python/msgpack
113 + optfeature "brotli compression" "app-arch/brotli[python]"
114 + optfeature "zstd compression" dev-python/zstandard
115 +}