Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/salt/
Date: Wed, 02 Nov 2022 23:40:20
Message-Id: 1667432408.f7ca6a0782e42312371c848dc887b422f8af20b6.chutzpah@gentoo
1 commit: f7ca6a0782e42312371c848dc887b422f8af20b6
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 2 18:55:17 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 23:40:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7ca6a07
7
8 app-admin/salt: revbump 3003.5 to force <importlib_metadata-5
9
10 Bug: https://bugs.gentoo.org/875389
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 app-admin/salt/Manifest | 1 +
14 app-admin/salt/salt-3003.4-r1.ebuild | 205 ---------------------
15 ...salt-3003.5-r1.ebuild => salt-3003.5-r2.ebuild} | 3 +-
16 3 files changed, 3 insertions(+), 206 deletions(-)
17
18 diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest
19 index a2f33bed5479..ac5e98e099a2 100644
20 --- a/app-admin/salt/Manifest
21 +++ b/app-admin/salt/Manifest
22 @@ -1,3 +1,4 @@
23 DIST salt-3002.9.tar.gz 15817470 BLAKE2B 31fb6dbb61a9f0ab22ca761810a934792e9fa9c78628f925e63d3d54d00fa4ea0b4aa806ba3ea92f7397ba3291281bf8989d9a288fb3114c7911cdebfc9acd6a SHA512 f34fd05960a68cba51f34cf8b7c737bd84d00472cec80628f082d16e54cf70705e191ac4b6690bf406a8a11e26c8155e4bdbdec34ede5f0721fd9b5e637a0ed1
24 DIST salt-3003.4.tar.gz 16031515 BLAKE2B 34902aba7ab64f4ddbacbad1b776b9b2218caf22fb843879a80bd5c30b6c28f4c22a050bbaf0e9735507a78c887f52bcae7d1833ffeb51a543ec22fda79252e6 SHA512 35419fbb3f9a0f3e87579f740b717d6902cab0d85397b16d1e94d9516bf5f5d269b4f8bca370fd376abd9b7c8a6ad7ef4c8e8a8fdd31655fd17c810989e79693
25 +DIST salt-3003.5.tar.gz 16056545 BLAKE2B ede3f0c63175f093dca07bee1bfb659cc608336ae92f532fc45868bd7eca659498c42e5d44324492744b802ade088adac869277679989550e217c1a135d6566d SHA512 ebda2056b4d6d216a0689b919d00aa78f615c355d21703d1939dbb6b00e9ad9347be4ee5b861282521f2d337bf7bf2fdc85e6942016358088a094d854fb33be9
26 DIST salt-3005.tar.gz 17894520 BLAKE2B 67e755bdbe772991f620d09f61836f8ccfa2039722c3281ec4cfaa8ef76e34c57e4db861cc652545e37eb965ab765f6b6ba0250407d7d7448aa5d4685ad9492a SHA512 c2019a97a5a98b4810cdace826d5e0a6d2890a984da4b95109c1b9328a2fd11cafd2fb0ef9752adeea1d36f8b2a69b3a4a6a5a092b6a7f050c60ec52da314a18
27
28 diff --git a/app-admin/salt/salt-3003.4-r1.ebuild b/app-admin/salt/salt-3003.4-r1.ebuild
29 deleted file mode 100644
30 index 50ee0911545b..000000000000
31 --- a/app-admin/salt/salt-3003.4-r1.ebuild
32 +++ /dev/null
33 @@ -1,205 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -PYTHON_COMPAT=( python3_{8..9} )
39 -
40 -inherit systemd distutils-r1
41 -
42 -DESCRIPTION="Salt is a remote execution and configuration manager"
43 -HOMEPAGE="https://www.saltstack.com/resources/community/
44 - https://github.com/saltstack"
45 -
46 -if [[ ${PV} == 9999* ]]; then
47 - inherit git-r3
48 - EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
49 - EGIT_BRANCH="develop"
50 - SRC_URI=""
51 -else
52 - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
53 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
54 -fi
55 -
56 -LICENSE="Apache-2.0"
57 -SLOT="0"
58 -IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako
59 - mongodb neutron nova openssl portage profile redis selinux test raet
60 - +zeromq vim-syntax"
61 -
62 -RDEPEND="
63 - sys-apps/pciutils
64 - >=dev-python/distro-1.5[${PYTHON_USEDEP}]
65 - dev-python/jinja[${PYTHON_USEDEP}]
66 - dev-python/libnacl[${PYTHON_USEDEP}]
67 - >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
68 - >=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}]
69 - dev-python/pyyaml[${PYTHON_USEDEP}]
70 - dev-python/markupsafe[${PYTHON_USEDEP}]
71 - >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
72 - dev-python/setuptools[${PYTHON_USEDEP}]
73 - >=dev-python/toml-0.10.2[${PYTHON_USEDEP}]
74 - dev-python/watchdog[${PYTHON_USEDEP}]
75 - libcloud? ( >=dev-python/libcloud-2.5.0[${PYTHON_USEDEP}] )
76 - mako? ( dev-python/mako[${PYTHON_USEDEP}] )
77 - ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
78 - libvirt? (
79 - $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_8)
80 - )
81 - openssl? (
82 - dev-libs/openssl:0=[-bindist(-)]
83 - dev-python/pyopenssl[${PYTHON_USEDEP}]
84 - )
85 - raet? (
86 - >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
87 - >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
88 - >=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
89 - )
90 - cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
91 - cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] )
92 - genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
93 - mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
94 - portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
95 - keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
96 - redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
97 - selinux? ( sec-policy/selinux-salt )
98 - nova? (
99 - $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_8)
100 - )
101 - neutron? (
102 - $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_8)
103 - )
104 - gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
105 - profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
106 - vim-syntax? ( app-vim/salt-vim )
107 - zeromq? ( >=dev-python/pyzmq-19.1.0[${PYTHON_USEDEP}] )
108 -"
109 -BDEPEND="
110 - test? (
111 - ${RDEPEND}
112 - >=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
113 - >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
114 - dev-python/mako[${PYTHON_USEDEP}]
115 - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
116 - >=dev-python/moto-1.3.14[${PYTHON_USEDEP}]
117 - dev-python/pip[${PYTHON_USEDEP}]
118 - dev-python/psutil[${PYTHON_USEDEP}]
119 - dev-python/pyopenssl[${PYTHON_USEDEP}]
120 - dev-python/pytest[${PYTHON_USEDEP}]
121 - =dev-python/pytest-salt-factories-0.121*[${PYTHON_USEDEP}]
122 - dev-python/pytest-tempdir[${PYTHON_USEDEP}]
123 - dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
124 - dev-python/pytest-subtests[${PYTHON_USEDEP}]
125 - dev-python/flaky[${PYTHON_USEDEP}]
126 - dev-python/libcloud[${PYTHON_USEDEP}]
127 - net-dns/bind-tools
128 - >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}]
129 - !x86? ( >=dev-python/boto3-1.19.63[${PYTHON_USEDEP}] )
130 - )"
131 -
132 -DOCS=( README.rst AUTHORS )
133 -
134 -REQUIRED_USE="|| ( raet zeromq )
135 - test? ( cheetah genshi )"
136 -RESTRICT="!test? ( test ) x86? ( test )"
137 -
138 -PATCHES=(
139 - "${FILESDIR}/salt-3003-skip-tests-that-oom-machine.patch"
140 - "${FILESDIR}/salt-3003-gentoolkit-revdep.patch"
141 - "${FILESDIR}/salt-3002-tests.patch"
142 - "${FILESDIR}/salt-3003.3-tests.patch"
143 - "${FILESDIR}/salt-3003.1-tests.patch"
144 - "${FILESDIR}/salt-3004.1-jinja-3.patch"
145 - "${FILESDIR}/salt-3003.4-tests.patch"
146 - "${FILESDIR}/salt-3003.4-relax-pyzmq-dep.patch"
147 -)
148 -
149 -python_prepare_all() {
150 - # remove tests with external dependencies that may not be available, and
151 - # tests that don't work in sandbox
152 - rm tests/unit/{test_{zypp_plugins,module_names},utils/test_extend}.py || die
153 - rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die
154 - rm tests/unit/states/test_boto_vpc.py || die
155 - rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die
156 - rm tests/pytests/functional/transport/server/test_req_channel.py || die
157 -
158 - # tests that require network access
159 - rm tests/unit/{states,modules}/test_zcbuildout.py || die
160 - rm -r tests/integration/cloud || die
161 - rm -r tests/kitchen/tests/wordpress/tests || die
162 - rm tests/kitchen/test_kitchen.py || die
163 - rm tests/unit/modules/test_network.py || die
164 -
165 - # tests require root access
166 - rm tests/integration/pillar/test_git_pillar.py || die
167 - rm tests/integration/states/test_supervisord.py || die
168 - rm tests/pytests/unit/client/test_ssh.py || die
169 -
170 - # make sure pkg_resources doesn't bomb because pycrypto isn't installed
171 - find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die
172 - # pycryptodome rather than pycryptodomex
173 - find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die
174 -
175 - distutils-r1_python_prepare_all
176 -}
177 -
178 -python_prepare() {
179 - einfo "Fixing collections.abc warnings for ${EPYTHON}"
180 - local abc
181 - abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die
182 - find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die
183 -
184 - # removes contextvars, see bug: https://bugs.gentoo.org/799431
185 - sed -i '/^contextvars/d' requirements/base.txt || die
186 -}
187 -
188 -python_install_all() {
189 - local svc
190 - USE_SETUPTOOLS=1 distutils-r1_python_install_all
191 -
192 - for svc in minion master syndic api; do
193 - newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc}
194 - newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
195 - systemd_dounit "${FILESDIR}"/salt-${svc}.service
196 - done
197 -
198 - insinto /etc/${PN}
199 - doins -r conf/*
200 -}
201 -
202 -python_test() {
203 - # testsuite likes lots of files
204 - ulimit -n 4096 || die
205 -
206 - # ${T} is too long a path for the tests to work
207 - local TMPDIR
208 - TMPDIR="$(mktemp --directory --tmpdir=/tmp ${PN}-XXXX)"
209 - (
210 - export TMPDIR
211 - cleanup() { rm -rf "${TMPDIR}" || die; }
212 -
213 - trap cleanup EXIT
214 -
215 - addwrite "${TMPDIR}"
216 -
217 - USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \
218 - "${EPYTHON}" -m pytest -vv \
219 - || die "testing failed with ${EPYTHON}"
220 - )
221 -}
222 -
223 -pkg_postinst() {
224 - if use python_targets_python3_8; then
225 - if use nova; then
226 - ewarn "Salt's nova functionality will not work with python3.8 since"
227 - ewarn "dev-python/python-novaclient does not support it yet"
228 - fi
229 - if use neutron; then
230 - ewarn "Salt's neutron functionality will not work with python3.8 since"
231 - ewarn "dev-python/python-neutronclient does not support it yet"
232 - fi
233 - if use libvirt; then
234 - ewarn "Salt's libvirt functionality will not work with python3.8 since"
235 - ewarn "dev-python/libvirt-python does not support it yet"
236 - fi
237 - fi
238 -}
239
240 diff --git a/app-admin/salt/salt-3003.5-r1.ebuild b/app-admin/salt/salt-3003.5-r2.ebuild
241 similarity index 98%
242 rename from app-admin/salt/salt-3003.5-r1.ebuild
243 rename to app-admin/salt/salt-3003.5-r2.ebuild
244 index e46b069a8edb..3cd254df3aa9 100644
245 --- a/app-admin/salt/salt-3003.5-r1.ebuild
246 +++ b/app-admin/salt/salt-3003.5-r2.ebuild
247 @@ -37,11 +37,12 @@ RDEPEND="
248 dev-python/markupsafe[${PYTHON_USEDEP}]
249 >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
250 dev-python/setuptools[${PYTHON_USEDEP}]
251 - >=dev-python/toml-0.10.2[${PYTHON_USEDEP}]
252 + dev-python/tomli[${PYTHON_USEDEP}]
253 dev-python/watchdog[${PYTHON_USEDEP}]
254 libcloud? ( >=dev-python/libcloud-2.5.0[${PYTHON_USEDEP}] )
255 mako? ( dev-python/mako[${PYTHON_USEDEP}] )
256 ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
257 + <dev-python/importlib_metadata-5[${PYTHON_USEDEP}]
258 libvirt? (
259 $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_8)
260 )