summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2015-08-08 13:43:31 +0000
committerManuel Rüger <mrueg@gentoo.org>2015-08-08 13:43:31 +0000
commit425b4b37131b99b38c782ffc3bccf78eb8d5cca5 (patch)
treedf42d887c78d33cdc6e297991ef8826475995e63
parentInitial version. (diff)
downloadhistorical-425b4b37131b99b38c782ffc3bccf78eb8d5cca5.tar.gz
historical-425b4b37131b99b38c782ffc3bccf78eb8d5cca5.tar.bz2
historical-425b4b37131b99b38c782ffc3bccf78eb8d5cca5.zip
Initial version.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
-rw-r--r--dev-python/pyrfc3339/Manifest3
-rw-r--r--dev-python/pyrfc3339/files/pyrfc3339-0.2-fixdoctests.patch54
-rw-r--r--dev-python/pyrfc3339/metadata.xml8
-rw-r--r--dev-python/pyrfc3339/pyrfc3339-0.2.ebuild32
4 files changed, 96 insertions, 1 deletions
diff --git a/dev-python/pyrfc3339/Manifest b/dev-python/pyrfc3339/Manifest
index 54eccb838a9e..0d4ee5559893 100644
--- a/dev-python/pyrfc3339/Manifest
+++ b/dev-python/pyrfc3339/Manifest
@@ -1,4 +1,5 @@
AUX pyrfc3339-0.2-fixdoctests.patch 2215 SHA256 7d744578eb84c95123c181440aaeba9cc44f52efbf5546327cadf248da66f74e SHA512 2da552b3c9562f4b1a2628f41f4754da05699ff60ae3947e7f5abc4c1defe2fd243bc02a9b2a22b81c72bb8e8c63c51b10e0165bea214e474c4a9268e54d2955 WHIRLPOOL 84f9ff0dfbf44766d1cb709521c8f8241008acc18aba6c92dbf0fd096a82cb6372e08e758f3a8fce51922a1275f66f5009dd7046a0f763aa942b7c4a88144871
DIST pyRFC3339-0.2.tar.gz 5068 SHA256 a504ff6bcb363fa402d393f65fe5f542475e54fbfc55817b80892ba93b22e6de SHA512 54482528e429c0135823b333d18e6a9361ba99b18a62883e9b09f5533e75f08d12d9c1ee855296cecd98c11824f927984527bb0555a49e4284164b7fe4df8c4f WHIRLPOOL c84d3e1d38b2d57d6525f884a12e8e478aaf6e6e30a00b6267cc5043da9b3b58b1afd585d8350291e32e350df0431be96743b27d95769eecdbc738ded863e68e
-EBUILD pyrfc3339-0.2.ebuild 704 SHA256 03a513f7a40035db07dd54260e40924a7a922250be586a4ab4f3704b1a354813 SHA512 45860ef032767ab092a26c7355b5d7a0fd1724686588b232ce821dce06780023c294d974a84c4093320deecd3f18ada0c62c83e701dbd7dfd7f1d1cf511509ad WHIRLPOOL d3fad1935a65e1d7b0ed754c4bdb427265022b556c09679e025f014180c229f6ab821482b12516bbc26f1bf4f7b5c4445142865ec038f61a6588348ab89c07bd
+EBUILD pyrfc3339-0.2.ebuild 806 SHA256 fe8ff7f78376b0e7efcd1f190384cedcd943085ae32f52cf8ecafbcc9352f13f SHA512 6442d898cae502b70c78e464b48acdca90a11c7a567f800fa5486668b6d5de082cc6668498584028f685f70c0ac059020899b29a70c7263c42db60923690e6c2 WHIRLPOOL 761d8822e14222a304f879a8090620a63ac1471f99b7db3d414240fda74fdf6a278cace0ea9e3ed822529f506c7de0ec4c74030b44ba9cd1d8608120242fabdd
+MISC ChangeLog 389 SHA256 126c8da24405c71718563a9f6b7817eb14c74d1b5e64ff35bec9c681fb3f0972 SHA512 c8b358a787f29c6d2816e09243cfb94aa71b3a82104030414c6f50ae0ad4dbf2e13d50dc8268a62a37585e910680ce4f4a8a5f1f7238d85e5be6637e9bc1fa87 WHIRLPOOL d6c7d421f253b7398826aa19905e4ce1b5a00e849ad3d4eb16607aa2ef149d4b969ead92ad7ce17dc628eebf79fb20258562cdf9ed584387d8660977442014b3
MISC metadata.xml 231 SHA256 9c04e1ed256c8293b1120d9b56de16e3ee5ff6cdb3967d517d46c5974c23d67a SHA512 0aaf70d152f2b3a4b333fccde6f5c9fbb6cac1a9ecf3e2b2ddb57a1c260b3f0e7bdd215edad17f959b2a3324929bf446164341531783431c3435d1b956d09d83 WHIRLPOOL d631165d8a2dd82731e34fed2e3c09437b8c0d383da28c3e0a5f704196afc1810a7efee388e6b558493e82fa61cc799ab3b93eb1b7b17464dd380efdcba60d06
diff --git a/dev-python/pyrfc3339/files/pyrfc3339-0.2-fixdoctests.patch b/dev-python/pyrfc3339/files/pyrfc3339-0.2-fixdoctests.patch
new file mode 100644
index 000000000000..1ce4cb02659a
--- /dev/null
+++ b/dev-python/pyrfc3339/files/pyrfc3339-0.2-fixdoctests.patch
@@ -0,0 +1,54 @@
+From 085006c9ffc00d3fba3b91eb33111c791a592715 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@rueg.eu>
+Date: Mon, 13 Jul 2015 20:49:51 +0200
+Subject: [PATCH] Fix doctests for python3
+
+---
+ pyrfc3339/generator.py | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/pyrfc3339/generator.py b/pyrfc3339/generator.py
+index 020d47b..62f88e0 100644
+--- a/pyrfc3339/generator.py
++++ b/pyrfc3339/generator.py
+@@ -9,7 +9,7 @@ def generate(dt, utc=True, accept_naive=False, microseconds=False):
+ :class:`datetime.datetime`.
+
+ >>> from datetime import datetime
+- >>> generate(datetime(2009,01,01,12,59,59,0,pytz.utc))
++ >>> generate(datetime(2009,1,1,12,59,59,0,pytz.utc))
+ '2009-01-01T12:59:59Z'
+
+ The timestamp will use UTC unless `utc=False` is specified, in which case
+@@ -17,7 +17,7 @@ def generate(dt, utc=True, accept_naive=False, microseconds=False):
+ :attr:`tzinfo` parameter.
+
+ >>> eastern = pytz.timezone('US/Eastern')
+- >>> dt = eastern.localize(datetime(2009,01,01,12,59,59))
++ >>> dt = eastern.localize(datetime(2009,1,1,12,59,59))
+ >>> generate(dt)
+ '2009-01-01T17:59:59Z'
+ >>> generate(dt, utc=False)
+@@ -25,19 +25,19 @@ def generate(dt, utc=True, accept_naive=False, microseconds=False):
+
+ Unless `accept_naive=True` is specified, the `datetime` must not be naive.
+
+- >>> generate(datetime(2009,01,01,12,59,59,0))
++ >>> generate(datetime(2009,1,1,12,59,59,0))
+ Traceback (most recent call last):
+ ...
+ ValueError: naive datetime and accept_naive is False
+
+- >>> generate(datetime(2009,01,01,12,59,59,0), accept_naive=True)
++ >>> generate(datetime(2009,1,1,12,59,59,0), accept_naive=True)
+ '2009-01-01T12:59:59Z'
+
+ If `accept_naive=True` is specified, the `datetime` is assumed to be UTC.
+ Attempting to generate a local timestamp from a naive datetime will result
+ in an error.
+
+- >>> generate(datetime(2009,01,01,12,59,59,0), accept_naive=True, utc=False)
++ >>> generate(datetime(2009,1,1,12,59,59,0), accept_naive=True, utc=False)
+ Traceback (most recent call last):
+ ...
+ ValueError: cannot generate a local timestamp from a naive datetime
diff --git a/dev-python/pyrfc3339/metadata.xml b/dev-python/pyrfc3339/metadata.xml
new file mode 100644
index 000000000000..bfcb6974f1c4
--- /dev/null
+++ b/dev-python/pyrfc3339/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pyrfc3339/pyrfc3339-0.2.ebuild b/dev-python/pyrfc3339/pyrfc3339-0.2.ebuild
new file mode 100644
index 000000000000..3f6295074f64
--- /dev/null
+++ b/dev-python/pyrfc3339/pyrfc3339-0.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrfc3339/pyrfc3339-0.2.ebuild,v 1.1 2015/08/08 13:43:28 mrueg Exp $
+
+EAPI=5
+PYTHON_COMPAT=(python{2_7,3_3,3_4})
+
+inherit distutils-r1
+MY_PN=pyRFC3339
+
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Generates and parses RFC 3339 timestamps"
+HOMEPAGE="https://github.com/kurtraschke/pyRFC3339"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
+DEPEND="test? ( ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}] )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=("${FILESDIR}"/${P}-fixdoctests.patch)
+
+python_test() {
+ nosetests || die
+}