[Python-modules-commits] [python-aniso8601] 01/02: New upstream version 1.3.0

Jonathan Cristopher Carter jcc at moszumanska.debian.org
Mon Sep 4 09:58:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

jcc pushed a commit to branch master
in repository python-aniso8601.

commit 4d8d5be15e06ccc8bcdfad8788c30d933e7d0dcc
Author: Jonathan Carter <jcarter at linux.com>
Date:   Mon Sep 4 11:59:03 2017 +0200

    New upstream version 1.3.0
---
 PKG-INFO                                           |  19 +++++-
 README.rst                                         |  17 ++++-
 aniso8601.egg-info/PKG-INFO                        |  19 +++++-
 aniso8601.egg-info/SOURCES.txt                     |  42 ++++--------
 aniso8601.egg-info/requires.txt                    |   2 +-
 aniso8601/__init__.pyc                             | Bin 515 -> 515 bytes
 aniso8601/__pycache__/__init__.cpython-34.pyc      | Bin 511 -> 0 bytes
 aniso8601/__pycache__/__init__.cpython-35.pyc      | Bin 511 -> 0 bytes
 aniso8601/__pycache__/__init__.cpython-36.pyc      | Bin 0 -> 479 bytes
 aniso8601/__pycache__/compat.cpython-34.pyc        | Bin 259 -> 0 bytes
 aniso8601/__pycache__/compat.cpython-35.pyc        | Bin 259 -> 0 bytes
 aniso8601/__pycache__/compat.cpython-36.pyc        | Bin 0 -> 235 bytes
 aniso8601/__pycache__/date.cpython-34.pyc          | Bin 4295 -> 0 bytes
 aniso8601/__pycache__/date.cpython-35.pyc          | Bin 4272 -> 0 bytes
 aniso8601/__pycache__/date.cpython-36.pyc          | Bin 0 -> 3788 bytes
 aniso8601/__pycache__/duration.cpython-34.pyc      | Bin 3427 -> 0 bytes
 aniso8601/__pycache__/duration.cpython-35.pyc      | Bin 4657 -> 0 bytes
 aniso8601/__pycache__/duration.cpython-36.pyc      | Bin 0 -> 4107 bytes
 aniso8601/__pycache__/interval.cpython-34.pyc      | Bin 2326 -> 0 bytes
 aniso8601/__pycache__/interval.cpython-35.pyc      | Bin 2769 -> 0 bytes
 aniso8601/__pycache__/interval.cpython-36.pyc      | Bin 0 -> 2468 bytes
 aniso8601/__pycache__/resolution.cpython-34.pyc    | Bin 705 -> 0 bytes
 aniso8601/__pycache__/resolution.cpython-35.pyc    | Bin 705 -> 0 bytes
 aniso8601/__pycache__/resolution.cpython-36.pyc    | Bin 0 -> 650 bytes
 aniso8601/__pycache__/time.cpython-34.pyc          | Bin 3656 -> 0 bytes
 aniso8601/__pycache__/time.cpython-35.pyc          | Bin 3676 -> 0 bytes
 aniso8601/__pycache__/time.cpython-36.pyc          | Bin 0 -> 3327 bytes
 aniso8601/__pycache__/timezone.cpython-34.pyc      | Bin 2700 -> 0 bytes
 aniso8601/__pycache__/timezone.cpython-35.pyc      | Bin 2745 -> 0 bytes
 aniso8601/__pycache__/timezone.cpython-36.pyc      | Bin 0 -> 2464 bytes
 aniso8601/compat.pyc                               | Bin 235 -> 235 bytes
 aniso8601/date.pyc                                 | Bin 4558 -> 4558 bytes
 aniso8601/duration.pyc                             | Bin 4987 -> 4987 bytes
 aniso8601/interval.pyc                             | Bin 2945 -> 2945 bytes
 aniso8601/resolution.pyc                           | Bin 721 -> 721 bytes
 .../tests/__pycache__/test_date.cpython-34.pyc     | Bin 6122 -> 0 bytes
 .../tests/__pycache__/test_date.cpython-35.pyc     | Bin 7422 -> 0 bytes
 .../tests/__pycache__/test_date.cpython-36.pyc     | Bin 0 -> 6513 bytes
 .../tests/__pycache__/test_duration.cpython-34.pyc | Bin 6932 -> 0 bytes
 .../tests/__pycache__/test_duration.cpython-35.pyc | Bin 13143 -> 0 bytes
 .../tests/__pycache__/test_duration.cpython-36.pyc | Bin 0 -> 11904 bytes
 .../tests/__pycache__/test_init.cpython-34.pyc     | Bin 1871 -> 0 bytes
 .../tests/__pycache__/test_init.cpython-35.pyc     | Bin 1871 -> 0 bytes
 .../tests/__pycache__/test_init.cpython-36.pyc     | Bin 0 -> 1633 bytes
 .../tests/__pycache__/test_interval.cpython-34.pyc | Bin 9306 -> 0 bytes
 .../tests/__pycache__/test_interval.cpython-35.pyc | Bin 18472 -> 0 bytes
 .../tests/__pycache__/test_interval.cpython-36.pyc | Bin 0 -> 14766 bytes
 .../tests/__pycache__/test_time.cpython-34.pyc     | Bin 12924 -> 0 bytes
 .../tests/__pycache__/test_time.cpython-35.pyc     | Bin 12990 -> 0 bytes
 .../tests/__pycache__/test_time.cpython-36.pyc     | Bin 0 -> 12101 bytes
 .../tests/__pycache__/test_timezone.cpython-34.pyc | Bin 3904 -> 0 bytes
 .../tests/__pycache__/test_timezone.cpython-35.pyc | Bin 4177 -> 0 bytes
 .../tests/__pycache__/test_timezone.cpython-36.pyc | Bin 0 -> 3583 bytes
 aniso8601/tests/test_date.pyc                      | Bin 8190 -> 8054 bytes
 aniso8601/tests/test_duration.pyc                  | Bin 14012 -> 13788 bytes
 aniso8601/tests/test_init.pyc                      | Bin 2125 -> 2101 bytes
 aniso8601/tests/test_interval.pyc                  | Bin 19364 -> 19244 bytes
 aniso8601/tests/test_time.py                       |  72 +++++++++++++++++++++
 aniso8601/tests/test_time.pyc                      | Bin 14267 -> 15463 bytes
 aniso8601/tests/test_timezone.pyc                  | Bin 4658 -> 4602 bytes
 aniso8601/time.py                                  |   6 +-
 aniso8601/time.pyc                                 | Bin 3936 -> 4009 bytes
 aniso8601/timezone.pyc                             | Bin 2874 -> 2874 bytes
 setup.cfg                                          |   1 -
 setup.py                                           |   2 +-
 65 files changed, 140 insertions(+), 40 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 36b28ae..c7be739 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: aniso8601
