From: Matthew Thode Date: Mon, 27 Feb 2017 00:52:34 +0000 (-0600) Subject: dev-python/oslo-utils: bup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf379c49940288b651c94189c9dca130ec76e378;p=gentoo.git dev-python/oslo-utils: bup Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- diff --git a/dev-python/oslo-utils/Manifest b/dev-python/oslo-utils/Manifest index 34c413483309..8c5940870cc9 100644 --- a/dev-python/oslo-utils/Manifest +++ b/dev-python/oslo-utils/Manifest @@ -1,2 +1,3 @@ DIST oslo-utils-3.16.0.tar.gz 76660 SHA256 109e018da9d95caba79c94935257d2335e5a77e65ebbff218cb9756e746630f1 SHA512 58edfeb2b7cb59bcde1b7abf87a1509c30e586051fd7fc0803f6c0a53a717c084b2bbf4d2d906261f20053e3c32189bc86ad1b615c0b9437bacb9b2075dce8ec WHIRLPOOL ade367faefe2bd08ed3656c6727374468df4d70dba4e4b37c7dba1656c057fa0dfb167a537635b66c0df9b69bce5611b0fa0f62ac8ece9f64f4caec7b8621ee7 +DIST oslo-utils-3.22.0.tar.gz 84490 SHA256 aa72be266fee787541c02baa9ac341ec4b1b01b0d5a097db459aee05b27b12fb SHA512 09b53b5a322133ace2d68bba871746b88f709b50385b93bea0c4398ceb6a848a3019f2fc68f0bb645963a95432b9e616e733720ebb57aff61108d8e22bc11e70 WHIRLPOOL b464196269e165db0aaa9807a5e284f5905f5aaf95e6fd66cf3580838eb07611dacc3f69f2d21c7516c75694d6d246cb6c719756fca61b136388875a2e921236 DIST oslo-utils-3.8.0.tar.gz 70830 SHA256 c0e935b86e72facc02264271ed09dd9c5879d52452d7a1b4a116a6c7d05077aa SHA512 bd2e140f8f2c06c3b1ad8ee34071746e3987352d0ab79d91ea70716c34b4a8baa066e9731376618554b57b1b88ea570ab2f51c563c43f78a46ff7a132ed03fc5 WHIRLPOOL 865a2d438f0085c7cf50f2c29d12dcbb9f94dc1a5d7679d69a56f821029ef8f92d4f19dfa4375b302dd3848f77e35f7a168cefbd9e85bac26a680cfe3cfce9f1 diff --git a/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild b/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild new file mode 100644 index 000000000000..e63a137ea092 --- /dev/null +++ b/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit distutils-r1 vcs-snapshot + +MY_PN=${PN/-/.} + +DESCRIPTION="Oslo Utility library" +HOMEPAGE="https://launchpad.net/oslo" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND} + test? ( + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}] + >=dev-python/coverage-4.0.0[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] + !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}] + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}] + ) + doc? ( + >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}] + =dev-python/reno-1.8.0[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${CDEPEND} + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + virtual/python-funcsigs[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}] + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}] + !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}] + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}] + >=dev-python/pyparsing-2.0.7[${PYTHON_USEDEP}] +" + +python_prepare_all() { + sed -i '/^hacking/d' test-requirements.txt || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +# Note: Tests fail due to requiring installation +# +# Installation appears to fail due to the use of namespace packages but root +# cause was never truly established. +# +# Tests fail with: +# ImportError: No module named 'oslo.utils + +#RESTRICT="test" + +python_test() { + distutils_install_for_testing + + cd "${TEST_DIR}"/lib || die + + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" + + testr init || die "testr init failed under ${EPYTHON}" + testr run || die "testr run failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + + distutils-r1_python_install_all +}