diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/python-dateutil | |
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/python-dateutil')
11 files changed, 324 insertions, 0 deletions
diff --git a/dev-python/python-dateutil/Manifest b/dev-python/python-dateutil/Manifest new file mode 100644 index 000000000000..9f22b0036643 --- /dev/null +++ b/dev-python/python-dateutil/Manifest @@ -0,0 +1,5 @@ +DIST python-dateutil-2.1.tar.gz 152334 SHA256 4c44ec3f9ff057b8c7b4c78beca5fdd8710600ea9a1df42f31bfcbae2f059dee SHA512 017e054f22886814763f6ab0c5c3ee411ce3d59a0d07e26fdf9afdab2500d689aa67a6c4c617b8960755272cb800ff449caedcb180c3a58631ac3cec3ffb89cc WHIRLPOOL f77bb35f5d8706e0909e5e522380f77a8f2bea1f183bdbd8bd41250fc3414730d327ccbab728bf67b5f80e34e672b8d9b346595d1b6c5694bff24a64b43a7454 +DIST python-dateutil-2.2.tar.gz 259085 SHA256 eec865307ebe7f329a6a9945c15453265a449cdaaf3710340828a1934d53e468 SHA512 cb278b8e18da3b991c6415ff59e9f3aa87cfb2e52048b3f74a9e3d183e0cc5bf71595123c644d0aea75084e653a885cbfa70c8ddd8b6a888bb13183624fcb46b WHIRLPOOL 545495d466cbea8f750b7e997699e2466131ce780ed73e18a880934a5255f759cee470b6f85a16a44f62bacaad14490e72a212c4cf6e53f0fe69b87492f9d055 +DIST python-dateutil-2.4.0.tar.gz 195214 SHA256 439df33ce47ef1478a4f4765f3390eab0ed3ec4ae10be32f2930000c8d19f417 SHA512 2e62e6fe430838bbb86e94dd3b224e5a0676f06a1c0fecf11ae6954f98916b4b91555bdeabfb6c458516fcee2462a731ebcb8c551fd7ceb808f9f55d5bdb7408 WHIRLPOOL ca717566d50b32e7a346569a391f8d47c86a5c5c833d8083c7fb26e5eaeb45c590e563b9cf8dd2b2d8ff5210b0b8c08d7bc58d87aac3ffb333546622db66c76f +DIST python-dateutil-2.4.1.post1.tar.gz 207628 SHA256 aa9bdbd60c395db90204609f1fb5aeb3797870f65c09f04f243476d22f8f4615 SHA512 abd2b00f93cb4a4513da52c2f4c9ee632f1db1de583179b6e20a948463cf830ac339b7be6f7b6c5f9a823d0da955a48aee16c8d769eaaf33421090a5fbd199ce WHIRLPOOL 8c86898994dd65ee06034de47b47937203db66f9e8ae64c72c220464e9e590aa0e9e6a1e94b76fa9ed2571b11e5beb6f7d637937cc05f6c262e18c7130cf4a9b +DIST python-dateutil-2.4.2.tar.gz 209120 SHA256 3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d SHA512 8e38721e6d132850f85e7808d2731285d2c12eae2a3e0cbebe05265d0837ad22d4d94b611e146028ea3d23a3e2611b281dd6224081a69dfe4b58cf3b378d7f0d WHIRLPOOL 88ddb75f52a95a6b7197b41364b80968bf2c21a3bda9c7b992726ef35ca934a66a5d8ccd773d7647f985541d87c66fa94af13600b0165707af9b73d1bff8887e diff --git a/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch b/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch new file mode 100644 index 000000000000..53d4bb868302 --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch @@ -0,0 +1,13 @@ +Index: python-dateutil/example.py +=================================================================== +--- python-dateutil.orig/example.py 2006-09-06 13:21:44.000000000 +0200 ++++ python-dateutil/example.py 2006-09-06 13:21:56.000000000 +0200 +@@ -5,7 +5,7 @@ + from datetime import * + import commands + import os +-now = parse(commands.getoutput("date")) ++now = parse(commands.getoutput("LC_ALL=C date")) + today = now.date() + year = rrule(YEARLY,bymonth=8,bymonthday=13,byweekday=FR)[0].year + rdelta = relativedelta(easter(year), today) diff --git a/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch b/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch new file mode 100644 index 000000000000..f27285428784 --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch @@ -0,0 +1,21 @@ +Fix UnicodeDecodeError in setup.py. + +https://bugs.gentoo.org/show_bug.cgi?id=410725 +--- setup.py ++++ setup.py +@@ -1,5 +1,6 @@ + #!/usr/bin/python + from os.path import isfile, join ++import codecs + import glob + import os + import re +@@ -13,7 +14,7 @@ + + TOPDIR = os.path.dirname(__file__) or "." + VERSION = re.search('__version__ = "([^"]+)"', +- open(TOPDIR + "/dateutil/__init__.py").read()).group(1) ++ codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1) + + + setup(name="python-dateutil", diff --git a/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch b/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch new file mode 100644 index 000000000000..bccec4a56ddc --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch @@ -0,0 +1,13 @@ +diff --git dateutil/parser.py~ dateutil/parser.py +index 8b6c2d28b8..75453ef49e 100644 +--- dateutil/parser.py~ ++++ dateutil/parser.py +@@ -32,7 +32,7 @@ __all__ = ["parse", "parserinfo"] + class _timelex(object): + + def __init__(self, instream): +- if isinstance(instream, text_type): ++ if not hasattr(instream, 'read'): + instream = StringIO(instream) + self.instream = instream + self.wordchars = ('abcdfeghijklmnopqrstuvwxyz' diff --git a/dev-python/python-dateutil/metadata.xml b/dev-python/python-dateutil/metadata.xml new file mode 100644 index 000000000000..092f97aed119 --- /dev/null +++ b/dev-python/python-dateutil/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>python</herd> + <longdescription lang="en"> + The dateutil module provides powerful extensions to the standard + datetime module, available in Python 2.3+. +</longdescription> + <upstream> + <remote-id type="pypi">python-dateutil</remote-id> + <remote-id type="github">dateutil/dateutil</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-dateutil/python-dateutil-2.1-r1.ebuild b/dev-python/python-dateutil/python-dateutil-2.1-r1.ebuild new file mode 100644 index 000000000000..593430b85103 --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.1-r1.ebuild @@ -0,0 +1,58 @@ +# 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,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE="https://launchpad.net/dateutil http://pypi.python.org/pypi/python-dateutil" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="examples" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}] + sys-libs/timezone-data + !<dev-python/python-dateutil-2.1" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + # Bug 410725. + "${FILESDIR}/${P}-open-utf-8.patch" +) + +python_prepare_all() { + # Use zoneinfo in /usr/share/zoneinfo. + sed -i -e "s/zoneinfo.gettz/gettz/g" test.py || die + + # Fix parsing of date in non-English locales. + sed -e 's/subprocess.getoutput("date")/subprocess.getoutput("LC_ALL=C date")/' \ + -i example.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test.py || die +} + +python_install() { + distutils-r1_python_install + + rm -f "${D}$(python_get_sitedir)/dateutil/zoneinfo"/*.tar.* +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + docinto examples + dodoc example.py sandbox/*.py + fi +} diff --git a/dev-python/python-dateutil/python-dateutil-2.2.ebuild b/dev-python/python-dateutil/python-dateutil-2.2.ebuild new file mode 100644 index 000000000000..8ff29eeee1bc --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.2.ebuild @@ -0,0 +1,53 @@ +# 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,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE="http://labix.org/python-dateutil https://pypi.python.org/pypi/python-dateutil" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="examples" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}] + sys-libs/timezone-data + !<dev-python/python-dateutil-2.1" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # Use zoneinfo in /usr/share/zoneinfo. + sed -i -e "s/zoneinfo.gettz/gettz/g" test.py || die + + # Fix parsing of date in non-English locales. + sed -e 's/subprocess.getoutput("date")/subprocess.getoutput("LC_ALL=C date")/' \ + -i example.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test.py || die +} + +python_install() { + distutils-r1_python_install + + rm -f "${D}$(python_get_sitedir)/dateutil/zoneinfo"/*.tar.* +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + docinto examples + dodoc example.py sandbox/*.py + fi +} diff --git a/dev-python/python-dateutil/python-dateutil-2.4.0.ebuild b/dev-python/python-dateutil/python-dateutil-2.4.0.ebuild new file mode 100644 index 000000000000..052efba97f6b --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.4.0.ebuild @@ -0,0 +1,33 @@ +# 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,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE="https://dateutil.readthedocs.org/ https://pypi.python.org/pypi/python-dateutil https://github.com/dateutil/dateutil/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=">=dev-python/six-1.5[${PYTHON_USEDEP}] + sys-libs/timezone-data" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # don't install zoneinfo tarball + sed -i '/package_data=/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} diff --git a/dev-python/python-dateutil/python-dateutil-2.4.1-r1.ebuild b/dev-python/python-dateutil/python-dateutil-2.4.1-r1.ebuild new file mode 100644 index 000000000000..87d2bc3d057b --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.4.1-r1.ebuild @@ -0,0 +1,33 @@ +# 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,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE="https://dateutil.readthedocs.org/ https://pypi.python.org/pypi/python-dateutil https://github.com/dateutil/dateutil/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.post1.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=">=dev-python/six-1.5[${PYTHON_USEDEP}] + sys-libs/timezone-data" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # don't install zoneinfo tarball + sed -i '/package_data=/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} diff --git a/dev-python/python-dateutil/python-dateutil-2.4.2-r1.ebuild b/dev-python/python-dateutil/python-dateutil-2.4.2-r1.ebuild new file mode 100644 index 000000000000..8612e82ca9b0 --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.4.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE=" + https://dateutil.readthedocs.org/ + https://pypi.python.org/pypi/python-dateutil + https://github.com/dateutil/dateutil/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=" + >=dev-python/six-1.5[${PYTHON_USEDEP}] + sys-libs/timezone-data" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${P}-timelex.patch +) + +_python_prepare_all() { + # don't install zoneinfo tarball + sed -i '/package_data=/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} diff --git a/dev-python/python-dateutil/python-dateutil-2.4.2.ebuild b/dev-python/python-dateutil/python-dateutil-2.4.2.ebuild new file mode 100644 index 000000000000..6843393c7db8 --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-2.4.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Extensions to the standard Python datetime module" +HOMEPAGE=" + https://dateutil.readthedocs.org/ + https://pypi.python.org/pypi/python-dateutil + https://github.com/dateutil/dateutil/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=" + >=dev-python/six-1.5[${PYTHON_USEDEP}] + sys-libs/timezone-data" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # don't install zoneinfo tarball + sed -i '/package_data=/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} |