-Version: 1.2.1
+Version: 1.3.0
 Summary: A library for parsing ISO 8601 strings.
 Home-page: https://bitbucket.org/nielsenb/aniso8601
 Author: Brandon Nielsen
@@ -128,6 +128,19 @@ Description: ===========
           >>> aniso8601.parse_time('23.75')
           datetime.time(23, 45)
         
+        Leap seconds are currently not supported::
+        
+          >>> aniso8601.parse_time('21:42:60')
+          Traceback (most recent call last):
+            File "<stdin>", line 1, in <module>
+            File "aniso8601/time.py", line 107, in parse_time
+              return _parse_time_naive(timestr)
+            File "aniso8601/time.py", line 136, in _parse_time_naive
+              return _resolution_map[get_time_resolution(timestr)](timestr)
+            File "aniso8601/time.py", line 199, in _parse_second_time
+              raise ValueError('Seconds must be less than 60.')
+          ValueError: Seconds must be less than 60.
+        
         Parsing durations
         -----------------
         
@@ -176,9 +189,9 @@ Description: ===========
           >>> aniso8601.parse_duration('P2.1Y', relative=True)
           Traceback (most recent call last):
             File "<stdin>", line 1, in <module>
-            File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 29, in parse_duration
+            File "aniso8601/duration.py", line 29, in parse_duration
               return _parse_duration_prescribed(isodurationstr, relative)
-            File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 150, in _parse_duration_prescribed
+            File "aniso8601/duration.py", line 150, in _parse_duration_prescribed
               raise ValueError('Fractional months and years are not defined for relative intervals.')
           ValueError: Fractional months and years are not defined for relative intervals.
         
