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/parse |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/parse')
-rw-r--r-- | dev-python/parse/Manifest | 8 | ||||
-rw-r--r-- | dev-python/parse/files/parse-1.6.6-python-3.5-tests-compat.patch | 50 | ||||
-rw-r--r-- | dev-python/parse/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/parse/parse-1.6.4.ebuild | 23 | ||||
-rw-r--r-- | dev-python/parse/parse-1.6.6.ebuild | 25 |
5 files changed, 118 insertions, 0 deletions
diff --git a/dev-python/parse/Manifest b/dev-python/parse/Manifest new file mode 100644 index 000000000000..aba3edd4b347 --- /dev/null +++ b/dev-python/parse/Manifest @@ -0,0 +1,8 @@ +AUX parse-1.6.6-python-3.5-tests-compat.patch 1694 SHA256 9c00b7a4a21e9e180ba4e791a760741c28bab795867495f450b70657160d905b SHA512 ed4fa6d689304798f289c11d441bb9c66c21dbde115da4f8bd87f538c5a1ccd7c1ea277ccca6d4c2b2e3560335130213b3d24bfbd6896033c55bd75f01424857 WHIRLPOOL ba122b8a71a44f9b3ea4e61adaef33d17e7c74ea8da6868978ea82aefcd2256290ddba930e0abf7d2c49eef16bb8e9672d783ecc0ffa89721b9a8f6adcac8a72 +DIST parse-1.6.4.tar.gz 24025 SHA256 a7cccad221632f1e2553d585b428b20d362738311e6f58933ef46b4389c16054 SHA512 2848e3331f1b2604bb5f1a8a0084ff0b7e0f12b2d3832395461f4b76729637783250d18a134048106ffa6768794f38fc51534dbe5a88db303f0426530587dcee WHIRLPOOL 2c3b91ec933ac206aaf2c2201b3108bb291a448f458d79aa2e6db5cdee676e05c200f1bf60f3f9810161e126c7ae4633efe498276fb2d1b270b10ebc4ca2047c +DIST parse-1.6.6.tar.gz 24638 SHA256 71435aaac494e08cec76de646de2aab8392c114e56fe3f81c565ecc7eb886178 SHA512 fae467b6f6e35f04d9e501162117423506701d101b2265e941b5b34420e833a0f4dbc44f62c33d51836a62ef51da9b5b8a3a1d39b3ec490f9eb77c5b6f302cdf WHIRLPOOL c206590ebea8f6b2ef552b0911b83c692a50b0dc395ac76e392a2b4eb16e8c544411da7b7475956183de3d189e6cc27b87752c0aa991dc5e7587e854eea6953c +EBUILD parse-1.6.4.ebuild 484 SHA256 a7a3f72f3798abebf4cd6874a1d74313f0dc236ae39dda302dd8f14a161f6e20 SHA512 d59d721f3f6f59f6de41521a2e61b337895099370492870544d0344ac5f25894fa27f695f6c8065680c80ecc568a4cee81ed76ac2379501beb9b94fed357456f WHIRLPOOL e659803c6ccce84876c092207b25d48f2aa9ad9701fb57d4a26577340fcd2d8d46462850bd6517a87ccf0c73faf60968736af62d53ca598cefd900ae8def89cd +EBUILD parse-1.6.6.ebuild 552 SHA256 043646dca295b614ae352ee0be9a73bd3337f0d31d6a7040049ee982ad7dd01b SHA512 d0d07d99114c2d39b7a21728456e3cf2fcaf3fef0078c791b41e2c31c9dafb8092a50701fd2a8c05ad7dddcaf1fe9103e331cb627f1bc680a3902178d6c50250 WHIRLPOOL 744cc4609b1e2d238cc5a37561b707b25f06281001f3f95656dfc324368a63b3ef4acdbac8b822e33525e966db9bd419f2f7bca6668ad11f59f28584cb1b5bac +MISC ChangeLog 2543 SHA256 c0c6fa6ba0ea8c9ff30bfbdc22c0a2e634162f39d884115c933139a3fb0ccfac SHA512 ee87ad82792dbe7981df0a9e9967e0e08e1e33a7ceb74e2df6d199801ffaffce53682486220d55f6bc99db7362bacf3e37c44db37e1330b35432b0e30c19de3f WHIRLPOOL 7e4a72718511c53b9298103f7725ff8b6dc2607ab6135c38b9aba0dac51d59b1240c66a8cd19deb10730d3bed1673a11c304ea02d2b3f528c3219761f37505f4 +MISC ChangeLog-2015 639 SHA256 0bedcb76903a400d24277a0af80924078d0816fc1adb32385b03eaa7726cb2d5 SHA512 bd9ededa6a55f8a67af5b15bcc70c3fd0d30d36da17573733c1183d145c3310532b037ec18e80985e63970e89569fac1ba930a5341185cd7f98f85e68a8b314e WHIRLPOOL 4eb180b0c34bcf7fe42e71ba025240c1f28b8d6ed1d00bc452e275ea0b396ef3c34ee11777842bfdc6dbdd5b76970b4683f9d9b6f4ad7e89b4bc32fa469099c1 +MISC metadata.xml 372 SHA256 969c7bcc675c0b22761f7a783a929b70d6a06eef4899a23bdd81aa392e4331c3 SHA512 68c884b2b096c6c7f452ce1effc3d61ab882d56bebcbd9e6ca9a1d3fd19e34262800ae6ee604311a5dccf4b04f887a0262e969786342ddf458033945baecaae2 WHIRLPOOL 2b0c8c397427f3b5b0285d9209571ac3d278d79d6d93cb137e4a8d6fb2fd7a717e14920b91e82208516f1cc82f7eff0ca47f01dddb0503d42f9f6b537f89c98f 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 000000000000..5183cf5ef32e --- /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 000000000000..3a8356cdb06c --- /dev/null +++ b/dev-python/parse/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="person"> + <email>alunduil@gentoo.org</email> + <name>Alex Brandt</name> + </maintainer> + <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.4.ebuild b/dev-python/parse/parse-1.6.4.ebuild new file mode 100644 index 000000000000..77bd8c151949 --- /dev/null +++ b/dev-python/parse/parse-1.6.4.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_4 ) + +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="" + +python_test() { + "${PYTHON}" test_parse.py || die "Tests failed under ${EPYTHON}" +} 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 000000000000..e4f2c1b20f20 --- /dev/null +++ b/dev-python/parse/parse-1.6.6.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +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}" +} |