diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/mox3 |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/mox3')
-rw-r--r-- | dev-python/mox3/Manifest | 11 | ||||
-rw-r--r-- | dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch | 18 | ||||
-rw-r--r-- | dev-python/mox3/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/mox3/mox3-0.10.0.ebuild | 73 | ||||
-rw-r--r-- | dev-python/mox3/mox3-0.12.0.ebuild | 59 | ||||
-rw-r--r-- | dev-python/mox3/mox3-0.7.0-r1.ebuild | 68 | ||||
-rw-r--r-- | dev-python/mox3/mox3-0.7.0.ebuild | 44 |
7 files changed, 284 insertions, 0 deletions
diff --git a/dev-python/mox3/Manifest b/dev-python/mox3/Manifest new file mode 100644 index 000000000000..3e2620a2a623 --- /dev/null +++ b/dev-python/mox3/Manifest @@ -0,0 +1,11 @@ +AUX mox3-0.12.0-RegexTest-python3.6.patch 652 SHA256 84e84b250d0d4ae3fb7ec7da5d0c15d17f70ba5015ab4e9e5f6a6e0595a47f2e SHA512 bdb5b27c151a2b2fc0351575fb7f8413a7667b738624991255882c1908df3677f2d8bbc984f8c4179325450f0a5837a750adeef3afc1738090879b70a2b135b6 WHIRLPOOL 55a76980e55db213ebac22a35a3032418230d68ba3383385a032131164799dbb4f66bde322c1272a6b215cae4210bdce7d262e27ffedf60673127a3448e8acd5 +DIST mox3-0.10.0.tar.gz 42424 SHA256 cc0a2447b460c254a51dfd5b51e711647045c29c07ce711b2caf599d5ecba825 SHA512 1f56e17ae150339cb2f33dca065c246cf0ff2f633f182336a576e9ab0bd4512ec8f42a4cb128f38ede33fe7e796552768465cfc626abe4f734b7a06b4625710a WHIRLPOOL 22f25dad0a3bae3b3f0e434eb0b784288f896237471fb8d1a673bb0f41ee1eb968be10424fd2cbe71d2122052721651014c541a1e799804722337dac4595b848 +DIST mox3-0.12.0.tar.gz 42377 SHA256 52c5c1f35d460e4f70d60b20a4283c8cce6d83c03e7be47a478ba104304a9fdf SHA512 73e0215bf127589f791721a0cb9b8e3dcc379a23199339e370d641850a0a14c264eb9db94fbb37c99f9925ee3ebd302de14ec12fe1c8809dd3ca9c10cfd75468 WHIRLPOOL fdfdf53f14e5f9dbf89b8f93279ee14e7b946c1e1fd843efc6da655f86c64fd67844ea32b2170fe2a26eab66274423d334bba1aa55e8f1ea31a6877647d76b14 +DIST mox3-0.7.0.tar.gz 44073 SHA256 7cc2ffac72d55816bbf670b03cf636b4abdc089c3d8b31a6760b22fc1eeedde2 SHA512 ee4b87bad46fdb63e8988186846a1823fe9db512f1cd8cf37266db14413307824e45e38121bd16ca4c7f3753fbc051dfcd98dc5c9c9c933604b007ff1e7fea05 WHIRLPOOL 0c71c0ef8960ee535fa11a27855725601929ebd50ef56611c8aa8ac0bee500b63b3d63a60bb444511f2bc3b05bf65eb7d91821144d56da4e0da343ff3689d427 +EBUILD mox3-0.10.0.ebuild 2093 SHA256 351795b79d0776ba3be13b49c65b68513552e3bc1b1a3835b3827206608a87d0 SHA512 65dafacb31908c9e8291ebb5e3be9c8010894b882ca0f3ffec2db33da5635f3782894712ed491ef95e337411e7c6e52db4c374511e79d3d5c517daf3a77021a2 WHIRLPOOL 77bf5071054a4218227c93faa220cf649c06e7455d1b178ab232720d7f5353ba51a69237ceb480ed5375df600d080950a6c46807657a1d69e44b5c5282a3c122 +EBUILD mox3-0.12.0.ebuild 1464 SHA256 301eed3954a1c514b4484e30c4d62a36ac0a815636dbdcca16110632430864ea SHA512 07d475bbe8181819ab03d648930274ea47ef4213f41c11e08fa6958f29cd74c36e6582ce2fc21564082dae51112c48fea5add532cc5985f51d12350482148cdb WHIRLPOOL efc3423a362ea6d0e6610d8dcaa6364869be1d3d27e4298068e96bd4ac3101b1494e5c5a3fd8be1b65c87a8aca93af3908e14fd3d507c6c0e82c94e743629905 +EBUILD mox3-0.7.0-r1.ebuild 1754 SHA256 907a2c2b298383e80906d16ebf4d51e603547491dc7321820b34a5a82faf6f15 SHA512 a6db15807a493f3d2a9eb4b379c852249f8759ee510d70e0b5f4623f02d045dd5922b17f46cd46f17fb59291ad3cc837ac207186175653dcf9aa09e12586f3f6 WHIRLPOOL 45bcc6a9863eb2089fe57dbec400fb67f2ad7818429cc011cb81983bfc57c462a9856c97cb6c062334a8e2ab524e60f83bc973874a462a0c2fe8ea63e8e70c3f +EBUILD mox3-0.7.0.ebuild 1539 SHA256 d6e74cb4728b94c8b26f213af477b67fcc41a361ab0e7404e1fd910a51208757 SHA512 a8d0dd9f0de113164aac4511e9bc1381ea250802398214d69f773e875c3d9cfc65c36a63ed0415e1989cf1b0925e70d563d9f4fefc164e5b0b74251cb47a0dbb WHIRLPOOL e16438578f6be24518e38c32630c9579c7939a13440a4c7b17bbc97bb96984e6afb9d07ba41470bc5df1c6a28e34218407751c092dfd762e9cf27af7bfbcd900 +MISC ChangeLog 4272 SHA256 39d29641087331dead27b50381e2a611de741cc4b0fa7f867afe97d17227400e SHA512 e574c21e0ab55d572bb74bf504216ff62736271f589cbd3eae35452d8285ce8da7a02c64ffa847b37e190570b336ec3ebb2bad2d65f50003576f5cfa8bda39a6 WHIRLPOOL 2cbfd6095a5533a05da00ab5ec37950f5e22d679e2b068ce66bedbb17ae57f254be1776ef97ba8ff6224dbbf6b5e74e9ed115e4d5193f6c1885f802d66718f3b +MISC ChangeLog-2015 907 SHA256 86df0861775ab8f0af1c735dd88a29e167c65ab539f2dcb9d8e68a4d89fbfd7d SHA512 fa65831a4867d86f86d38b68843a53902f57b84f9a69a38aabf762632158bbf2f2fcd2db88947d9881eaea4d43ed519c466a54291d2bc3b9e88a81bca8fa0d0a WHIRLPOOL 13d37c6310b72a3a736d556509a8f8d8ea803aa255e6eb7762210fc4a75230c9d5a80eb8f0f82722a6a06ee18ec1e028fedadf92cc0ade57513cfd4580fbd998 +MISC metadata.xml 323 SHA256 51c6df1fef25a3b6dc63306318d5657c4b5671c66c380df79e7d17a977b63c9f SHA512 cb4be23a6eabcd2f0c9761234006bdba088200a94c23087fd3e09ac054c785bfcbe2c35ac060843cc0de2d4774298ac4c94ba8bd3e16eac9a8a4d08fa342e4f3 WHIRLPOOL 749764c1286635aaac4c24b0d1e64a6e98754cf369fca7ef7da347ee3c504eefca64e5874e781a2f735d6f454b614c461656c835ab20f1989d80aa20a4de63e1 diff --git a/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch b/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch new file mode 100644 index 000000000000..8c118e6a9ca1 --- /dev/null +++ b/dev-python/mox3/files/mox3-0.12.0-RegexTest-python3.6.patch @@ -0,0 +1,18 @@ +From: Zac Medico <zmedico@gentoo.org> +Subject: [PATCH] RegexTest: python3.6 compatibility + +https://bugs.launchpad.net/python-mox3/+bug/1665266 + +--- mox3-0.12.0/mox3/tests/test_mox.py ++++ mox3-0.12.0/mox3/tests/test_mox.py +@@ -316,8 +316,8 @@ + + def testReprWithFlags(self): + """repr should return the regular expression pattern and flags.""" +- self.assertTrue(repr(mox.Regex(r"a\s+b", flags=4)) == +- "<regular expression 'a\s+b', flags=4>") ++ self.assertTrue(repr(mox.Regex(r"a\s+b", flags=8)) == ++ r"<regular expression 'a\s+b', flags=8>") + + + class IsTest(testtools.TestCase): diff --git a/dev-python/mox3/metadata.xml b/dev-python/mox3/metadata.xml new file mode 100644 index 000000000000..54da79d5a32d --- /dev/null +++ b/dev-python/mox3/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>openstack@gentoo.org</email> + <name>Openstack</name> + </maintainer> + <upstream> + <remote-id type="pypi">mox3</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/mox3/mox3-0.10.0.ebuild b/dev-python/mox3/mox3-0.10.0.ebuild new file mode 100644 index 000000000000..0d53cedaed79 --- /dev/null +++ b/dev-python/mox3/mox3-0.10.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +DISTUTILS_IN_SOURCE_BUILD=TRUE + +inherit distutils-r1 + +DESCRIPTION="Mock object framework for Python" +HOMEPAGE="http://www.openstack.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +CDEPEND=" + >=dev-python/pbr-1.8[${PYTHON_USEDEP}] + <dev-python/pbr-2.0[${PYTHON_USEDEP}] +" +CRDEPEND=">=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}]" + +# NOTE dev-python/hacking isn't actually required for tests +# >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}] +# <dev-python/hacking-0.7[${PYTHON_USEDEP}] + +# NOTE dev-python/pyflakes isn't actually required for tests +# ~dev-python/pyflakes-0.7.2[${PYTHON_USEDEP}] + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND} + test? ( + ${CRDEPEND} + ~dev-python/pep8-1.5.7[${PYTHON_USEDEP}] + ~dev-python/pyflakes-0.8.1[${PYTHON_USEDEP}] + >=dev-python/flake8-2.2.4[${PYTHON_USEDEP}] + <=dev-python/flake8-2.4.1-r9999[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] + >=dev-python/six-1.9.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/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${CDEPEND} + ${CRDEPEND} +" + +python_test() { + # This single test fails on python3.4. + # I speculate this is due to the old style classes going away but have not + # verified this in any way. + if [[ "${EPYTHON}" = "python3.4" ]]; then + ebegin "patching mox3/tests/test_mox.py for ${EPYTHON}" + sed \ + -e '/def testStubOutClass_OldStyle(self):/,/def/ d' \ + -i mox3/tests/test_mox.py + STATUS=$? + eend $? + [[ ${STATUS} -gt 0 ]] && die + fi + + testr init || die "testr init failed under ${EPYTHON}" + testr run || die "testr run failed under ${EPYTHON}" +} diff --git a/dev-python/mox3/mox3-0.12.0.ebuild b/dev-python/mox3/mox3-0.12.0.ebuild new file mode 100644 index 000000000000..d34633d97b0f --- /dev/null +++ b/dev-python/mox3/mox3-0.12.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Mock object framework for Python" +HOMEPAGE="http://www.openstack.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]" +CRDEPEND=">=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND} + test? ( + ${CRDEPEND} + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] + ) + doc? ( + >=dev-python/oslo-sphinx-2.5.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}] + ) +" +RDEPEND=" + ${CDEPEND} + ${CRDEPEND} +" + +PATCHES=( "${FILESDIR}"/${P}-RegexTest-python3.6.patch ) + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + rm -rf .testrepository || die "could not remove '.testrepository' under ${EPYTHON}" + + 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 +} diff --git a/dev-python/mox3/mox3-0.7.0-r1.ebuild b/dev-python/mox3/mox3-0.7.0-r1.ebuild new file mode 100644 index 000000000000..76613c59e996 --- /dev/null +++ b/dev-python/mox3/mox3-0.7.0-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) + +inherit distutils-r1 + +DESCRIPTION="Mock object framework for Python" +HOMEPAGE="http://www.openstack.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +CDEPEND=" + >=dev-python/pbr-0.5.21[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] +" +CRDEPEND=">=dev-python/fixtures-0.3.12[${PYTHON_USEDEP}]" + +# NOTE dev-python/hacking isn't actually required for tests +# >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}] +# <dev-python/hacking-0.7[${PYTHON_USEDEP}] + +# NOTE dev-python/pyflakes isn't actually required for tests +# ~dev-python/pyflakes-0.7.2[${PYTHON_USEDEP}] + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND} + test? ( + ${CRDEPEND} + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + ~dev-python/flake8-2.0[${PYTHON_USEDEP}] + ~dev-python/pep8-1.4.5[${PYTHON_USEDEP}] + dev-python/subunit[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.32[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${CDEPEND} + ${CRDEPEND} +" + +DISTUTILS_IN_SOURCE_BUILD=TRUE + +python_test() { + # This single test fails on python3.4. + # I speculate this is due to the old style classes going away but have not + # verified this in any way. + if [[ "${EPYTHON}" = "python3.4" ]]; then + ebegin "patching mox3/tests/test_mox.py for ${EPYTHON}" + sed \ + -e '/def testStubOutClass_OldStyle(self):/,/def/ d' \ + -i mox3/tests/test_mox.py + STATUS=$? + eend $? + [[ ${STATUS} -gt 0 ]] && die + fi + + testr init || die "testr init failed under ${EPYTHON}" + testr run || die "testr run failed under ${EPYTHON}" +} diff --git a/dev-python/mox3/mox3-0.7.0.ebuild b/dev-python/mox3/mox3-0.7.0.ebuild new file mode 100644 index 000000000000..518e6181a254 --- /dev/null +++ b/dev-python/mox3/mox3-0.7.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +# py2.6 capable but unrequired +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +# Use at your own risk ;), or because an openstack package cited it as a req'd dep :) +DESCRIPTION="The Mock object framework for Python" +HOMEPAGE="https://code.google.com/p/pymox/wiki/MoxDocumentation http://www.openstack.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +IUSE="test" +LICENSE="Apache-2.0" +SLOT="0" +# Required for test phase +DISTUTILS_IN_SOURCE_BUILD=1 + +# Though test-req's cites hacking>=0.5.6,<0.7, setting to hacking>=0.7.2-r1,<0.8 +# since it WORKS and supports py3.2. What more do you want +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.5.21[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + ~dev-python/pep8-1.4.5[${PYTHON_USEDEP}] + ~dev-python/pyflakes-0.7.2[${PYTHON_USEDEP}] + ~dev-python/flake8-2.0[${PYTHON_USEDEP}] + >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.9[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + dev-python/subunit[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.32[${PYTHON_USEDEP}] + )" +RDEPEND=">=dev-python/fixtures-0.3.12[${PYTHON_USEDEP}]" + +python_test() { + testr init || die + testr run || die "testsuite failed under ${EPYTHON}" + flake8 "${PN}"/tests || die "flake8 drew error on a run over folder ${PN}/tests" +} |