diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/mox3 | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/mox3')
-rw-r--r-- | dev-python/mox3/Manifest | 8 | ||||
-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.24.0.ebuild | 58 |
6 files changed, 227 insertions, 0 deletions
diff --git a/dev-python/mox3/Manifest b/dev-python/mox3/Manifest new file mode 100644 index 000000000000..df1f6e67017a --- /dev/null +++ b/dev-python/mox3/Manifest @@ -0,0 +1,8 @@ +AUX mox3-0.12.0-RegexTest-python3.6.patch 652 BLAKE2B c7a53ec43accd137c100c6cab6e208a5e88ff784a59b01b2c71316654f9fe7f39273eae7be8a8810548b25636864b32176997a19020c878ba7861b3e86d74c77 SHA512 bdb5b27c151a2b2fc0351575fb7f8413a7667b738624991255882c1908df3677f2d8bbc984f8c4179325450f0a5837a750adeef3afc1738090879b70a2b135b6 +DIST mox3-0.10.0.tar.gz 42424 BLAKE2B 124bb4525ed6d24ebf75037c1f049fc851d64bdf8eed29c26fcdabcfe5f6211aec7f16f5038b397978383bd11a81588b44aa790608bfdf5b8596daccf3230542 SHA512 1f56e17ae150339cb2f33dca065c246cf0ff2f633f182336a576e9ab0bd4512ec8f42a4cb128f38ede33fe7e796552768465cfc626abe4f734b7a06b4625710a +DIST mox3-0.12.0.tar.gz 42377 BLAKE2B d6a841c8b28d47f21ae8e6f65abb7e2079762d45ccf670decf5815c5a2638af615804e711534ddb0ebbafdae6609f30e50ea20f224a7ccc5a02148f1ab0d23b6 SHA512 73e0215bf127589f791721a0cb9b8e3dcc379a23199339e370d641850a0a14c264eb9db94fbb37c99f9925ee3ebd302de14ec12fe1c8809dd3ca9c10cfd75468 +DIST mox3-0.24.0.tar.gz 44846 BLAKE2B dd1a27b20fc821de79f1e1f209872c3fb66f39b2330d1dda04c5b17045e337c84920e4538d7971f025d1377f9e91abd2fca8167508c5614fee06d9fca92aaa75 SHA512 6c081cf2b1e529f3213f7f48d22ed5d2980420b2de8f49607b624d5861f8b784f2f36d8a32fae3e81fe8186c1a9c36e6c4ec7d9de172c41c0530523590ef97b6 +EBUILD mox3-0.10.0.ebuild 2093 BLAKE2B 23078bba6c6a1a04627b8c1c9d90fb4936742d061d14fe86a74934da28deeddc7a43003c3306353d6870ce15b404edd895b0cb120e35fe01de2ca80e835f816d SHA512 65dafacb31908c9e8291ebb5e3be9c8010894b882ca0f3ffec2db33da5635f3782894712ed491ef95e337411e7c6e52db4c374511e79d3d5c517daf3a77021a2 +EBUILD mox3-0.12.0.ebuild 1464 BLAKE2B f4cbc1508ddd3d3a29680e9db11d8d8a7bda44b489247599ee54befb9e2e5acc0b2a425800d952136bbdf7e1c144b9c2fb823044511e5e3eca91a3be9838b04f SHA512 07d475bbe8181819ab03d648930274ea47ef4213f41c11e08fa6958f29cd74c36e6582ce2fc21564082dae51112c48fea5add532cc5985f51d12350482148cdb +EBUILD mox3-0.24.0.ebuild 1440 BLAKE2B 8a26040fa7b31ce078820eb7dbaaade6c756cd2a67517d4b922e1a642626c9ade6cd92b5f676a3b1d8fa301cb7ac94dec9d6c36041c77ba1f8f331a3682ae436 SHA512 16f32f0dd82a39d9c9fd8fd8f63bdc79c35c07d80ef30b662fd4d94f84cbc33badffd1e86a8885ceb88401e9abcf9f65e5a867298d83b7356692f342889add7e +MISC metadata.xml 323 BLAKE2B 880203c04d889c65278f42730f465e61463109e5e8e71ffacf21d3ad98eb804d36ff66886349eec536aef71a7741a1df9496f1c8073ce1421aed9863593a9ebd SHA512 cb4be23a6eabcd2f0c9761234006bdba088200a94c23087fd3e09ac054c785bfcbe2c35ac060843cc0de2d4774298ac4c94ba8bd3e16eac9a8a4d08fa342e4f3 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.24.0.ebuild b/dev-python/mox3/mox3-0.24.0.ebuild new file mode 100644 index 000000000000..4a42c64cee2a --- /dev/null +++ b/dev-python/mox3/mox3-0.24.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 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-3.0.0[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${CDEPEND} + test? ( + ${CRDEPEND} + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + ) + doc? ( + >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}] + >=dev-python/openstackdocstheme-1.17.0[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${CDEPEND} + ${CRDEPEND} +" + +PATCHES=( "${FILESDIR}"/${PN}-0.12.0-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 +} |