diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/guessit | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/guessit')
-rw-r--r-- | dev-python/guessit/Manifest | 4 | ||||
-rw-r--r-- | dev-python/guessit/files/guessit-0.5.4-python3.patch | 30 | ||||
-rw-r--r-- | dev-python/guessit/files/guessit-0.5.4-tests.patch | 172 | ||||
-rw-r--r-- | dev-python/guessit/guessit-0.5.4.ebuild | 38 | ||||
-rw-r--r-- | dev-python/guessit/guessit-0.6.2.ebuild | 30 | ||||
-rw-r--r-- | dev-python/guessit/guessit-0.7.1.ebuild | 32 | ||||
-rw-r--r-- | dev-python/guessit/guessit-0.9.3.ebuild | 34 | ||||
-rw-r--r-- | dev-python/guessit/guessit-9999.ebuild | 34 | ||||
-rw-r--r-- | dev-python/guessit/metadata.xml | 13 |
9 files changed, 387 insertions, 0 deletions
diff --git a/dev-python/guessit/Manifest b/dev-python/guessit/Manifest new file mode 100644 index 000000000000..1cfabb72a689 --- /dev/null +++ b/dev-python/guessit/Manifest @@ -0,0 +1,4 @@ +DIST guessit-0.5.4.tar.gz 93050 SHA256 2c4b2c3c703485a03794746a496fae69f1da5d8c9eaf08b8e9571515704b69b0 SHA512 353f45a80726edc6978be3707916a4919c140f2304668f7e1e9453fb1c225f83e9f19a317b8b3eafff449a41fd959fceeb6eecc7021862f856a34cd9608c170c WHIRLPOOL 3465f5dd0d029d2252930c7ceebf963b85466374912919500a15258707a10faa5379a91d23ba81204324895fb37de9e1ced8c6daa6ed12e46258b82319de856a +DIST guessit-0.6.2.tar.gz 123216 SHA256 27d6dfa29f01f4897688d04d94d58298b4e1b94163d8ff72646be59bed5ab6db SHA512 0c9340c0755ef91ce432ed80a0131659f23489e57092270b2acc433b74930bb3b3759959ab5cb3547c10b6011e2f52db56feffd8e7ec7bc6e31fdcd1d786b8f9 WHIRLPOOL fd86094931d3a309363a8abf739152062ef854997ee2c0a17ef85fb1a1afb9fe82a8db299be5da075a62ca6542b5ab31e9c87a6f9aed0be6f1df49550e39b157 +DIST guessit-0.7.1.tar.gz 1177369 SHA256 4315afd516ff824a1ccd857a43b74fb2f0f1b794f8049685eae72d6e64d8dc92 SHA512 ce30496852eeb46f6e49744e6f3a32045145da27226a7520a12ce911289ff45be5c704899377bd4b708867205dd230a9a464bc4d11d6dc1beec334054603be9e WHIRLPOOL c96f7740b8a0ae026d986f367bb3b4665e915ed83edb547db135cdf2acbf3f1faae8a43f5ef0e509faf7e856c3db59d01a8a17008ebbddfcf8af22e5e5d79483 +DIST guessit-0.9.3.tar.gz 1194884 SHA256 0fd4bee04214dc0474089ac6fed3c9e64b8c635085681b911834f9b0bb074b81 SHA512 ae2939433a8642f3a6579ccb5247bfb0eda68959a4449a4134fbefdab8572ccfa1fefed90783b82505acdf67006a11bfeef5d05ee7787da2cd44e4f447472513 WHIRLPOOL e01cb8acb1d7d6dafa896e14a9eaa968039bbcebf4ce31b63c28438c4b96ea004fd94a6527747c8dc10dbfef8bcaea3c82dec68eb1dbb384e8406306c81bacbd diff --git a/dev-python/guessit/files/guessit-0.5.4-python3.patch b/dev-python/guessit/files/guessit-0.5.4-python3.patch new file mode 100644 index 000000000000..954c7154a08a --- /dev/null +++ b/dev-python/guessit/files/guessit-0.5.4-python3.patch @@ -0,0 +1,30 @@ +From 93f4fe97f664c207e769186fe79961bf5a998447 Mon Sep 17 00:00:00 2001 +From: Nicolas Wack <wackou@gmail.com> +Date: Thu, 25 Apr 2013 16:05:05 +0200 +Subject: [PATCH] Fixed some unicode issues when reading files from disk + +--- + guessit/fileutils.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/guessit/fileutils.py b/guessit/fileutils.py +index 2fca6b7..dc077e6 100644 +--- a/guessit/fileutils.py ++++ b/guessit/fileutils.py +@@ -22,6 +22,7 @@ + from guessit import s, u + import os.path + import zipfile ++import io + + + def split_path(path): +@@ -84,4 +85,4 @@ def load_file_in_same_dir(ref_file, filename): + zfile = zipfile.ZipFile(zfilename) + return zfile.read('/'.join(path[i + 1:])) + +- return u(open(os.path.join(*path)).read()) ++ return u(io.open(os.path.join(*path), encoding='utf-8').read()) +-- +1.8.1.6 + diff --git a/dev-python/guessit/files/guessit-0.5.4-tests.patch b/dev-python/guessit/files/guessit-0.5.4-tests.patch new file mode 100644 index 000000000000..50d8f579e47e --- /dev/null +++ b/dev-python/guessit/files/guessit-0.5.4-tests.patch @@ -0,0 +1,172 @@ +From 409218bc3d5b62e4f3e37aa57126cd628a34bd21 Mon Sep 17 00:00:00 2001 +From: Nicolas Wack <wackou@gmail.com> +Date: Fri, 19 Apr 2013 22:08:38 +0200 +Subject: [PATCH] Allow to run tests using "python setup.py test"; fixed + autodetect_all test target + +--- + fabfile.py | 1 + + setup.py | 3 ++- + tests/__init__.py | 0 + tests/guessittest.py | 19 ++++++++++++------- + tests/test_autodetect.py | 2 +- + tests/test_autodetect_all.py | 12 ++++++++---- + 6 files changed, 24 insertions(+), 13 deletions(-) + create mode 100644 tests/__init__.py + +diff --git a/fabfile.py b/fabfile.py +index 5b2c9fe..d8c4112 100644 +--- a/fabfile.py ++++ b/fabfile.py +@@ -25,6 +25,7 @@ def run(self): + test_ep = TestTask('episode', 'episodes') + test_movie = TestTask('movie', 'movies') + test_auto = TestTask('autodetect', 'autodetected files') ++test_auto_all = TestTask('autodetect_all', 'all files using autodetected type') + test_lang = TestTask('language', 'languages') + test_utils = TestTask('utils', 'utility functions') + test_matchtree = TestTask('matchtree', 'MatchTree') +diff --git a/setup.py b/setup.py +index deee110..81f907d 100644 +--- a/setup.py ++++ b/setup.py +@@ -65,7 +65,8 @@ + include_package_data=True, + install_requires = requires, + entry_points=entry_points, +- extras_require = { 'language_detection': ['guess-language>=0.2'] } ++ extras_require = { 'language_detection': ['guess-language>=0.2'] }, ++ test_suite = 'tests' + ) + + +diff --git a/tests/__init__.py b/tests/__init__.py +new file mode 100644 +index 0000000..e69de29 +diff --git a/tests/guessittest.py b/tests/guessittest.py +index c56b6ca..cfeaef0 100644 +--- a/tests/guessittest.py ++++ b/tests/guessittest.py +@@ -21,7 +21,7 @@ + from __future__ import unicode_literals + from guessit import base_text_type, u + from guessit.slogging import setupLogging +-from unittest import * ++from unittest import TestCase, TestLoader, TextTestRunner + + import yaml, logging, sys, os + from os.path import * +@@ -58,20 +58,25 @@ def allTests(testClass): + + class TestGuessit(TestCase): + +- +- +- def checkMinimumFieldsCorrect(self, filetype, filename, removeType=True): ++ def checkMinimumFieldsCorrect(self, filetype, filename, remove_type=True, ++ exclude_files=None): + groundTruth = yaml.load(load_file_in_same_dir(__file__, filename)) + def guess_func(string): + return guess_file_info(string, filetype=filetype) + +- return self.checkFields(groundTruth, guess_func, removeType) ++ return self.checkFields(groundTruth, guess_func, remove_type, exclude_files) + +- def checkFields(self, groundTruth, guess_func, removeType=True): ++ ++ def checkFields(self, groundTruth, guess_func, remove_type=True, ++ exclude_files=None): + correct, total = 0, 0 ++ exclude_files = exclude_files or [] + + for filename, required_fields in groundTruth.items(): + filename = u(filename) ++ if filename in exclude_files: ++ continue ++ + log.debug('\n' + '-' * 120) + log.info('Guessing information for file: %s' % filename) + +@@ -85,7 +90,7 @@ def error(*args): + is_incomplete[0] = True + + # no need for these in the unittests +- if removeType: ++ if remove_type: + try: + del found['type'] + except: +diff --git a/tests/test_autodetect.py b/tests/test_autodetect.py +index 1e0fd9d..e654afb 100644 +--- a/tests/test_autodetect.py ++++ b/tests/test_autodetect.py +@@ -25,7 +25,7 @@ class TestAutoDetect(TestGuessit): + def testAutoDetect(self): + self.checkMinimumFieldsCorrect(filetype='autodetect', + filename='autodetect.yaml', +- removeType=False) ++ remove_type=False) + + + suite = allTests(TestAutoDetect) +diff --git a/tests/test_autodetect_all.py b/tests/test_autodetect_all.py +index 6aa1704..cfd3463 100644 +--- a/tests/test_autodetect_all.py ++++ b/tests/test_autodetect_all.py +@@ -18,23 +18,27 @@ + # along with this program. If not, see <http://www.gnu.org/licenses/>. + # + +- ++from __future__ import unicode_literals + from guessittest import * + ++IGNORE_EPISODES = [ 'finale ' ] ++IGNORE_MOVIES = [] + + class TestAutoDetectAll(TestGuessit): + def testAutoMatcher(self): + self.checkMinimumFieldsCorrect(filetype='autodetect', + filename='autodetect.yaml', +- removeType=False) ++ remove_type=False) + + def testAutoMatcherMovies(self): + self.checkMinimumFieldsCorrect(filetype='autodetect', +- filename='movies.yaml') ++ filename='movies.yaml', ++ exclude_files=IGNORE_MOVIES) + + def testAutoMatcherEpisodes(self): + self.checkMinimumFieldsCorrect(filetype='autodetect', +- filename='episodes.yaml') ++ filename='episodes.yaml', ++ exclude_files=IGNORE_EPISODES) + + + suite = allTests(TestAutoDetectAll) +-- +1.8.1.6 + +Added by maksbotan@gentoo.org, to be upstreamed + +diff -ur /var/tmp/portage/dev-python/guessit-0.5.4/work/guessit-0.5.4/tests/test_language.py guessit-0.5.4/tests/test_language.py +--- /var/tmp/portage/dev-python/guessit-0.5.4/work/guessit-0.5.4/tests/test_language.py 2013-02-11 03:49:53.000000000 +0400 ++++ guessit-0.5.4/tests/test_language.py 2013-04-25 18:41:22.000000000 +0400 +@@ -20,6 +20,7 @@ + + from __future__ import unicode_literals + from guessittest import * ++import io + + class TestLanguage(TestGuessit): + +@@ -81,7 +82,7 @@ + + def test_opensubtitles(self): + opensubtitles_langfile = file_in_same_dir(__file__, 'opensubtitles_languages_2012_05_09.txt') +- langs = [ u(l).strip().split('\t') for l in open(opensubtitles_langfile) ][1:] ++ langs = [ u(l).strip().split('\t') for l in io.open(opensubtitles_langfile, encoding="utf8") ][1:] + for lang in langs: + # check that we recognize the opensubtitles language code correctly + # and that we are able to output this code from a language diff --git a/dev-python/guessit/guessit-0.5.4.ebuild b/dev-python/guessit/guessit-0.5.4.ebuild new file mode 100644 index 000000000000..69b095203511 --- /dev/null +++ b/dev-python/guessit/guessit-0.5.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +DESCRIPTION="Python library that tries to extract as much information as possible from a filename" +HOMEPAGE="http://guessit.readthedocs.org/" +SRC_URI="https://github.com/wackou/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) + dev-python/setuptools[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${P}-python3.patch + "${FILESDIR}"/${P}-tests.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + #Patch fails to create this file, so use touch + touch tests/__init__.py || die +} + +python_test() { + PYTHONPATH="${S}/tests" esetup.py test +} diff --git a/dev-python/guessit/guessit-0.6.2.ebuild b/dev-python/guessit/guessit-0.6.2.ebuild new file mode 100644 index 000000000000..f6b015020a01 --- /dev/null +++ b/dev-python/guessit/guessit-0.6.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +DESCRIPTION="library for guessing information from video files" +HOMEPAGE="http://guessit.readthedocs.org https://github.com/wackou/guessit https://pypi.python.org/pypi/guessit" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) + dev-python/setuptools[${PYTHON_USEDEP}] +" + +# FIXME fails tests with python-3.3.2-r2 +RESTRICT="test" + +python_test() { + esetup.py test +} diff --git a/dev-python/guessit/guessit-0.7.1.ebuild b/dev-python/guessit/guessit-0.7.1.ebuild new file mode 100644 index 000000000000..86c8b75442e7 --- /dev/null +++ b/dev-python/guessit/guessit-0.7.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +DESCRIPTION="library for guessing information from video files" +HOMEPAGE="http://guessit.readthedocs.org https://github.com/wackou/guessit https://pypi.python.org/pypi/guessit" +SRC_URI="https://github.com/wackou/guessit/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/babelfish-0.5.1[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) + dev-python/setuptools[${PYTHON_USEDEP}] +" + +python_test() { + esetup.py test +} diff --git a/dev-python/guessit/guessit-0.9.3.ebuild b/dev-python/guessit/guessit-0.9.3.ebuild new file mode 100644 index 000000000000..95c96f4b51e1 --- /dev/null +++ b/dev-python/guessit/guessit-0.9.3.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="library for guessing information from video files" +HOMEPAGE="http://guessit.readthedocs.org https://github.com/wackou/guessit https://pypi.python.org/pypi/guessit" +SRC_URI="https://github.com/wackou/guessit/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/babelfish-0.5.1[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) + dev-python/setuptools[${PYTHON_USEDEP}] +" + +python_test() { + esetup.py test +} diff --git a/dev-python/guessit/guessit-9999.ebuild b/dev-python/guessit/guessit-9999.ebuild new file mode 100644 index 000000000000..feb5e9ef4dd9 --- /dev/null +++ b/dev-python/guessit/guessit-9999.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +EGIT_REPO_URI="https://github.com/wackou/guessit.git" + +inherit distutils-r1 git-r3 + +DESCRIPTION="library for guessing information from video files" +HOMEPAGE="http://guessit.readthedocs.org https://github.com/wackou/guessit https://pypi.python.org/pypi/guessit" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="" +IUSE="test" + +RDEPEND=" + >=dev-python/babelfish-0.5.3[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) + dev-python/setuptools[${PYTHON_USEDEP}] +" + +python_test() { + esetup.py test +} diff --git a/dev-python/guessit/metadata.xml b/dev-python/guessit/metadata.xml new file mode 100644 index 000000000000..68d666121423 --- /dev/null +++ b/dev-python/guessit/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>nikoli@gmx.us</email> + <name>Nikoli</name> + </maintainer> + <upstream> + <remote-id type="pypi">guessit</remote-id> + <remote-id type="github">wackou/guessit</remote-id> + </upstream> +</pkgmetadata> |