diff --git a/README.rst b/README.rst
index 28d5dc0..45eec41 100644
--- a/README.rst
+++ b/README.rst
@@ -120,6 +120,19 @@ A decimal fraction is always allowed on the lowest order element of an ISO 8601
   >>> aniso8601.parse_time('23.75')
   datetime.time(23, 45)
 
+Leap seconds are currently not supported::
+
+  >>> aniso8601.parse_time('21:42:60')
+  Traceback (most recent call last):
+    File "<stdin>", line 1, in <module>
+    File "aniso8601/time.py", line 107, in parse_time
+      return _parse_time_naive(timestr)
+    File "aniso8601/time.py", line 136, in _parse_time_naive
+      return _resolution_map[get_time_resolution(timestr)](timestr)
+    File "aniso8601/time.py", line 199, in _parse_second_time
+      raise ValueError('Seconds must be less than 60.')
+  ValueError: Seconds must be less than 60.
+
 Parsing durations
 -----------------
 
@@ -168,9 +181,9 @@ Since a relative fractional month or year is not logical, a ValueError is raised
   >>> aniso8601.parse_duration('P2.1Y', relative=True)
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
-    File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 29, in parse_duration
+    File "aniso8601/duration.py", line 29, in parse_duration
       return _parse_duration_prescribed(isodurationstr, relative)
-    File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 150, in _parse_duration_prescribed
+    File "aniso8601/duration.py", line 150, in _parse_duration_prescribed
       raise ValueError('Fractional months and years are not defined for relative intervals.')
   ValueError: Fractional months and years are not defined for relative intervals.
 
diff --git a/aniso8601.egg-info/PKG-INFO b/aniso8601.egg-info/PKG-INFO
index 36b28ae..c7be739 100644
--- a/aniso8601.egg-info/PKG-INFO
+++ b/aniso8601.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: aniso8601
-Version: 1.2.1
+Version: 1.3.0
 Summary: A library for parsing ISO 8601 strings.
 Home-page: https://bitbucket.org/nielsenb/aniso8601
 Author: Brandon Nielsen
@@ -128,6 +128,19 @@ Description: ===========
           >>> aniso8601.parse_time('23.75')
           datetime.time(23, 45)
         
+        Leap seconds are currently not supported::
+        
+          >>> aniso8601.parse_time('21:42:60')
+          Traceback (most recent call last):
+            File "<stdin>", line 1, in <module>
+            File "aniso8601/time.py", line 107, in parse_time
+              return _parse_time_naive(timestr)
+            File "aniso8601/time.py", line 136, in _parse_time_naive
+              return _resolution_map[get_time_resolution(timestr)](timestr)
+            File "aniso8601/time.py", line 199, in _parse_second_time
+              raise ValueError('Seconds must be less than 60.')
+          ValueError: Seconds must be less than 60.
+        
         Parsing durations
         -----------------
         
@@ -176,9 +189,9 @@ Description: ===========
           >>> aniso8601.parse_duration('P2.1Y', relative=True)
           Traceback (most recent call last):
             File "<stdin>", line 1, in <module>
-            File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 29, in parse_duration
+            File "aniso8601/duration.py", line 29, in parse_duration
               return _parse_duration_prescribed(isodurationstr, relative)
-            File "/home/nielsenb/Jetfuse/aniso8601_working/aniso8601/aniso8601/duration.py", line 150, in _parse_duration_prescribed
+            File "aniso8601/duration.py", line 150, in _parse_duration_prescribed
               raise ValueError('Fractional months and years are not defined for relative intervals.')
           ValueError: Fractional months and years are not defined for relative intervals.
         
diff --git a/aniso8601.egg-info/SOURCES.txt b/aniso8601.egg-info/SOURCES.txt
index ea34aed..5193a31 100644
--- a/aniso8601.egg-info/SOURCES.txt
+++ b/aniso8601.egg-info/SOURCES.txt
@@ -23,22 +23,14 @@ aniso8601.egg-info/SOURCES.txt
 aniso8601.egg-info/dependency_links.txt
 aniso8601.egg-info/requires.txt
 aniso8601.egg-info/top_level.txt
