diff options
Diffstat (limited to 'dev-python/python-swiftclient')
5 files changed, 188 insertions, 0 deletions
diff --git a/dev-python/python-swiftclient/Manifest b/dev-python/python-swiftclient/Manifest new file mode 100644 index 00000000000..5c7e376d01a --- /dev/null +++ b/dev-python/python-swiftclient/Manifest @@ -0,0 +1,3 @@ +DIST python-swiftclient-2.0.3.tar.gz 55405 SHA256 b8c0b11ff0397b2f2ba2145cd8de7b86a61d34d6f1af78fee536cb9ba5dee315 SHA512 fe52e49c67edae20cd9db65adbc3b54bd1b9b40b09e2c07c65eaae80d96266134fe55d86d7cfd919453077c6c08b06a51278f93a973ec6b4279295bd6e0f9d64 WHIRLPOOL 3b80a78c8d67254f94e58acb4d758d439e79ca0cb8633d7d12cceeed817d8c9f7297f2e9a2a82642cedc4def6b15d3ccd8bab922c3a7f230d151f414f0bbca15 +DIST python-swiftclient-2.1.0.tar.gz 62692 SHA256 e5304cc2fc58e5f9fec87c0910109b524b3634f49a6dd82a35a28cbdf1515de8 SHA512 a49b60124093df9b1fb9ea87a356aafd21ded0a7826b04786dddc94fc1d494c38c2e99d1bd43ba23579ff595c7fabd74bc29e852349852b0bbbfa0cd95f0cac2 WHIRLPOOL 9830329cd08047c943bf8cbd41a41eaecd20ef17a886f72b2504f1568969e08d8282ec4b4b23ea9368284b027ef320a615ce4614852105768fa6c7b004732f65 +DIST python-swiftclient-2.2.0.tar.gz 67374 SHA256 f41f6650150367fc2641e1536d36a68b9664db1f4cfe3e8d1de2e2b5aa41a3cb SHA512 bd60e96525a3c879e94fbb99da1d4813cb181982b753934efd32f4a8310c8ef3237a36dc8c80a78e285ace285eae7bb72b5869863f0067dec4efc713851af7fc WHIRLPOOL f0a7eb00e3d7861e79a07cb6a366aa205fdf141dcdc54519cbade576868550049c335ed9fb3f8e05cf263ac22b85f040ff7a73364a78dc4ab786c7867c7fbf87 diff --git a/dev-python/python-swiftclient/metadata.xml b/dev-python/python-swiftclient/metadata.xml new file mode 100644 index 00000000000..02d11234767 --- /dev/null +++ b/dev-python/python-swiftclient/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>openstack</herd> + <maintainer> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + Python bindings to the OpenStack Object Storage API + </longdescription> + <upstream> + <remote-id type="pypi">python-swiftclient</remote-id> + <remote-id type="launchpad">python-swiftclient</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-swiftclient/python-swiftclient-2.0.3.ebuild b/dev-python/python-swiftclient/python-swiftclient-2.0.3.ebuild new file mode 100644 index 00000000000..9292f0f8c6a --- /dev/null +++ b/dev-python/python-swiftclient/python-swiftclient-2.0.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings to the OpenStack Object Storage API" +HOMEPAGE="https://launchpad.net/python-swiftclient" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/pbr[${PYTHON_USEDEP}] + test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.4.2[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.32[${PYTHON_USEDEP}] + >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.9[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + <dev-python/sphinx-1.2[${PYTHON_USEDEP}] ) )" +RDEPEND=">=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}]" + +#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" ) + +python_prepare() { + sed -i '/discover/d' "${S}/test-requirements.txt" || die "sed failed" + distutils-r1_python_prepare +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_test() { + testr init + testr run || die "tests failed under python2_7" + flake8 tests && einfo "run of tests folder by flake8 passed" + flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed" +} + +python_install_all() { + use doc && local HTML_DOCS=( ../${P}-python2_7/doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/python-swiftclient/python-swiftclient-2.1.0.ebuild b/dev-python/python-swiftclient/python-swiftclient-2.1.0.ebuild new file mode 100644 index 00000000000..be5b65b04b9 --- /dev/null +++ b/dev-python/python-swiftclient/python-swiftclient-2.1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings to the OpenStack Object Storage API" +HOMEPAGE="https://launchpad.net/python-swiftclient" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/pbr[${PYTHON_USEDEP}] + test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] + >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.9[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + <dev-python/sphinx-1.2[${PYTHON_USEDEP}] ) )" +RDEPEND=">=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]" + +#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" ) + +python_prepare() { + sed -i '/discover/d' "${S}/test-requirements.txt" || die "sed failed" + distutils-r1_python_prepare +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_test() { + testr init + testr run || die "tests failed under python2_7" + flake8 tests && einfo "run of tests folder by flake8 passed" + flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed" +} + +python_install_all() { + use doc && local HTML_DOCS=( ../${P}-python2_7/doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/python-swiftclient/python-swiftclient-2.2.0-r1.ebuild b/dev-python/python-swiftclient/python-swiftclient-2.2.0-r1.ebuild new file mode 100644 index 00000000000..4fa4360725c --- /dev/null +++ b/dev-python/python-swiftclient/python-swiftclient-2.2.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings to the OpenStack Object Storage API" +HOMEPAGE="https://launchpad.net/python-swiftclient" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/pbr[${PYTHON_USEDEP}] + test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] + <dev-python/sphinx-1.3[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] + >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.10[${PYTHON_USEDEP}] + doc? ( >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] + <dev-python/sphinx-1.3[${PYTHON_USEDEP}] ) )" +RDEPEND=">=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]" + +#PATCHES=( "${FILESDIR}/CVE-2013-6396.patch" ) + +python_prepare() { + sed -i '/discover/d' "${S}/test-requirements.txt" || die "sed failed" + distutils-r1_python_prepare +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_test() { + testr init + testr run || die "tests failed under python2_7" + flake8 tests && einfo "run of tests folder by flake8 passed" + flake8 bin/swift && einfo "run of ./bin/swift by flake8 passed" +} + +python_install_all() { + use doc && local HTML_DOCS=( ../${P}-python2_7/doc/build/html/. ) + distutils-r1_python_install_all +} |