dev-python/openstacksdk: Bump to 1.3.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-06-30 04:49:07 +02:00
parent 95b7f0c458
commit 2d79d2a7cf
2 changed files with 85 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST openstacksdk-1.2.0.tar.gz 1160015 BLAKE2B d3ed5b9415715faf6d9cae225e2a8e7c3bd69907599fd2683f53e2070513a1f27aaae2d2f4aa40ada26ff819b5f8238c09e208243197165aa52f19776e53fc7c SHA512 4ce118b8b19b495f333f76cb416d2b4cc2c9ea835979cf67e83f6f7f40df13d29e19ed054a2f3ee469e6c5496da4a7a11193e4815b20195b28ba4c48263b6c1c
DIST openstacksdk-1.3.0.tar.gz 1158244 BLAKE2B c318be32242ff6a5dce3fb94122c08603f3f132d0e9781a13f6bad9bf8fb516741e62b255e1d0d9b12c2967bbd6cea54cfcc248ba9de6279edfac85399b4a0bd SHA512 ceeb68fea5ce9e5271a86b783986bc3a26f03654cc3e2be0b704484976e273049c0499377d08c59466fa02d45d6ec39fdc4fcc42d8b4ee4b5723bfe3853737b3
DIST openstacksdk-1.3.1.tar.gz 1158149 BLAKE2B b1fb89e3c8d59dc1188bcfa4eeb55a7de40a61f30ff42f3dceb5be311f0c4e59af24dfa176d07237cf778f7b5e7b01855d97462d137ed51daf56140c01503135 SHA512 0792f974eb5dffe34565241082bd5fe17f75a0b666ce971938f325fe2b6cdff258d86658c608863f26799018e2a5b8dd2016d14d3300e536b5f301e3476cbbd6

View File

@@ -0,0 +1,84 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
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/pbr-2.1.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
>=dev-python/appdirs-1.3.0[${PYTHON_USEDEP}]
>=dev-python/requestsexceptions-1.2.0[${PYTHON_USEDEP}]
>=dev-python/jsonpatch-1.20[${PYTHON_USEDEP}]
>=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}]
>=dev-python/keystoneauth1-3.18.0[${PYTHON_USEDEP}]
>=dev-python/decorator-4.4.1[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.9.0[${PYTHON_USEDEP}]
>=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
>=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
>=dev-python/dogpile-cache-0.6.5[${PYTHON_USEDEP}]
>=dev-python/cryptography-2.7.0[${PYTHON_USEDEP}]
dev-python/importlib-metadata[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/pbr-2.1.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/prometheus-client-0.4.2[${PYTHON_USEDEP}]
>=dev-python/oslo-config-6.1.0[${PYTHON_USEDEP}]
>=dev-python/oslotest-3.2.0[${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}]
)
"
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
# 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
distutils-r1_src_prepare
}
python_test() {
# functional tests require cloud instance access
eunittest -b openstack/tests/unit
}