-aniso8601/__pycache__/__init__.cpython-34.pyc
-aniso8601/__pycache__/__init__.cpython-35.pyc
-aniso8601/__pycache__/compat.cpython-34.pyc
-aniso8601/__pycache__/compat.cpython-35.pyc
-aniso8601/__pycache__/date.cpython-34.pyc
-aniso8601/__pycache__/date.cpython-35.pyc
-aniso8601/__pycache__/duration.cpython-34.pyc
-aniso8601/__pycache__/duration.cpython-35.pyc
-aniso8601/__pycache__/interval.cpython-34.pyc
-aniso8601/__pycache__/interval.cpython-35.pyc
-aniso8601/__pycache__/resolution.cpython-34.pyc
-aniso8601/__pycache__/resolution.cpython-35.pyc
-aniso8601/__pycache__/time.cpython-34.pyc
-aniso8601/__pycache__/time.cpython-35.pyc
-aniso8601/__pycache__/timezone.cpython-34.pyc
-aniso8601/__pycache__/timezone.cpython-35.pyc
+aniso8601/__pycache__/__init__.cpython-36.pyc
+aniso8601/__pycache__/compat.cpython-36.pyc
+aniso8601/__pycache__/date.cpython-36.pyc
+aniso8601/__pycache__/duration.cpython-36.pyc
+aniso8601/__pycache__/interval.cpython-36.pyc
+aniso8601/__pycache__/resolution.cpython-36.pyc
+aniso8601/__pycache__/time.cpython-36.pyc
+aniso8601/__pycache__/timezone.cpython-36.pyc
 aniso8601/tests/test_date.py
 aniso8601/tests/test_date.pyc
 aniso8601/tests/test_duration.py
@@ -51,15 +43,9 @@ aniso8601/tests/test_time.py
 aniso8601/tests/test_time.pyc
 aniso8601/tests/test_timezone.py
 aniso8601/tests/test_timezone.pyc
