commit:     0d1396d877805036439844278f927d2313a3d7ef
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Wed Jul 17 03:08:51 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 03:34:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d1396d8

dev-python/google-apitools: Version bump to 0.5.30

Fails tests on python3.7, so not adding that.

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/google-apitools/Manifest                |  1 +
 ...tools-0.5.30-skip-enum-test-on-new-python.patch | 21 ++++++++++++
 .../google-apitools/google-apitools-0.5.30.ebuild  | 40 ++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/dev-python/google-apitools/Manifest 
b/dev-python/google-apitools/Manifest
index 9b1622d4e6e..b403168b453 100644
--- a/dev-python/google-apitools/Manifest
+++ b/dev-python/google-apitools/Manifest
@@ -1,2 +1,3 @@
 DIST google-apitools-0.5.16.tar.gz 405331 BLAKE2B 
9bd086a68e5787f6dcd426887bb5e0af23ac985f851471da61567266fe52dc254054f0f2fb49e08b461c9281a32c25a764a7b751e10fe6ccca13c2758cdc4637
 SHA512 
cda60ec21622368c67cc47900218ceaa4137e6d602ee5196f59dac82aa87d35382785323971cc7e4aedf9d69e0a1baf8017c5d941d05171df9e1d5eea15570eb
 DIST google-apitools-0.5.22.tar.gz 422977 BLAKE2B 
1734f7e19ff90ff5997921ec1e57a29eec13f20dac4d7c84015d40f13147429ad93400a2eaa6038fdbf3ff2b5700dc1a0f6da6cca0706598b3a1eb5abba341b1
 SHA512 
f184b0ccc17ae80e8436727afab62a3e655ddecc37bde23dd144cc285461b80846fb1df24f21d75f06f521dbc28e8f3e9d5838d769ac52aff83c0aa8d1be66d5
+DIST google-apitools-0.5.30.tar.gz 363524 BLAKE2B 
ed8477c85911f5855a449abe81b465635d3cc4e08d2915de5e882608e634f3dd9ffdda929bd8b25eb3daa5922851aa9304ffe07778cdf3a3aa629e215633515a
 SHA512 
2dffffada829b9b962c64aab22b19cd227981819128c34f3e32515ee599297b3d5e8c97152d954110c2ef27c02737d3c30c785840b9f9767068688f62dc0b5c7

diff --git 
a/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch
 
b/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch
new file mode 100644
index 00000000000..6003db87a97
--- /dev/null
+++ 
b/dev-python/google-apitools/files/google-apitools-0.5.30-skip-enum-test-on-new-python.patch
@@ -0,0 +1,21 @@
+diff --git a/apitools/base/protorpclite/descriptor_test.py 
b/apitools/base/protorpclite/descriptor_test.py
+index fc27ec4..d518e24 100644
+--- a/apitools/base/protorpclite/descriptor_test.py
++++ b/apitools/base/protorpclite/descriptor_test.py
+@@ -16,6 +16,7 @@
+ #
+ 
+ """Tests for apitools.base.protorpclite.descriptor."""
++import sys
+ import platform
+ import types
+ 
+@@ -78,7 +79,7 @@ class DescribeEnumTest(test_util.TestCase):
+         described.check_initialized()
+         self.assertEquals(expected, described)
+ 
+-    @unittest2.skipIf('PyPy' in platform.python_implementation(),
++    @unittest2.skipIf('PyPy' in platform.python_implementation() or 
sys.hexversion >= 0x03060000,
+                       'todo: reenable this')
+     def testEnumWithItems(self):
+         class EnumWithItems(messages.Enum):

diff --git a/dev-python/google-apitools/google-apitools-0.5.30.ebuild 
b/dev-python/google-apitools/google-apitools-0.5.30.ebuild
new file mode 100644
index 00000000000..2f7d27ef19c
--- /dev/null
+++ b/dev-python/google-apitools/google-apitools-0.5.30.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to manipulate Google APIs"
+HOMEPAGE="https://github.com/google/apitools";
+SRC_URI="https://github.com/google/apitools/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/httplib2-0.8[${PYTHON_USEDEP}]
+       >=dev-python/fasteners-0.14[${PYTHON_USEDEP}]
+       >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}]
+       >=dev-python/six-1.12.0[${PYTHON_USEDEP}]
+       >=dev-python/python-gflags-3.1.2[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       >=dev-python/setuptools-18.5[${PYTHON_USEDEP}]
+       test? (
+               dev-python/nose[${PYTHON_USEDEP}]
+               >=dev-python/unittest2-0.5.1[${PYTHON_USEDEP}]
+               >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+       )"
+
+S="${WORKDIR}/apitools-${PV}"
+
+PATCHES=(
+       "${FILESDIR}/google-apitools-0.5.30-skip-enum-test-on-new-python.patch"
+)
+
+python_test() {
+       nosetests -v || die "tests failed with ${EPYTHON}"
+}

Reply via email to