first version of upstream package from subversion
[python-iso8601.debian] / setup.py
1 try:
2     from setuptools import setup
3 except ImportError:
4     from distutils import setup
5
6 long_description="""Simple module to parse ISO 8601 dates
7
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.
10
11 >>> import iso8601
12 >>> iso8601.parse_date("2007-01-25T12:00:00Z")
13 datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
14 >>>
15
16 Changes
17 =======
18
19 0.1.4
20 -----
21
22 * The default_timezone argument wasn't being passed through correctly,
23   UTC was being used in every case. Fixes issue 10.
24
25 0.1.3
26 -----
27
28 * Fixed the microsecond handling, the generated microsecond values were 
29   way too small. Fixes issue 9.
30
31 0.1.2
32 -----
33
34 * Adding ParseError to __all__ in iso8601 module, allows people to import it.
35   Addresses issue 7.
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.
40
41 0.1.1
42 -----
43
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.
46 """
47
48 setup(
49     name="iso8601",
50     version="0.1.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/",
56     packages=["iso8601"],
57     license="MIT",
58 )

Benjamin Mako Hill || Want to submit a patch?