-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (49 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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.parseDate("2007-01-25T12:00:00Z")
datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.iso8601.Utc ...>)
>>>
Changes
=======
0.1.5
-----
* Handle timezones in formats hhmm and hh. Previously only handled hh format
* Add function isTimezoneLessEvent to return if a datestring has no timezone associated with it
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.5",
description=LONG_DESCRIPTION.split("\n")[0],
long_description=LONG_DESCRIPTION,
author="Michael Twomey",
author_email="[email protected]",
url="http://code.google.com/p/pyiso8601/",
packages=["iso8601"],
license="MIT",
)