-aniso8601/tests/__pycache__/test_date.cpython-34.pyc
-aniso8601/tests/__pycache__/test_date.cpython-35.pyc
-aniso8601/tests/__pycache__/test_duration.cpython-34.pyc
-aniso8601/tests/__pycache__/test_duration.cpython-35.pyc
-aniso8601/tests/__pycache__/test_init.cpython-34.pyc
-aniso8601/tests/__pycache__/test_init.cpython-35.pyc
-aniso8601/tests/__pycache__/test_interval.cpython-34.pyc
-aniso8601/tests/__pycache__/test_interval.cpython-35.pyc
-aniso8601/tests/__pycache__/test_time.cpython-34.pyc
-aniso8601/tests/__pycache__/test_time.cpython-35.pyc
-aniso8601/tests/__pycache__/test_timezone.cpython-34.pyc
-aniso8601/tests/__pycache__/test_timezone.cpython-35.pyc
\ No newline at end of file
+aniso8601/tests/__pycache__/test_date.cpython-36.pyc
+aniso8601/tests/__pycache__/test_duration.cpython-36.pyc
+aniso8601/tests/__pycache__/test_init.cpython-36.pyc
+aniso8601/tests/__pycache__/test_interval.cpython-36.pyc
+aniso8601/tests/__pycache__/test_time.cpython-36.pyc
+aniso8601/tests/__pycache__/test_timezone.cpython-36.pyc
\ No newline at end of file
diff --git a/aniso8601.egg-info/requires.txt b/aniso8601.egg-info/requires.txt
index 4ea05ed..0f08daa 100644
--- a/aniso8601.egg-info/requires.txt
+++ b/aniso8601.egg-info/requires.txt
@@ -1 +1 @@
-python-dateutil
\ No newline at end of file
+python-dateutil
diff --git a/aniso8601/__init__.pyc b/aniso8601/__init__.pyc
index 8c78eb5..479b348 100644
Binary files a/aniso8601/__init__.pyc and b/aniso8601/__init__.pyc differ
diff --git a/aniso8601/__pycache__/__init__.cpython-34.pyc b/aniso8601/__pycache__/__init__.cpython-34.pyc
deleted file mode 100644
index fadc3ab..0000000
Binary files a/aniso8601/__pycache__/__init__.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/__init__.cpython-35.pyc b/aniso8601/__pycache__/__init__.cpython-35.pyc
deleted file mode 100644
index d341119..0000000
Binary files a/aniso8601/__pycache__/__init__.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/__init__.cpython-36.pyc b/aniso8601/__pycache__/__init__.cpython-36.pyc
new file mode 100644
index 0000000..9f29b85
Binary files /dev/null and b/aniso8601/__pycache__/__init__.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/compat.cpython-34.pyc b/aniso8601/__pycache__/compat.cpython-34.pyc
deleted file mode 100644
index 450d4c5..0000000
Binary files a/aniso8601/__pycache__/compat.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/compat.cpython-35.pyc b/aniso8601/__pycache__/compat.cpython-35.pyc
deleted file mode 100644
index e34f7d7..0000000
Binary files a/aniso8601/__pycache__/compat.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/compat.cpython-36.pyc b/aniso8601/__pycache__/compat.cpython-36.pyc
new file mode 100644
index 0000000..646cb22
Binary files /dev/null and b/aniso8601/__pycache__/compat.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/date.cpython-34.pyc b/aniso8601/__pycache__/date.cpython-34.pyc
deleted file mode 100644
index 637a524..0000000
Binary files a/aniso8601/__pycache__/date.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/date.cpython-35.pyc b/aniso8601/__pycache__/date.cpython-35.pyc
deleted file mode 100644
index 219044c..0000000
Binary files a/aniso8601/__pycache__/date.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/date.cpython-36.pyc b/aniso8601/__pycache__/date.cpython-36.pyc
new file mode 100644
index 0000000..b5a4919
Binary files /dev/null and b/aniso8601/__pycache__/date.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/duration.cpython-34.pyc b/aniso8601/__pycache__/duration.cpython-34.pyc
deleted file mode 100644
index a52f557..0000000
Binary files a/aniso8601/__pycache__/duration.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/duration.cpython-35.pyc b/aniso8601/__pycache__/duration.cpython-35.pyc
deleted file mode 100644
index 313375b..0000000
Binary files a/aniso8601/__pycache__/duration.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/duration.cpython-36.pyc b/aniso8601/__pycache__/duration.cpython-36.pyc
new file mode 100644
index 0000000..7c9b459
Binary files /dev/null and b/aniso8601/__pycache__/duration.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/interval.cpython-34.pyc b/aniso8601/__pycache__/interval.cpython-34.pyc
deleted file mode 100644
index eab1d32..0000000
Binary files a/aniso8601/__pycache__/interval.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/interval.cpython-35.pyc b/aniso8601/__pycache__/interval.cpython-35.pyc
deleted file mode 100644
index 67b1c1c..0000000
Binary files a/aniso8601/__pycache__/interval.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/interval.cpython-36.pyc b/aniso8601/__pycache__/interval.cpython-36.pyc
new file mode 100644
index 0000000..9d99d37
Binary files /dev/null and b/aniso8601/__pycache__/interval.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/resolution.cpython-34.pyc b/aniso8601/__pycache__/resolution.cpython-34.pyc
deleted file mode 100644
index 8184916..0000000
Binary files a/aniso8601/__pycache__/resolution.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/resolution.cpython-35.pyc b/aniso8601/__pycache__/resolution.cpython-35.pyc
deleted file mode 100644
index 9f1b426..0000000
Binary files a/aniso8601/__pycache__/resolution.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/resolution.cpython-36.pyc b/aniso8601/__pycache__/resolution.cpython-36.pyc
new file mode 100644
index 0000000..862b32e
Binary files /dev/null and b/aniso8601/__pycache__/resolution.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/time.cpython-34.pyc b/aniso8601/__pycache__/time.cpython-34.pyc
deleted file mode 100644
index 9bbcefa..0000000
Binary files a/aniso8601/__pycache__/time.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/time.cpython-35.pyc b/aniso8601/__pycache__/time.cpython-35.pyc
deleted file mode 100644
index 04dbb01..0000000
Binary files a/aniso8601/__pycache__/time.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/time.cpython-36.pyc b/aniso8601/__pycache__/time.cpython-36.pyc
new file mode 100644
index 0000000..2db834e
Binary files /dev/null and b/aniso8601/__pycache__/time.cpython-36.pyc differ
diff --git a/aniso8601/__pycache__/timezone.cpython-34.pyc b/aniso8601/__pycache__/timezone.cpython-34.pyc
deleted file mode 100644
index ebed9af..0000000
Binary files a/aniso8601/__pycache__/timezone.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/timezone.cpython-35.pyc b/aniso8601/__pycache__/timezone.cpython-35.pyc
deleted file mode 100644
index 880ace1..0000000
Binary files a/aniso8601/__pycache__/timezone.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/__pycache__/timezone.cpython-36.pyc b/aniso8601/__pycache__/timezone.cpython-36.pyc
new file mode 100644
index 0000000..ff0c9c4
Binary files /dev/null and b/aniso8601/__pycache__/timezone.cpython-36.pyc differ
diff --git a/aniso8601/compat.pyc b/aniso8601/compat.pyc
index 7bd852d..9a9558a 100644
Binary files a/aniso8601/compat.pyc and b/aniso8601/compat.pyc differ
diff --git a/aniso8601/date.pyc b/aniso8601/date.pyc
index 6a4c869..ee6c7ca 100644
Binary files a/aniso8601/date.pyc and b/aniso8601/date.pyc differ
diff --git a/aniso8601/duration.pyc b/aniso8601/duration.pyc
index e4d4e74..b0cfc92 100644
Binary files a/aniso8601/duration.pyc and b/aniso8601/duration.pyc differ
diff --git a/aniso8601/interval.pyc b/aniso8601/interval.pyc
index 9350dcb..b4a273a 100644
Binary files a/aniso8601/interval.pyc and b/aniso8601/interval.pyc differ
diff --git a/aniso8601/resolution.pyc b/aniso8601/resolution.pyc
index a290e5b..09d3e7d 100644
Binary files a/aniso8601/resolution.pyc and b/aniso8601/resolution.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_date.cpython-34.pyc b/aniso8601/tests/__pycache__/test_date.cpython-34.pyc
deleted file mode 100644
index 665685c..0000000
Binary files a/aniso8601/tests/__pycache__/test_date.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_date.cpython-35.pyc b/aniso8601/tests/__pycache__/test_date.cpython-35.pyc
deleted file mode 100644
index 18aa4b2..0000000
Binary files a/aniso8601/tests/__pycache__/test_date.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_date.cpython-36.pyc b/aniso8601/tests/__pycache__/test_date.cpython-36.pyc
new file mode 100644
index 0000000..21a1fa2
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_date.cpython-36.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_duration.cpython-34.pyc b/aniso8601/tests/__pycache__/test_duration.cpython-34.pyc
deleted file mode 100644
index 1c6e902..0000000
Binary files a/aniso8601/tests/__pycache__/test_duration.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_duration.cpython-35.pyc b/aniso8601/tests/__pycache__/test_duration.cpython-35.pyc
deleted file mode 100644
index e1e62f9..0000000
Binary files a/aniso8601/tests/__pycache__/test_duration.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_duration.cpython-36.pyc b/aniso8601/tests/__pycache__/test_duration.cpython-36.pyc
new file mode 100644
index 0000000..4a04410
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_duration.cpython-36.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_init.cpython-34.pyc b/aniso8601/tests/__pycache__/test_init.cpython-34.pyc
deleted file mode 100644
index ba20c56..0000000
Binary files a/aniso8601/tests/__pycache__/test_init.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_init.cpython-35.pyc b/aniso8601/tests/__pycache__/test_init.cpython-35.pyc
deleted file mode 100644
index 4c7084d..0000000
Binary files a/aniso8601/tests/__pycache__/test_init.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_init.cpython-36.pyc b/aniso8601/tests/__pycache__/test_init.cpython-36.pyc
new file mode 100644
index 0000000..f75b808
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_init.cpython-36.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_interval.cpython-34.pyc b/aniso8601/tests/__pycache__/test_interval.cpython-34.pyc
deleted file mode 100644
index aee5668..0000000
Binary files a/aniso8601/tests/__pycache__/test_interval.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_interval.cpython-35.pyc b/aniso8601/tests/__pycache__/test_interval.cpython-35.pyc
deleted file mode 100644
index 56ff437..0000000
Binary files a/aniso8601/tests/__pycache__/test_interval.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_interval.cpython-36.pyc b/aniso8601/tests/__pycache__/test_interval.cpython-36.pyc
new file mode 100644
index 0000000..7e465fc
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_interval.cpython-36.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_time.cpython-34.pyc b/aniso8601/tests/__pycache__/test_time.cpython-34.pyc
deleted file mode 100644
index b529118..0000000
Binary files a/aniso8601/tests/__pycache__/test_time.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_time.cpython-35.pyc b/aniso8601/tests/__pycache__/test_time.cpython-35.pyc
deleted file mode 100644
index 6b22f8d..0000000
Binary files a/aniso8601/tests/__pycache__/test_time.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_time.cpython-36.pyc b/aniso8601/tests/__pycache__/test_time.cpython-36.pyc
new file mode 100644
index 0000000..169fba3
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_time.cpython-36.pyc differ
diff --git a/aniso8601/tests/__pycache__/test_timezone.cpython-34.pyc b/aniso8601/tests/__pycache__/test_timezone.cpython-34.pyc
deleted file mode 100644
index e08da2f..0000000
Binary files a/aniso8601/tests/__pycache__/test_timezone.cpython-34.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_timezone.cpython-35.pyc b/aniso8601/tests/__pycache__/test_timezone.cpython-35.pyc
deleted file mode 100644
index 5bfd382..0000000
Binary files a/aniso8601/tests/__pycache__/test_timezone.cpython-35.pyc and /dev/null differ
diff --git a/aniso8601/tests/__pycache__/test_timezone.cpython-36.pyc b/aniso8601/tests/__pycache__/test_timezone.cpython-36.pyc
new file mode 100644
index 0000000..219eda4
Binary files /dev/null and b/aniso8601/tests/__pycache__/test_timezone.cpython-36.pyc differ
diff --git a/aniso8601/tests/test_date.pyc b/aniso8601/tests/test_date.pyc
index e855a80..aae7f30 100644
Binary files a/aniso8601/tests/test_date.pyc and b/aniso8601/tests/test_date.pyc differ
diff --git a/aniso8601/tests/test_duration.pyc b/aniso8601/tests/test_duration.pyc
index 1601d0e..1e4afd9 100644
Binary files a/aniso8601/tests/test_duration.pyc and b/aniso8601/tests/test_duration.pyc differ
diff --git a/aniso8601/tests/test_init.pyc b/aniso8601/tests/test_init.pyc
index 697ce59..e0e69b0 100644
Binary files a/aniso8601/tests/test_init.pyc and b/aniso8601/tests/test_init.pyc differ
diff --git a/aniso8601/tests/test_interval.pyc b/aniso8601/tests/test_interval.pyc
index 76ecfa6..14a5eb8 100644
Binary files a/aniso8601/tests/test_interval.pyc and b/aniso8601/tests/test_interval.pyc differ
diff --git a/aniso8601/tests/test_time.py b/aniso8601/tests/test_time.py
index 9049638..916b6d4 100644
--- a/aniso8601/tests/test_time.py
+++ b/aniso8601/tests/test_time.py
@@ -224,6 +224,24 @@ class TestTimeParserFunctions(unittest.TestCase):
         self.assertEqual(tzinfoobject.utcoffset(None), datetime.timedelta(hours=0))
         self.assertEqual(tzinfoobject.tzname(None), 'UTC')
 
