summaryrefslogtreecommitdiff
path: root/lib/subunit/python/iso8601/setup.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-31 18:48:41 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-01-16 19:53:49 +1300
commitb6b46b4978dcaffa0cd9803c43b8a5f1c19e227e (patch)
tree478630ad4dd780bf0e68b2cad61d6b0cb26b8823 /lib/subunit/python/iso8601/setup.py
parent2e38cb2cbb7520b2630ed85c3df2eb678c737fda (diff)
downloadsamba-b6b46b4978dcaffa0cd9803c43b8a5f1c19e227e.tar.gz
samba-b6b46b4978dcaffa0cd9803c43b8a5f1c19e227e.tar.bz2
samba-b6b46b4978dcaffa0cd9803c43b8a5f1c19e227e.zip
subunit: Import new version.
Diffstat (limited to 'lib/subunit/python/iso8601/setup.py')
-rw-r--r--lib/subunit/python/iso8601/setup.py58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/subunit/python/iso8601/setup.py b/lib/subunit/python/iso8601/setup.py
new file mode 100644
index 0000000000..cdb61ecf6a
--- /dev/null
+++ b/lib/subunit/python/iso8601/setup.py
@@ -0,0 +1,58 @@
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils import setup
+
+long_description="""Simple module to parse ISO 8601 dates
+
+This module parses the most common forms of ISO 8601 date strings (e.g.
+2007-01-14T20:34:22+00:00) into datetime objects.
+
+>>> import iso8601
+>>> iso8601.parse_date("2007-01-25T12:00:00Z")
+datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
+>>>
+
+Changes
+=======
+
+0.1.4
+-----
+
+* The default_timezone argument wasn't being passed through correctly,
+ UTC was being used in every case. Fixes issue 10.
+
+0.1.3
+-----
+
+* Fixed the microsecond handling, the generated microsecond values were
+ way too small. Fixes issue 9.
+
+0.1.2
+-----
+
+* Adding ParseError to __all__ in iso8601 module, allows people to import it.
+ Addresses issue 7.
+* Be a little more flexible when dealing with dates without leading zeroes.
+ This violates the spec a little, but handles more dates as seen in the
+ field. Addresses issue 6.
+* Allow date/time separators other than T.
+
+0.1.1
+-----
+
+* When parsing dates without a timezone the specified default is used. If no
+ default is specified then UTC is used. Addresses issue 4.
+"""
+
+setup(
+ name="iso8601",
+ version="0.1.4",
+ description=long_description.split("\n")[0],
+ long_description=long_description,
+ author="Michael Twomey",
+ author_email="micktwomey+iso8601@gmail.com",
+ url="http://code.google.com/p/pyiso8601/",
+ packages=["iso8601"],
+ license="MIT",
+)