source: trunk/server/lib/subunit/python/iso8601/setup.py

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 1.5 KB
Line 
1try:
2 from setuptools import setup
3except ImportError:
4 from distutils import setup
5
6long_description="""Simple module to parse ISO 8601 dates
7
8This module parses the most common forms of ISO 8601 date strings (e.g.
92007-01-14T20:34:22+00:00) into datetime objects.
10
11>>> import iso8601
12>>> iso8601.parse_date("2007-01-25T12:00:00Z")
13datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
14>>>
15
16Changes
17=======
18
190.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
250.1.3
26-----
27
28* Fixed the microsecond handling, the generated microsecond values were
29 way too small. Fixes issue 9.
30
310.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
410.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
48setup(
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)
Note: See TracBrowser for help on using the repository browser.