+        with self.assertRaises(ValueError):
+            parse_time('00:00:60')
+
+        with self.assertRaises(ValueError):
+            parse_time('00:00:60Z')
+
+        with self.assertRaises(ValueError):
+            parse_time('00:00:60+00:00')
+
+        with self.assertRaises(ValueError):
+            parse_time('00:61')
+
+        with self.assertRaises(ValueError):
+            parse_time('00:61Z')
+
+        with self.assertRaises(ValueError):
+            parse_time('00:61+00:00')
+
     def test_parse_datetime(self):
         resultdatetime = parse_datetime('1981-04-05T23:21:28.512400Z')
         self.assertEqual(resultdatetime.year, 1981)
@@ -271,6 +289,24 @@ class TestTimeParserFunctions(unittest.TestCase):
         self.assertEqual(tzinfoobject.utcoffset(None), datetime.timedelta(hours=0))
         self.assertEqual(tzinfoobject.tzname(None), '+00:00')
 
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:00:60')
+
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:00:60Z')
+
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:00:60+00:00')
+
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:61')
+
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:61Z')
+
+        with self.assertRaises(ValueError):
+            parse_datetime('1981-04-05T00:61+00:00')
+
     def test_parse_datetime_spaceseperated(self):
         resultdatetime = parse_datetime('2004-W53-6 23:21:28.512400-12:34', ' ')
         self.assertEqual(resultdatetime.year, 2005)
