diff options
Diffstat (limited to 'dev-python/openstacksdk')
-rw-r--r-- | dev-python/openstacksdk/Manifest | 2 | ||||
-rw-r--r-- | dev-python/openstacksdk/openstacksdk-1.4.0.ebuild | 84 |
2 files changed, 86 insertions, 0 deletions
diff --git a/dev-python/openstacksdk/Manifest b/dev-python/openstacksdk/Manifest index 36a503eecd25..a9cd56d93cba 100644 --- a/dev-python/openstacksdk/Manifest +++ b/dev-python/openstacksdk/Manifest @@ -1,3 +1,5 @@ DIST openstacksdk-1.3.1.tar.gz 1158149 BLAKE2B b1fb89e3c8d59dc1188bcfa4eeb55a7de40a61f30ff42f3dceb5be311f0c4e59af24dfa176d07237cf778f7b5e7b01855d97462d137ed51daf56140c01503135 SHA512 0792f974eb5dffe34565241082bd5fe17f75a0b666ce971938f325fe2b6cdff258d86658c608863f26799018e2a5b8dd2016d14d3300e536b5f301e3476cbbd6 +DIST openstacksdk-1.4.0.tar.gz 1173316 BLAKE2B 3db36f86a92606a991d25f700902f8a7ef2b2e14485427accc496f0425cb3c249540ffb231615acc2252ae3fc019a7eecb99d48bf33bfba1001eac463da88218 SHA512 1cbf8a214221473f1b5365bd4b114ee1249836be4ac5a2e6cbc737b487d9f40eb544b3d19623320f3b8ede5c9c40671810740a68aa89197264f2d7e2b41ae1ba EBUILD openstacksdk-1.3.1.ebuild 2636 BLAKE2B edc801b7ad004d2ac164850b9cae4074c24d0c9617b0ed56ef447ca76b26e27f8c5aa857d3c2dd1de57707e545fff96ce2ae46d9d21b7c6cfdf9265ef0b61032 SHA512 46754f9e5e1ac4080ec27cfda788c55e4a0dbd41fd0677d9d544f5231f6083c214dd79a77322c870025aadb49c5c49f4caf4abe511359d0d7e9b9bbbaca1722f +EBUILD openstacksdk-1.4.0.ebuild 2639 BLAKE2B 3595fb952e7feb35c7f0c17ca7938d0efe485f8c7bf258c808f9cd3be1d77c730537888cbd0bbbcaa1ce0463c9edf493fba211f753314aaa4750a09f49779ab5 SHA512 be2a6a910e8dd0272d5c4d383ff7c6ab44b08c20152f600fc0e8cd49a37f8966a23bf69d1a973dd2f27e838024c4b5d9138a85c78e49c113f0bc304ffa946600 MISC metadata.xml 517 BLAKE2B 661ad1e9eae06e7b36a5ff753e73bd4434042966cff3fd6fbc11bf70a1acc3eb8de29ad2a033d6d715e1152a5454d84077e99db3b588199b317f925864dc1403 SHA512 e6dbfbb3546c2a62b204b33ebb3bb33611079698212f098bd4da072200fe43e3bb350cc998b255ec4a15aa2ff3a04c89a9553dd7930db48e658dbcaff78526d6 diff --git a/dev-python/openstacksdk/openstacksdk-1.4.0.ebuild b/dev-python/openstacksdk/openstacksdk-1.4.0.ebuild new file mode 100644 index 000000000000..e7d4c515009f --- /dev/null +++ b/dev-python/openstacksdk/openstacksdk-1.4.0.ebuild @@ -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 +} |