summaryrefslogtreecommitdiff
path: root/dev-python/google-apputils
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/google-apputils
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/google-apputils')
-rw-r--r--dev-python/google-apputils/Manifest9
-rw-r--r--dev-python/google-apputils/files/0.4.2-sh_test-env.patch21
-rw-r--r--dev-python/google-apputils/google-apputils-0.4.0-r1.ebuild47
-rw-r--r--dev-python/google-apputils/google-apputils-0.4.2-r1.ebuild34
-rw-r--r--dev-python/google-apputils/google-apputils-0.4.2-r2.ebuild45
-rw-r--r--dev-python/google-apputils/metadata.xml12
6 files changed, 168 insertions, 0 deletions
diff --git a/dev-python/google-apputils/Manifest b/dev-python/google-apputils/Manifest
new file mode 100644
index 000000000000..ed1601bd4464
--- /dev/null
+++ b/dev-python/google-apputils/Manifest
@@ -0,0 +1,9 @@
+AUX 0.4.2-sh_test-env.patch 754 SHA256 57da614c193e3500c52a1d07dcf69c4a6a44e1097988eaa9e1a5c9717ff2ab21 SHA512 a8a84c65d08c7574f4e33c6e6c0b75d1153e192e86ec37c0e74754cc84f45b081b523ee2f1919f57580ba5bf6d849922dfaf62bafa00ef098cb1a835a929331c WHIRLPOOL 5dcfa105e8ff3a9bbe4b1d4c27cfa38e36cc35b7d7b78ae533c0cc7f2fe0f35c9e14bc57f5d1a33e9541b30815f26efb587b0de95b52b8be646a8978927b73dc
+DIST google-apputils-0.4.0.tar.gz 80014 SHA256 b260eb39f2723b71329ad016773033b95a31e89d8c9e13b8e6a1ef8eed8e94a3 SHA512 5dbbf50e9551b33d882557ef9385c64691dcff6d6c219c9ff6aea2dc73c8af6d03392b3088fe1fb4000979e227830a0e437dc347520488627657085c8ea23f5e WHIRLPOOL c52d3fb5a4b0a81f212f53e4e1c92efee1275415fdb6ac337bce18494cee5a9c319c07634f890187e3e9f6b7d9222da048dc484d18fde6727db569d7c579d27f
+DIST google-apputils-0.4.2.tar.gz 81095 SHA256 47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29 SHA512 d7579ec461292bb01ad5b8e1b09e161c66af0e85361f43f6065b837c90bddb9711a2d56db2b73d780dc25945375d4dad2f646507512b9acfeefd517613feacd4 WHIRLPOOL d5db6aeebb18b9b3a01dbb338095a3b3b90fc90c9cb2250f141e07426119dada1deb301f4d9c3580448709d329de86f7086e13a6ab479ab1e8da154d53f921bc
+EBUILD google-apputils-0.4.0-r1.ebuild 1419 SHA256 1fc85c17626972603e4b000ac5ef13a5f95961d04afe6b58ffffcb14ebb93136 SHA512 3d7618b86dd42de706c747840f206fff16e7048cd88a565b50076016115f3d8c30094e339247294f36e2f880b55dd2d97f600349e11201d9f903cbfb17d105ac WHIRLPOOL 535091a3621a11a1381c2e36166ae75b633e4a45cae730a96009e665dd5db6ce11e97f9457e49c4a5fd9d942ae4b7d3e44d69a34531437f16773cb3179422335
+EBUILD google-apputils-0.4.2-r1.ebuild 911 SHA256 bb00b581d534714bd268cacd960ca21ded98b8ce068138eebcab2870f84830f1 SHA512 002ac6d13ff7fb217d0bac24524cd5280ffc7717181a847a486e2f6e5f18aaddb663297e9260d0d5574016ae7476e716877b07478e389dc86f457db3415c4e72 WHIRLPOOL f63c7a0a7aef16a0aef4b023adf085f89d17025200d1bec03914ebc45b90f6292ff81d360131af0fbc004a4678b01184a9d5edb88553bb5e13247f6bb43851cd
+EBUILD google-apputils-0.4.2-r2.ebuild 1110 SHA256 5913a036541be39608bc478cba58c7e0833c628f08837723e66d5c1156ea2b02 SHA512 6321eeb225b0fc048c149e198cd8d6fa651bd590a3a6058d104c14236610126e0cbc18adcfd518932ba92695eee49f677a54708318f89c9e1dfb155c32be1538 WHIRLPOOL 82b7be29f47c6ccdee1907c4a375471e5d941673787e2c46b41f14e7cfa0ca7e6ecef3443c5dbdc85cbb21dee808881ca46cfda07d1c592290e7842128adf050
+MISC ChangeLog 3971 SHA256 8f3f927b3ac1fbbedfe9cba44021bda3153b87a77509c42a065c63322b249c11 SHA512 2c3aea68658d9a08ca8ee81179db499d17751dffb9f8e9dd4e68b712dc27cdda097717175c91080b2923b48ee763de13460abfa78943b2d2fab9f3b83e75fbd1 WHIRLPOOL 1d59984c17eeb56293ea8dfdcdc7cd933d925dcee8dc84bae2927294875c780b169f28f0c15ded8f6878d4b8763083803dedfc0aa097353c86ac3520497f9a03
+MISC ChangeLog-2015 2320 SHA256 34a856334284b144930aab26bedfe13a0410aa39b926f16a974d09ed8555e733 SHA512 9aeffa9fbf3c85f1645599827ca0861c1a648eeb90b4defeb69340b68a89f8b7dd3d446440e4c1d55c183bd7f3a8ef723010c8beb7439595ef28895f81e9dcfe WHIRLPOOL b84fee97ec98ba2cd50a77762999b666aad19f9e0e8cb7d70db829ce4901982020e8abd6a3fd0cc9b7749efc81e8c5d210ec897e41b4eb4984939037c2669f79
+MISC metadata.xml 392 SHA256 6ef498e89491a6162640a77548c2c3e7eae852d40ca3b50436ce55cbfa970d1d SHA512 7ccba7bf0fcdb9da27053154056eb947ad07ce01db7ecc41f5a7e58bf75d15e71ce08ff420ee70b8169e5ea44d48d04d529acad65c8280785e0bd21a21bbcb9a WHIRLPOOL f8be2c4496dec9be22b60a5b143748d6751ea74ff8dbe7088cc9ddd3fc14095654a035aca7c04474708d260f409f5dc7384ce40aa2d5773efe686a1d7e4ff6b7
diff --git a/dev-python/google-apputils/files/0.4.2-sh_test-env.patch b/dev-python/google-apputils/files/0.4.2-sh_test-env.patch
new file mode 100644
index 000000000000..69ebe6278f9d
--- /dev/null
+++ b/dev-python/google-apputils/files/0.4.2-sh_test-env.patch
@@ -0,0 +1,21 @@
+Prevent the environment from being clobbered during sh_test
+
+diff --git a/tests/sh_test.py b/tests/sh_test.py
+index ab41055..d1b08c6 100644
+--- a/tests/sh_test.py
++++ b/tests/sh_test.py
+@@ -29,12 +29,8 @@ class ShellScriptTests(basetest.TestCase):
+ path_with_python = ':'.join((
+ os.path.dirname(sys.executable), os.environ.get('PATH')))
+
+- env = {
+- 'PATH': path_with_python,
+- # Setuptools puts dependency eggs in our path, so propagate that.
+- 'PYTHONPATH': os.pathsep.join(sys.path),
+- 'TEST_TMPDIR': FLAGS.test_tmpdir,
+- }
++ env = os.environ.copy()
++ env['TEST_TMPDIR'] = FLAGS.test_tmpdir
+ p = subprocess.Popen(sh_test_path, cwd=tests_path, env=env)
+ self.assertEqual(0, p.wait())
+
diff --git a/dev-python/google-apputils/google-apputils-0.4.0-r1.ebuild b/dev-python/google-apputils/google-apputils-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..c669a1979113
--- /dev/null
+++ b/dev-python/google-apputils/google-apputils-0.4.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 ) # Doesn't yet support py3
+
+inherit distutils-r1
+
+DESCRIPTION="Collection of utilities for building Python applications"
+HOMEPAGE="https://github.com/google/google-apputils"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 arm ~arm64 ~ia64 ~m68k ~mips ~ppc64 ~s390 ~sh x86"
+IUSE="test"
+
+RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/python-gflags[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-python/mox[${PYTHON_USEDEP}] )"
+# version borders needed are already confluent with versions in the tree
+
+src_unpack() {
+ default
+ chmod -R a+rX,u+w,g-w,o-w ${P} || die
+}
+
+python_prepare_all() {
+ # https://code.google.com/p/google-apputils-python/source/detail?r=12
+ # This version bordering is long out of date and wrong since end of March 2012!
+ sed -e 's:>=1.4,<2:>=1.4:' -i setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ # These yield 2 fails which are in fact expected errors run from a shell script!
+ # They seemingly have no immediate mechanism to exit 0 in an expected fail style.
+ for test in tests/{app_test*.py,[b-s]*.py}
+ do
+ "${PYTHON}" $test || die "test failure under ${EPYTHON}"
+ done
+}
diff --git a/dev-python/google-apputils/google-apputils-0.4.2-r1.ebuild b/dev-python/google-apputils/google-apputils-0.4.2-r1.ebuild
new file mode 100644
index 000000000000..4c34e95c5e8d
--- /dev/null
+++ b/dev-python/google-apputils/google-apputils-0.4.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+# Python 3: https://github.com/google/google-apputils/issues/9
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Collection of utilities for building Python applications"
+HOMEPAGE="https://github.com/google/google-apputils"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/python-dateutil-1.4[${PYTHON_USEDEP}]
+ >=dev-python/python-gflags-1.4[${PYTHON_USEDEP}]
+ >=dev-python/pytz-2010[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND} dev-python/mox[${PYTHON_USEDEP}] )"
+
+src_unpack() {
+ default
+ chmod -R a+rX,u+w,g-w,o-w ${P} || die
+}
+
+python_test() {
+ esetup.py google_test
+}
diff --git a/dev-python/google-apputils/google-apputils-0.4.2-r2.ebuild b/dev-python/google-apputils/google-apputils-0.4.2-r2.ebuild
new file mode 100644
index 000000000000..0f2dca125c4e
--- /dev/null
+++ b/dev-python/google-apputils/google-apputils-0.4.2-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+# Python 3: https://github.com/google/google-apputils/issues/9
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Collection of utilities for building Python applications"
+HOMEPAGE="https://github.com/google/google-apputils"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
+IUSE="test"
+
+RDEPEND="
+ dev-python/namespace-google[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.4[${PYTHON_USEDEP}]
+ >=dev-python/python-gflags-1.4[${PYTHON_USEDEP}]
+ >=dev-python/pytz-2010[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND} dev-python/mox[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/0.4.2-sh_test-env.patch"
+)
+
+src_unpack() {
+ default
+ chmod -R a+rX,u+w,g-w,o-w ${P} || die
+}
+
+python_test() {
+ esetup.py google_test
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ find "${D}" -name '*.pth' -delete || die
+}
diff --git a/dev-python/google-apputils/metadata.xml b/dev-python/google-apputils/metadata.xml
new file mode 100644
index 000000000000..12da0e45b5e2
--- /dev/null
+++ b/dev-python/google-apputils/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">google/google-apputils</remote-id>
+ <remote-id type="pypi">google-apputils</remote-id>
+ </upstream>
+</pkgmetadata>