diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-28 22:41:22 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-30 15:18:36 +0300 |
commit | ee952122e732d7bddb95207941209d62fe7173e3 (patch) | |
tree | 1c03d15db29d383789103b9ea92f1f65997ac6ac /dev-python/osc-lib/osc-lib-2.4.2.ebuild | |
parent | dev-python/os-client-config: enable py3.9 (diff) | |
download | gentoo-ee952122e732d7bddb95207941209d62fe7173e3.tar.gz gentoo-ee952122e732d7bddb95207941209d62fe7173e3.tar.bz2 gentoo-ee952122e732d7bddb95207941209d62fe7173e3.zip |
dev-python/osc-lib: add 2.4.2, enable py3.9, enable tests
Closes: https://bugs.gentoo.org/798156
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/osc-lib/osc-lib-2.4.2.ebuild')
-rw-r--r-- | dev-python/osc-lib/osc-lib-2.4.2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/osc-lib/osc-lib-2.4.2.ebuild b/dev-python/osc-lib/osc-lib-2.4.2.ebuild new file mode 100644 index 000000000000..817b4b139fae --- /dev/null +++ b/dev-python/osc-lib/osc-lib-2.4.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="A package of common support modules for writing OSC plugins." +HOMEPAGE="https://github.com/openstack/osc-lib" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/cliff-3.2.0[${PYTHON_USEDEP}] + >=dev-python/keystoneauth-3.14.0[${PYTHON_USEDEP}] + >=dev-python/openstacksdk-0.15.0[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] + >=dev-python/simplejson-3.5.1[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/fixtures-3.0.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() { + # need to skip all tests under TestTagHelps class + # checks exact help message, based on another unittest runner + sed -e '179,$s/test_add_tag_/_&/' -i osc_lib/tests/utils/test_tags.py || die + distutils-r1_src_prepare +} |