From: Michał Górny Date: Tue, 15 Oct 2019 17:00:13 +0000 (+0200) Subject: dev-python/parse-type: Remove last-rited pkg X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b8a8cd30df0b45895d9cc6a225652b121043e48;p=gentoo.git dev-python/parse-type: Remove last-rited pkg Closes: https://bugs.gentoo.org/694280 Signed-off-by: Michał Górny --- diff --git a/dev-python/parse-type/Manifest b/dev-python/parse-type/Manifest deleted file mode 100644 index 70ff667dd6b3..000000000000 --- a/dev-python/parse-type/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST parse_type-0.3.4.tar.gz 62199 BLAKE2B 8d1c89d837c80ff9cdc3585cead4a24b44256e712f5ed7b824833ce35b25ffef27513c167c41266246da403fecdadec404a6a7cdf968bd35a827b5d02364739d SHA512 5ef80ed820cc7e2f4fa8fd0fbf64160c81f77b4a1af38015e3ec7e3be3f613ecc2211d5dba15ef600cbe11c556a2c1fb6cdc8374c52c608914aa903fad84267f 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 deleted file mode 100644 index 54cfa59cb801..000000000000 --- a/dev-python/parse-type/files/parse-type-0.3.4-python-3.5-tests-compat.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 8f7ce32dc6bd466f1ea6ccc9260917016061bb4e Mon Sep 17 00:00:00 2001 -From: David King -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}-)".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 deleted file mode 100644 index 958b45bd9ff9..000000000000 --- a/dev-python/parse-type/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - parse_type - jenisys/parse_type - - 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 deleted file mode 100644 index 8f65368f3b1c..000000000000 --- a/dev-python/parse-type/parse-type-0.3.4-r1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{5,6} ) - -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}" -}