2 from setuptools import setup
4 from distutils import setup
6 long_description="""Simple module to parse ISO 8601 dates
8 This module parses the most common forms of ISO 8601 date strings (e.g.
9 2007-01-14T20:34:22+00:00) into datetime objects.
12 >>> iso8601.parse_date("2007-01-25T12:00:00Z")
13 datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
22 * The default_timezone argument wasn't being passed through correctly,
23 UTC was being used in every case. Fixes issue 10.
28 * Fixed the microsecond handling, the generated microsecond values were
29 way too small. Fixes issue 9.
34 * Adding ParseError to __all__ in iso8601 module, allows people to import it.
36 * Be a little more flexible when dealing with dates without leading zeroes.
37 This violates the spec a little, but handles more dates as seen in the
38 field. Addresses issue 6.
39 * Allow date/time separators other than T.
44 * When parsing dates without a timezone the specified default is used. If no
45 default is specified then UTC is used. Addresses issue 4.
51 description=long_description.split("\n")[0],
52 long_description=long_description,
53 author="Michael Twomey",
54 author_email="micktwomey+iso8601@gmail.com",
55 url="http://code.google.com/p/pyiso8601/",