@@ -357,6 +393,18 @@ class TestTimeParserFunctions(unittest.TestCase):
         self.assertEqual(time.second, 24)
         self.assertEqual(time.microsecond, 120000)
 
+        with self.assertRaises(ValueError):
+            _parse_time_naive('00:00:60')
+
+        with self.assertRaises(ValueError):
+            _parse_time_naive('00:00:60+00:00')
+
+        with self.assertRaises(ValueError):
+            _parse_time_naive('00:61')
+
+        with self.assertRaises(ValueError):
+            _parse_time_naive('00:61+00:00')
+
     def test_parse_hour(self):
         time = _parse_hour('01')
         self.assertEqual(time.hour, 1)
@@ -403,6 +451,18 @@ class TestTimeParserFunctions(unittest.TestCase):
         self.assertEqual(time.second, 27)
         self.assertEqual(time.microsecond, 402000)
 
+        with self.assertRaises(ValueError):
+            _parse_minute_time('0061')
+
+        with self.assertRaises(ValueError):
+            _parse_minute_time('0060.1')
+
+        with self.assertRaises(ValueError):
+            _parse_minute_time('00:61')
+
+        with self.assertRaises(ValueError):
+            _parse_minute_time('00:60.1')
+
     def test_parse_second_time(self):
         time = _parse_second_time('01:23:45')
         self.assertEqual(time.hour, 1)
@@ -436,6 +496,18 @@ class TestTimeParserFunctions(unittest.TestCase):
         self.assertEqual(time.second, 28)
         self.assertEqual(time.microsecond, 512400)
 
+        with self.assertRaises(ValueError):
+            _parse_second_time('000060')
+
+        with self.assertRaises(ValueError):
+            _parse_second_time('00:00:60')
+
+        with self.assertRaises(ValueError):
+            _parse_second_time('006100')
+
+        with self.assertRaises(ValueError):
+            _parse_second_time('00:61:00')
+
     def test_build_time(self):
         self.assertEqual(_build_time(datetime.time(hour=1), datetime.timedelta(hours=1.1, minutes=2.2, seconds=3.3)), datetime.time(hour=2, minute=8, second=15, microsecond=300000))
 
diff --git a/aniso8601/tests/test_time.pyc b/aniso8601/tests/test_time.pyc
index 8f7de10..d10952b 100644
Binary files a/aniso8601/tests/test_time.pyc and b/aniso8601/tests/test_time.pyc differ
diff --git a/aniso8601/tests/test_timezone.pyc b/aniso8601/tests/test_timezone.pyc
index 0261851..2984224 100644
Binary files a/aniso8601/tests/test_timezone.pyc and b/aniso8601/tests/test_timezone.pyc differ
diff --git a/aniso8601/time.py b/aniso8601/time.py
index 3891dea..efeb7ef 100644
--- a/aniso8601/time.py
+++ b/aniso8601/time.py
@@ -103,7 +103,7 @@ def parse_time(isotimestr):
 
     (timestr, tzstr) = _split_tz(isotimestr)
 
-    if tzstr == None:
+    if tzstr is None:
         return _parse_time_naive(timestr)
     elif tzstr == 'Z':
         return _parse_time_naive(timestr).replace(tzinfo=build_utcoffset('UTC', datetime.timedelta(hours=0)))
@@ -194,6 +194,10 @@ def _parse_second_time(timestr):
         #the seconds in to a timedelta, and add it to the time before returning
         secondsdelta = datetime.timedelta(seconds = float(timestr[4:]))
 
+    if secondsdelta.seconds >= 60:
+        #https://bitbucket.org/nielsenb/aniso8601/issues/13/parsing-of-leap-second-gives-wildly
+        raise ValueError('Seconds must be less than 60.')
+
     if isominute > 60:
         raise ValueError('ISO 8601 minute element cannot be greater than 60.')
 
diff --git a/aniso8601/time.pyc b/aniso8601/time.pyc
index 4fc2251..ebbed45 100644
Binary files a/aniso8601/time.pyc and b/aniso8601/time.pyc differ
diff --git a/aniso8601/timezone.pyc b/aniso8601/timezone.pyc
index 80920c2..85e28bb 100644
Binary files a/aniso8601/timezone.pyc and b/aniso8601/timezone.pyc differ
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff --git a/setup.py b/setup.py
index 4ecf2ff..9868034 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ readme.close()
 
 setup(
     name='aniso8601',
-    version='1.2.1',
+    version='1.3.0',
     description='A library for parsing ISO 8601 strings.',
     long_description=README_TEXT,
     author='Brandon Nielsen',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aniso8601.git



More information about the Python-modules-commits mailing list