dev-python/openstacksdk: Bump to 4.5.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-04-11 06:38:40 +02:00
parent 1932268ca5
commit 29aad89c73
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 93 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST openstacksdk-4.4.0.tar.gz 1266578 BLAKE2B 003247645b4a386a8d998e8b003f41fe45e1160c1fa4223a61285cc17aba1e385d50ac0eded2c91ee948569c5b3277c35ebf22c08f6775a9fbef728b9cb94e40 SHA512 2a6935442533c35c070933b0bc238cdcf8a29d86719002b81e568353a47e0d566df18ca9138956d470535c9c2dca9f99f8d6112790eef37a6bfdf058c96246fe
DIST openstacksdk-4.5.0.tar.gz 1284921 BLAKE2B 0b1ef6483c8c3724f20badb1108ec544937b83d9fd25d989289ac4143909d175c9d16b9545315bfe88a371a1ac2088511dbe4333cadf6141dd95200b3b45ed5c SHA512 7c8225089afa4e52ef501810a495c3047a15f31388cb32cecd035474c9cf56bd2b3181b13c71a619f841206935d455fd69787005fa6fcdf5a0d2f627c9a39dc3

View File

@ -0,0 +1,92 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="A collection of libraries for building applications to work with OpenStack"
HOMEPAGE="
https://opendev.org/openstack/openstacksdk/
https://github.com/openstack/openstacksdk/
https://pypi.org/project/openstacksdk/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
RDEPEND="
>=dev-python/cryptography-2.7[${PYTHON_USEDEP}]
>=dev-python/decorator-4.4.1[${PYTHON_USEDEP}]
>=dev-python/dogpile-cache-0.6.5[${PYTHON_USEDEP}]
>=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.9.0[${PYTHON_USEDEP}]
>=dev-python/jsonpatch-1.21[${PYTHON_USEDEP}]
>=dev-python/keystoneauth1-5.10.0[${PYTHON_USEDEP}]
>=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}]
>=dev-python/pbr-2.2.0[${PYTHON_USEDEP}]
>=dev-python/platformdirs-3[${PYTHON_USEDEP}]
>=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
>=dev-python/requestsexceptions-1.2.0[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/pbr-2.2.0[${PYTHON_USEDEP}]
test? (
>=dev-python/ddt-1.0.1[${PYTHON_USEDEP}]
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
>=dev-python/oslo-config-6.1.0[${PYTHON_USEDEP}]
>=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
>=dev-python/prometheus-client-0.4.2[${PYTHON_USEDEP}]
>=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}]
>=dev-python/statsd-3.3.0[${PYTHON_USEDEP}]
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.12.0[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
src_prepare() {
# Internet?
sed -e 's:test_create_dynamic_large_object:_&:' \
-i openstack/tests/unit/cloud/test_object.py || die
# TODO
sed -e 's:test_generate_form:_&:' \
-e 's:test_create_static_large_object:_&:' \
-e 's:test_object_segment_retries:_&:' \
-e 's:test_object_segment_retry_failure:_&:' \
-e 's:test_slo_manifest_retry:_&:' \
-i openstack/tests/unit/cloud/test_object.py || die
sed -e 's:test_servers:_&:' \
-i openstack/tests/unit/test_stats.py || die
# unhappy about paths due to test runner
sed -e 's:test_method_not_supported:_&:' \
-i openstack/tests/unit/test_exceptions.py || die
sed -e 's:test_repr:_&:' \
-i openstack/tests/unit/test_resource.py || die
# requires hacking
rm openstack/tests/unit/test_hacking.py || die
# fragile warning-based tests
sed -e 's:test_unsupported_version_override:_&:' \
-i openstack/tests/unit/test_missing_version.py || die
sed -e 's:test_create_unknown_proxy:_&:' \
-i openstack/tests/unit/test_connection.py || die
distutils-r1_src_prepare
}
python_test() {
# functional tests require cloud instance access
eunittest -b openstack/tests/unit
}