* [gentoo-commits] dev/dev-zero:master commit in: dev-python/parse/files/, dev-python/pgspecial/, dev-python/parse/, ...
@ 2016-07-20 12:23 Tiziano Müller
0 siblings, 0 replies; only message in thread
From: Tiziano Müller @ 2016-07-20 12:23 UTC (permalink / raw
To: gentoo-commits
commit: 214f702e7318f19964a2fa58c524db81096d4194
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 20 08:59:30 2016 +0000
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Wed Jul 20 08:59:30 2016 +0000
URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=214f702e
pgcli: initial commit, including required deps and bumps
dev-db/pgcli/Manifest | 1 +
.../pgcli/files/pgcli-1.1.0-sqlparse-0.2.0.patch | 83 ++++++++++++++++++++++
dev-db/pgcli/pgcli-1.1.0.ebuild | 51 +++++++++++++
dev-python/behave/Manifest | 2 +
dev-python/behave/behave-1.2.5-r1.ebuild | 51 +++++++++++++
dev-python/behave/metadata.xml | 14 ++++
dev-python/parse-type/Manifest | 1 +
.../parse-type-0.3.4-python-3.5-tests-compat.patch | 40 +++++++++++
dev-python/parse-type/metadata.xml | 14 ++++
dev-python/parse-type/parse-type-0.3.4-r1.ebuild | 38 ++++++++++
dev-python/parse/Manifest | 1 +
.../parse-1.6.6-python-3.5-tests-compat.patch | 50 +++++++++++++
dev-python/parse/metadata.xml | 14 ++++
dev-python/parse/parse-1.6.6.ebuild | 26 +++++++
dev-python/pgspecial/Manifest | 1 +
dev-python/pgspecial/pgspecial-1.5.0.ebuild | 35 +++++++++
dev-python/pyhamcrest/Manifest | 1 +
dev-python/pyhamcrest/metadata.xml | 17 +++++
dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild | 53 ++++++++++++++
dev-python/sqlparse/Manifest | 1 +
dev-python/sqlparse/sqlparse-0.2.0.ebuild | 27 +++++++
21 files changed, 521 insertions(+)
diff --git a/dev-db/pgcli/Manifest b/dev-db/pgcli/Manifest
new file mode 100644
index 0000000..f778fd2
--- /dev/null
+++ b/dev-db/pgcli/Manifest
@@ -0,0 +1 @@
+DIST pgcli-1.1.0.tar.gz 406492 SHA256 2349596b378605586f24811c90eefa51bb8445b3c3348474cc30750ef15835db SHA512 2c18f2860a044a2e0b72907facfa5cfec1642ffd1a4917f005ccfad0eed8e8e20c7276502e41a04ccbf28e362585b2c1adcbbeba37195a519490bde750e5ac64 WHIRLPOOL 5795e7e9a0ccd88751c97c26b7d1904ad2ec4174c88a3120b031f23904417bf91a8300966f7516093b2c22a05fcd4845a4ec978bc82cad7523b01903c13f9ba4
diff --git a/dev-db/pgcli/files/pgcli-1.1.0-sqlparse-0.2.0.patch b/dev-db/pgcli/files/pgcli-1.1.0-sqlparse-0.2.0.patch
new file mode 100644
index 0000000..792f49d
--- /dev/null
+++ b/dev-db/pgcli/files/pgcli-1.1.0-sqlparse-0.2.0.patch
@@ -0,0 +1,83 @@
+diff --git a/pgcli/packages/parseutils.py b/pgcli/packages/parseutils.py
+index cbdd1e3..4a5b47c 100644
+--- a/pgcli/packages/parseutils.py
++++ b/pgcli/packages/parseutils.py
+@@ -296,7 +296,7 @@ def parse_partial_identifier(word):
+ n_tok = len(p.tokens)
+ if n_tok == 1 and isinstance(p.tokens[0], Identifier):
+ return p.tokens[0]
+- elif p.token_next_match(0, Error, '"'):
++ elif p.token_next_by(m=(Error, '"'))[1]:
+ # An unmatched double quote, e.g. '"foo', 'foo."', or 'foo."bar'
+ # Close the double quote, then reparse
+ return parse_partial_identifier(word + '"')
+diff --git a/pgcli/packages/sqlcompletion.py b/pgcli/packages/sqlcompletion.py
+index a313a95..3aa247e 100644
+--- a/pgcli/packages/sqlcompletion.py
++++ b/pgcli/packages/sqlcompletion.py
+@@ -74,7 +74,7 @@ class SqlStatement(object):
+ self.text_before_cursor = text_before_cursor
+ self.parsed = parsed
+
+- self.last_token = parsed and parsed.token_prev(len(parsed.tokens)) or ''
++ self.last_token = parsed and parsed.token_prev(len(parsed.tokens))[1] or ''
+
+ def get_identifier_schema(self):
+ schema = (self.identifier and self.identifier.get_parent_name()) or None
+@@ -139,7 +139,7 @@ def _split_multiple_statements(full_text, text_before_cursor, parsed):
+ stmt_start, stmt_end = 0, 0
+
+ for statement in parsed:
+- stmt_len = len(statement.to_unicode())
++ stmt_len = len(str(statement))
+ stmt_start, stmt_end = stmt_end, stmt_end + stmt_len
+
+ if stmt_end >= current_pos:
+@@ -267,7 +267,7 @@ def suggest_based_on_last_token(token, stmt):
+
+ # Check for a subquery expression (cases 3 & 4)
+ where = p.tokens[-1]
+- prev_tok = where.token_prev(len(where.tokens) - 1)
++ prev_tok = where.token_prev(len(where.tokens) - 1)[1]
+
+ if isinstance(prev_tok, Comparison):
+ # e.g. "SELECT foo FROM bar WHERE foo = ANY("
+@@ -280,7 +280,7 @@ def suggest_based_on_last_token(token, stmt):
+ return column_suggestions
+
+ # Get the token before the parens
+- prev_tok = p.token_prev(len(p.tokens) - 1)
++ prev_tok = p.token_prev(len(p.tokens) - 1)[1]
+
+ if (prev_tok and prev_tok.value
+ and prev_tok.value.lower().split(' ')[-1] == 'using'):
+@@ -433,7 +433,7 @@ def _allow_join_condition(statement):
+ if not statement or not statement.tokens:
+ return False
+
+- last_tok = statement.token_prev(len(statement.tokens))
++ last_tok = statement.token_prev(len(statement.tokens))[1]
+ return last_tok.value.lower() in ('on', 'and', 'or')
+
+
+@@ -452,6 +452,6 @@ def _allow_join(statement):
+ if not statement or not statement.tokens:
+ return False
+
+- last_tok = statement.token_prev(len(statement.tokens))
++ last_tok = statement.token_prev(len(statement.tokens))[1]
+ return (last_tok.value.lower().endswith('join')
+ and last_tok.value.lower() not in('cross join', 'natural join'))
+diff --git a/setup.py b/setup.py
+index 13cdbfa..cd88848 100644
+--- a/setup.py
++++ b/setup.py
+@@ -17,7 +17,7 @@ install_requirements = [
+ 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
+ 'prompt_toolkit>=1.0.0,<1.1.0',
+ 'psycopg2 >= 2.5.4',
+- 'sqlparse == 0.1.19',
++ 'sqlparse == 0.2.0',
+ 'configobj >= 5.0.6',
+ 'humanize >= 0.5.1',
+ 'wcwidth >= 0.1.6',
diff --git a/dev-db/pgcli/pgcli-1.1.0.ebuild b/dev-db/pgcli/pgcli-1.1.0.ebuild
new file mode 100644
index 0000000..6fc1e96
--- /dev/null
+++ b/dev-db/pgcli/pgcli-1.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Postgres CLI with autocompletion and syntax highlighting"
+HOMEPAGE="http://pgcli.com/ https://pypi.python.org/pypi/pgcli"
+SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/pgspecial-1.5.0[${PYTHON_USEDEP}]
+ >=dev-python/click-4.1[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2[${PYTHON_USEDEP}]
+ =dev-python/prompt_toolkit-1.0*[${PYTHON_USEDEP}]
+ >=dev-python/psycopg-2.5.4[${PYTHON_USEDEP}]
+ =dev-python/sqlparse-0.2*[${PYTHON_USEDEP}]
+ >=dev-python/configobj-5.0.6[${PYTHON_USEDEP}]
+ >=dev-python/humanize-0.5.1[${PYTHON_USEDEP}]
+ >=dev-python/wcwidth-0.1.6[${PYTHON_USEDEP}]
+ >=dev-python/setproctitle-1.1.9[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/pytest-2.7.0[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ >=dev-python/behave-1.2.4[${PYTHON_USEDEP}]
+ >=dev-python/pexpect-3.3[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}/${P}-sqlparse-0.2.0.patch" )
+
+python_prepare_all() {
+ # remove tests which require a live database
+ rm tests/test_pgexecute.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test || die
+}
diff --git a/dev-python/behave/Manifest b/dev-python/behave/Manifest
new file mode 100644
index 0000000..db4416d
--- /dev/null
+++ b/dev-python/behave/Manifest
@@ -0,0 +1,2 @@
+DIST behave-1.2.4.tar.gz 343050 SHA256 24542aadd9eeb3a471076f9d880a69250052153df93122d9991938db917759ec SHA512 98360202fdccaa6cdfaf70a2a658db06b8de0017fbaeb5bd8d33ae8f009444a29f9e75eab8a4b363eb7719ef10566fad5521372285f2998cfb6e3037df706a1c WHIRLPOOL 2278500709733f9715ada2e6e178d6bb32c566c8df8ae6bc8ac3400ec66e37d9a1559c58e869becc89a8861407c658f22c695416d3617d7651629a5f2eadd6b5
+DIST behave-1.2.5.tar.gz 385738 SHA256 81b731ac5187e31e4aad2594944fa914943683a9818320846d037c5ebd6d5d0b SHA512 137ede0baed9df154087249df8dcae81ab0cdf1de91a5790fca7ccf3231ba2ba4e64623abd2b8c9bfc459ab6575f68b9ef7e03e33ef79e524d9443a8489ec7fe WHIRLPOOL 07b603da98220f35d82f11ea07042e5962c6be4ba1442c27a491c00b3260a57880bb26fbf89b510d898457675be28e63ff0c37dd5568d5905ff5e41ccb4b400d
diff --git a/dev-python/behave/behave-1.2.5-r1.ebuild b/dev-python/behave/behave-1.2.5-r1.ebuild
new file mode 100644
index 0000000..561b0ae
--- /dev/null
+++ b/dev-python/behave/behave-1.2.5-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="behaviour-driven development, Python style"
+HOMEPAGE="https://github.com/behave/behave"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/parse-1.6.3[${PYTHON_USEDEP}]
+ >=dev-python/parse-type-0.3.4[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}]
+ >=dev-python/sphinxcontrib-cheeseshop-0.2[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/mock-1.0[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.3[${PYTHON_USEDEP}]
+ >=dev-python/pyhamcrest-1.8[${PYTHON_USEDEP}]
+ )"
+
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ nosetests || die "nosetests failed under ${EPYTHON}"
+
+ ${PYTHON} -m behave --tags='~@xfail' features/ || die "behave features failed under ${EPYTHON}"
+ ${PYTHON} -m behave --tags='~@xfail' tools/test-features/ || die "behave test-festures failed under ${EPYTHON}"
+ ${PYTHON} -m behave --tags='~@xfail' issue.features/ || die "behave issue.features failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( build/docs/html/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/behave/metadata.xml b/dev-python/behave/metadata.xml
new file mode 100644
index 0000000..6ac94f6
--- /dev/null
+++ b/dev-python/behave/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">behave</remote-id>
+ <remote-id type="github">behave/behave</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/parse-type/Manifest b/dev-python/parse-type/Manifest
new file mode 100644
index 0000000..e5a0767
--- /dev/null
+++ b/dev-python/parse-type/Manifest
@@ -0,0 +1 @@
+DIST parse_type-0.3.4.tar.gz 62199 SHA256 3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147 SHA512 5ef80ed820cc7e2f4fa8fd0fbf64160c81f77b4a1af38015e3ec7e3be3f613ecc2211d5dba15ef600cbe11c556a2c1fb6cdc8374c52c608914aa903fad84267f WHIRLPOOL 236c047e7cbbb22bdde0424bc446404141694492cf4b0c7bb63f99f6fc8c7fa2a02b4a97e4c6b3d957a2d2a2156b3a514e9614761011f20ca4414a363c551e56
diff --git a/dev-python/parse-type/files/parse-type-0.3.4-python-3.5-tests-compat.patch b/dev-python/parse-type/files/parse-type-0.3.4-python-3.5-tests-compat.patch
new file mode 100644
index 0000000..54cfa59
--- /dev/null
+++ b/dev-python/parse-type/files/parse-type-0.3.4-python-3.5-tests-compat.patch
@@ -0,0 +1,40 @@
+From 8f7ce32dc6bd466f1ea6ccc9260917016061bb4e Mon Sep 17 00:00:00 2001
+From: David King <dking@redhat.com>
+Date: Tue, 15 Dec 2015 08:52:26 +0000
+Subject: [PATCH] Adapt bundled parse for Python 3.5
+
+As the upstream pull request:
+
+https://github.com/r1chardj0n3s/parse/pull/34
+---
+ tests/test_parse_type_parse.py | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_parse_type_parse.py b/tests/test_parse_type_parse.py
+index 4151d37..cab6143 100644
+--- a/tests/test_parse_type_parse.py
++++ b/tests/test_parse_type_parse.py
+@@ -11,6 +11,7 @@
+
+ import unittest
+ from datetime import datetime, time
++import re
+ # XXX-ADAPT:
+ # ORIG: import parse
+ from parse_type import parse
+@@ -611,8 +612,13 @@ def test_mixed_type_variant(self):
+ self.assertEqual(r.fixed[21], 'spam')
+
+ def test_too_many_fields(self):
+- p = parse.compile('{:ti}' * 15)
+- self.assertRaises(parse.TooManyFields, p.parse, '')
++ # Python 3.5 removed the limit of 100 named groups in a regular expression,
++ # so only test for the exception if the limit exists.
++ try:
++ re.compile("".join("(?P<n{n}>{n}-)".format(n=i) for i in range(101)))
++ except AssertionError:
++ p = parse.compile('{:ti}' * 15)
++ self.assertRaises(parse.TooManyFields, p.parse, '')
+
+
+ class TestSearch(unittest.TestCase):
diff --git a/dev-python/parse-type/metadata.xml b/dev-python/parse-type/metadata.xml
new file mode 100644
index 0000000..d9e5fb0
--- /dev/null
+++ b/dev-python/parse-type/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">parse_type</remote-id>
+ <remote-id type="github">jenisys/parse_type</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/parse-type/parse-type-0.3.4-r1.ebuild b/dev-python/parse-type/parse-type-0.3.4-r1.ebuild
new file mode 100644
index 0000000..1d4c7de
--- /dev/null
+++ b/dev-python/parse-type/parse-type-0.3.4-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN="${PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Simplifies to build parse types based on the parse module"
+HOMEPAGE="https://github.com/jenisys/parse_type"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND=">=dev-python/parse-1.6[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' 'python3_3')"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-runner[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}/${P}-python-3.5-tests-compat.patch" )
+
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ py.test tests || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/parse/Manifest b/dev-python/parse/Manifest
new file mode 100644
index 0000000..b008a9c
--- /dev/null
+++ b/dev-python/parse/Manifest
@@ -0,0 +1 @@
+DIST parse-1.6.6.tar.gz 24638 SHA256 71435aaac494e08cec76de646de2aab8392c114e56fe3f81c565ecc7eb886178 SHA512 fae467b6f6e35f04d9e501162117423506701d101b2265e941b5b34420e833a0f4dbc44f62c33d51836a62ef51da9b5b8a3a1d39b3ec490f9eb77c5b6f302cdf WHIRLPOOL c206590ebea8f6b2ef552b0911b83c692a50b0dc395ac76e392a2b4eb16e8c544411da7b7475956183de3d189e6cc27b87752c0aa991dc5e7587e854eea6953c
diff --git a/dev-python/parse/files/parse-1.6.6-python-3.5-tests-compat.patch b/dev-python/parse/files/parse-1.6.6-python-3.5-tests-compat.patch
new file mode 100644
index 0000000..5183cf5
--- /dev/null
+++ b/dev-python/parse/files/parse-1.6.6-python-3.5-tests-compat.patch
@@ -0,0 +1,50 @@
+From 32f15cfefb7c7b6476360ac65cba807aa3dfccfa Mon Sep 17 00:00:00 2001
+From: David King <dking@redhat.com>
+Date: Mon, 14 Dec 2015 09:58:19 +0000
+Subject: [PATCH] Fix test_too_many_fields with Python 3.5
+
+Python versions before 3.5 had a limit of 100 groups in regular
+expressions. This limit was removed during 3.5 development:
+
+http://bugs.python.org/issue22437
+https://hg.python.org/cpython/rev/0b85ea4bd1af
+
+The test_too_many_fields test asserts that the limit exists by
+attempting to parse a string with 15 fields, which triggers the 100
+named groups limit.
+
+Adjust the test so that if first checks to see whether the limit of 100
+named groups exists, and only assert that parsing 15 fields fails if
+that is the case.
+---
+ test_parse.py | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/test_parse.py b/test_parse.py
+index c524349..1d50568 100755
+--- a/test_parse.py
++++ b/test_parse.py
+@@ -6,6 +6,7 @@
+
+ import unittest
+ from datetime import datetime, time
++import re
+
+ import parse
+
+@@ -624,8 +625,13 @@ def test_mixed_type_variant(self):
+ self.assertEqual(r.fixed[21], 'spam')
+
+ def test_too_many_fields(self):
+- p = parse.compile('{:ti}' * 15)
+- self.assertRaises(parse.TooManyFields, p.parse, '')
++ # Python 3.5 removed the limit of 100 named groups in a regular expression,
++ # so only test for the exception if the limit exists.
++ try:
++ re.compile("".join("(?P<n{n}>{n}-)".format(n=i) for i in range(101)))
++ except AssertionError:
++ p = parse.compile('{:ti}' * 15)
++ self.assertRaises(parse.TooManyFields, p.parse, '')
+
+
+ class TestSearch(unittest.TestCase):
diff --git a/dev-python/parse/metadata.xml b/dev-python/parse/metadata.xml
new file mode 100644
index 0000000..9a74e7b
--- /dev/null
+++ b/dev-python/parse/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">parse</remote-id>
+ <remote-id type="github">r1chardj0n3s/parse</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/parse/parse-1.6.6.ebuild b/dev-python/parse/parse-1.6.6.ebuild
new file mode 100644
index 0000000..be8e6ea
--- /dev/null
+++ b/dev-python/parse/parse-1.6.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="parse() is the opposite of format()"
+HOMEPAGE="https://github.com/r1chardj0n3s/parse"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}/${P}-python-3.5-tests-compat.patch" )
+
+python_test() {
+ "${PYTHON}" test_parse.py || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/pgspecial/Manifest b/dev-python/pgspecial/Manifest
new file mode 100644
index 0000000..d712a2b
--- /dev/null
+++ b/dev-python/pgspecial/Manifest
@@ -0,0 +1 @@
+DIST pgspecial-1.5.0.tar.gz 37384 SHA256 2e053be6ca876c0a7b45f42f5f5b7061a109bce2d6b1c023bcadf62680ceaf5b SHA512 10b411dcb42fe677cb64249f1c73d6aaa40769d19ab0cb9437dc543c8987458f4761406f4a0ca0cdf440dda1dcea8896ab4b8dec496ac9ba72ef306fd42470b6 WHIRLPOOL 3ec8d5f5883eeae7f14c73388607404c55482a5ae4c09cb0d7e40e7490c7d682770ada02475827182f1dbfe17c336256a23d542c39f8f1d910a0819dd66d7a02
diff --git a/dev-python/pgspecial/pgspecial-1.5.0.ebuild b/dev-python/pgspecial/pgspecial-1.5.0.ebuild
new file mode 100644
index 0000000..daf08ec
--- /dev/null
+++ b/dev-python/pgspecial/pgspecial-1.5.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Meta-commands handler for Postgres Database"
+HOMEPAGE="http://pgcli.com/ https://pypi.python.org/pypi/pgspecial"
+SRC_URI="https://github.com/dbcli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/click-4.1[${PYTHON_USEDEP}]
+ >=dev-python/sqlparse-0.1.19[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/pytest-2.7.0[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ >=dev-python/psycopg-2.5.4[${PYTHON_USEDEP}]
+ )"
+
+RESTRICT="test"
+# all tests require/use a running database
+
+python_test() {
+ py.test || die
+}
diff --git a/dev-python/pyhamcrest/Manifest b/dev-python/pyhamcrest/Manifest
new file mode 100644
index 0000000..f829b48
--- /dev/null
+++ b/dev-python/pyhamcrest/Manifest
@@ -0,0 +1 @@
+DIST PyHamcrest-1.9.0.tar.gz 376623 SHA256 8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd SHA512 3b8393d0079b619b208ec7f06ed5133c4ff9d9dba050f818adf56347fc2225fd1c85d60f3dc262b7b9722061f0b8e4966180b6b96245a371e578d0d51633b4b0 WHIRLPOOL 2fcd5a30131c7bdf87fe79640d2eee9b4c773be9a25fd79fc8b82d8915d5cd00c6c574b02224e8a2b83cf1590d69884d15c5d300e053b8edcf9468fbe03861a5
diff --git a/dev-python/pyhamcrest/metadata.xml b/dev-python/pyhamcrest/metadata.xml
new file mode 100644
index 0000000..d08592a
--- /dev/null
+++ b/dev-python/pyhamcrest/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <use>
+ <flag name="numpy">Enable optional dependence on dev-python/numpy</flag>
+ </use>
+ <upstream>
+ <remote-id type="pypi">PyHamcrest</remote-id>
+ <remote-id type="github">hamcrest/PyHamcrest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild
new file mode 100644
index 0000000..76b0c6d
--- /dev/null
+++ b/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+MY_PN="PyHamcrest"
+
+DESCRIPTION="Hamcrest framework for matcher objects"
+HOMEPAGE="https://github.com/hamcrest/PyHamcrest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples test"
+
+RDEPEND=">=dev-python/six-1.4[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/pytest-2.6[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RESTRICT="test"
+# the pypi tarball is missing the tests
+# and the 1.9.0 tag is missing in GitHub
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+ "${PYTHON}" tests/object_import.py || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && dodoc -r examples
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/sqlparse/Manifest b/dev-python/sqlparse/Manifest
new file mode 100644
index 0000000..63b62ff
--- /dev/null
+++ b/dev-python/sqlparse/Manifest
@@ -0,0 +1 @@
+DIST sqlparse-0.2.0.tar.gz 52554 SHA256 7fac8d39ac543499b191be19e811ff275f2df0d45c4ba5fc24850aa883ac2060 SHA512 4fe1d4037bee321bdeb83a186a59fa98b0f01568c77ee8845bba081e287866d1fee850a2adaac6950d4d8c089f1e70ff9bce0db94e95560a1138ea134bc26176 WHIRLPOOL f87e0c223533cd6b7e6a9182d77188c293c139858f13b82d923e84399eb4f40aefa992830d0268bf612baccfe6077a5e2b1ac3aa82f78c6e0009c532dce40208
diff --git a/dev-python/sqlparse/sqlparse-0.2.0.ebuild b/dev-python/sqlparse/sqlparse-0.2.0.ebuild
new file mode 100644
index 0000000..ca4dfd0
--- /dev/null
+++ b/dev-python/sqlparse/sqlparse-0.2.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Non-validating SQL parser"
+HOMEPAGE="https://github.com/andialbrecht/sqlparse https://pypi.python.org/pypi/sqlparse"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_test() {
+ py.test || die
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-20 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20 12:23 [gentoo-commits] dev/dev-zero:master commit in: dev-python/parse/files/, dev-python/pgspecial/, dev-python/parse/, Tiziano Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox