Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aniso8601 for 
openSUSE:Factory checked in at 2021-02-02 14:25:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aniso8601 (Old)
 and      /work/SRC/openSUSE:Factory/.python-aniso8601.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aniso8601"

Tue Feb  2 14:25:30 2021 rev:9 rq:868435 version:8.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aniso8601/python-aniso8601.changes        
2020-12-21 10:26:55.308218270 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-aniso8601.new.28504/python-aniso8601.changes 
    2021-02-02 14:25:43.883397387 +0100
@@ -1,0 +2,13 @@
+Mon Feb  1 17:43:29 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 8.1.1:
+  * Deprecate running tests with python setup.py tests as the test suite
+    support in Setuptools is deprecated
+  *  Add version to __init__.py
+  * Cleaner reading of README.rst into the long_description field of setup.py
+  * Define long_description_content_type as text/x-rst
+  * Simplify Sphinx configuration
+  * Add compat.is_string method, returns True for str, unicode types, False
+    otherwise, used to fix 28 
+  
+-------------------------------------------------------------------

Old:
----
  aniso8601-8.1.0.tar.gz

New:
----
  aniso8601-8.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-aniso8601.spec ++++++
--- /var/tmp/diff_new_pack.sPYRpc/_old  2021-02-02 14:25:44.423398226 +0100
+++ /var/tmp/diff_new_pack.sPYRpc/_new  2021-02-02 14:25:44.427398233 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-aniso8601
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %define modname aniso8601
 %bcond_without python2
 Name:           python-%{modname}
-Version:        8.1.0
+Version:        8.1.1
 Release:        0
 Summary:        A library for parsing ISO 8601 strings
 License:        BSD-3-Clause

++++++ aniso8601-8.1.0.tar.gz -> aniso8601-8.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/PKG-INFO new/aniso8601-8.1.1/PKG-INFO
--- old/aniso8601-8.1.0/PKG-INFO        2020-11-30 21:16:01.733981800 +0100
+++ new/aniso8601-8.1.1/PKG-INFO        2021-01-29 21:58:42.280650100 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: aniso8601
-Version: 8.1.0
+Version: 8.1.1
 Summary: A library for parsing ISO 8601 strings.
 Home-page: https://bitbucket.org/nielsenb/aniso8601
 Author: Brandon Nielsen
@@ -386,9 +386,9 @@
         Tests
         -----
         
-        Tests can be run using `setuptools 
<https://setuptools.readthedocs.io/en/latest/setuptools.html>`::
+        Tests can be run using the `unittest testing framework 
<https://docs.python.org/3/library/unittest.html>`_::
         
-           $ python setup.py test
+           $ python -m unittest discover aniso8601
         
         Contributing
         ============
@@ -424,3 +424,4 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Description-Content-Type: text/x-rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/README.rst 
new/aniso8601-8.1.1/README.rst
--- old/aniso8601-8.1.0/README.rst      2020-11-24 03:24:37.000000000 +0100
+++ new/aniso8601-8.1.1/README.rst      2020-12-01 02:23:07.000000000 +0100
@@ -375,9 +375,9 @@
 Tests
 -----
 
-Tests can be run using `setuptools 
<https://setuptools.readthedocs.io/en/latest/setuptools.html>`::
+Tests can be run using the `unittest testing framework 
<https://docs.python.org/3/library/unittest.html>`_::
 
-   $ python setup.py test
+   $ python -m unittest discover aniso8601
 
 Contributing
 ============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/__init__.py 
new/aniso8601-8.1.1/aniso8601/__init__.py
--- old/aniso8601-8.1.0/aniso8601/__init__.py   2020-11-23 20:30:16.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/__init__.py   2021-01-29 21:56:45.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
@@ -11,3 +11,5 @@
 from aniso8601.date import parse_date, get_date_resolution
 from aniso8601.duration import parse_duration
 from aniso8601.interval import parse_interval, parse_repeating_interval
+
+__version__ = "8.1.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/builders/__init__.py 
new/aniso8601-8.1.1/aniso8601/builders/__init__.py
--- old/aniso8601-8.1.0/aniso8601/builders/__init__.py  2020-11-23 
20:31:43.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/builders/__init__.py  2021-01-29 
21:53:37.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/builders/python.py 
new/aniso8601-8.1.1/aniso8601/builders/python.py
--- old/aniso8601-8.1.0/aniso8601/builders/python.py    2020-11-23 
20:31:59.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/builders/python.py    2021-01-29 
21:53:26.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/builders/tests/__init__.py 
new/aniso8601-8.1.1/aniso8601/builders/tests/__init__.py
--- old/aniso8601-8.1.0/aniso8601/builders/tests/__init__.py    2020-11-23 
20:32:57.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/builders/tests/__init__.py    2021-01-29 
21:54:19.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aniso8601-8.1.0/aniso8601/builders/tests/test_init.py 
new/aniso8601-8.1.1/aniso8601/builders/tests/test_init.py
--- old/aniso8601-8.1.0/aniso8601/builders/tests/test_init.py   2020-11-23 
20:32:42.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/builders/tests/test_init.py   2021-01-29 
21:54:07.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aniso8601-8.1.0/aniso8601/builders/tests/test_python.py 
new/aniso8601-8.1.1/aniso8601/builders/tests/test_python.py
--- old/aniso8601-8.1.0/aniso8601/builders/tests/test_python.py 2020-11-23 
20:33:05.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/builders/tests/test_python.py 2021-01-29 
21:53:55.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/compat.py 
new/aniso8601-8.1.1/aniso8601/compat.py
--- old/aniso8601-8.1.0/aniso8601/compat.py     2020-11-23 20:31:26.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/compat.py     2021-01-29 21:53:11.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
@@ -14,3 +14,9 @@
     range = xrange
 else:
     range = range
+
+def is_string(tocheck):
+    if PY2:
+        return isinstance(tocheck, str) or isinstance(tocheck, unicode)
+
+    return isinstance(tocheck, str)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/date.py 
new/aniso8601-8.1.1/aniso8601/date.py
--- old/aniso8601-8.1.0/aniso8601/date.py       2020-11-24 03:10:00.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/date.py       2021-01-29 21:53:00.000000000 
+0100
@@ -1,13 +1,14 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
 # of the BSD license.  See the LICENSE file for details.
 
-from aniso8601.exceptions import ISOFormatError
 from aniso8601.builders.python import PythonTimeBuilder
+from aniso8601.compat import is_string
+from aniso8601.exceptions import ISOFormatError
 from aniso8601.resolution import DateResolution
 
 def get_date_resolution(isodatestr):
@@ -23,7 +24,7 @@
     #YYYYWwwD
     #YYYY-DDD
     #YYYYDDD
-    if not isinstance(isodatestr, str):
+    if is_string(isodatestr) is False:
         raise ValueError('Date must be string.')
 
     if isodatestr.startswith('+') or isodatestr.startswith('-'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/decimalfraction.py 
new/aniso8601-8.1.1/aniso8601/decimalfraction.py
--- old/aniso8601-8.1.0/aniso8601/decimalfraction.py    2020-11-23 
20:30:56.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/decimalfraction.py    2021-01-29 
21:52:49.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/duration.py 
new/aniso8601-8.1.1/aniso8601/duration.py
--- old/aniso8601-8.1.0/aniso8601/duration.py   2020-11-24 03:10:00.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/duration.py   2021-01-29 21:52:40.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
@@ -21,7 +21,7 @@
     #PnYnMnDTnHnMnS (or any reduced precision equivalent)
     #P<date>T<time>
 
-    if not isinstance(isodurationstr, str):
+    if compat.is_string(isodurationstr) is False:
         raise ValueError('Duration must be string.')
 
     if len(isodurationstr) == 0:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/exceptions.py 
new/aniso8601-8.1.1/aniso8601/exceptions.py
--- old/aniso8601-8.1.0/aniso8601/exceptions.py 2020-11-23 20:30:27.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/exceptions.py 2021-01-29 21:52:26.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/interval.py 
new/aniso8601-8.1.1/aniso8601/interval.py
--- old/aniso8601-8.1.0/aniso8601/interval.py   2020-11-24 03:10:00.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/interval.py   2021-01-29 21:52:02.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
@@ -8,6 +8,7 @@
 
 from aniso8601.builders import TupleBuilder
 from aniso8601.builders.python import PythonTimeBuilder
+from aniso8601.compat import is_string
 from aniso8601.date import parse_date
 from aniso8601.duration import parse_duration
 from aniso8601.exceptions import ISOFormatError
@@ -32,7 +33,7 @@
     #Is expressly not supported as there is no way to provide the additional
     #required context.
 
-    if not isinstance(isointervalstr, str):
+    if is_string(isointervalstr) is False:
         raise ValueError('Interval must be string.')
 
     if len(isointervalstr) == 0:
@@ -58,7 +59,7 @@
     #Rnn/<interval>
     #R/<interval>
 
-    if not isinstance(isointervalstr, str):
+    if is_string(isointervalstr) is False:
         raise ValueError('Interval must be string.')
 
     if len(isointervalstr) == 0:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/resolution.py 
new/aniso8601-8.1.1/aniso8601/resolution.py
--- old/aniso8601-8.1.0/aniso8601/resolution.py 2020-11-23 20:29:50.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/resolution.py 2021-01-29 21:51:48.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/__init__.py 
new/aniso8601-8.1.1/aniso8601/tests/__init__.py
--- old/aniso8601-8.1.0/aniso8601/tests/__init__.py     2020-11-23 
20:29:30.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/__init__.py     2021-01-29 
21:50:39.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/compat.py 
new/aniso8601-8.1.1/aniso8601/tests/compat.py
--- old/aniso8601-8.1.0/aniso8601/tests/compat.py       2020-11-23 
20:29:15.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/compat.py       2021-01-29 
21:50:54.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_compat.py 
new/aniso8601-8.1.1/aniso8601/tests/test_compat.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_compat.py  1970-01-01 
01:00:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_compat.py  2021-01-29 
21:49:14.000000000 +0100
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2021, Brandon Nielsen
+# All rights reserved.
+#
+# This software may be modified and distributed under the terms
+# of the BSD license.  See the LICENSE file for details.
+
+import unittest
+
+from aniso8601.compat import PY2, is_string
+
+class TestCompatFunctions(unittest.TestCase):
+    def test_is_string(self):
+        self.assertTrue(is_string('asdf'))
+        self.assertTrue(is_string(''))
+
+        if PY2 is True:
+            self.assertTrue(is_string(unicode('asdf')))
+
+        self.assertFalse(is_string(None))
+        self.assertFalse(is_string(123))
+        self.assertFalse(is_string(4.56))
+        self.assertFalse(is_string([]))
+        self.assertFalse(is_string({}))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_date.py 
new/aniso8601-8.1.1/aniso8601/tests/test_date.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_date.py    2020-11-24 
03:10:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_date.py    2021-01-29 
21:50:06.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aniso8601-8.1.0/aniso8601/tests/test_decimalfraction.py 
new/aniso8601-8.1.1/aniso8601/tests/test_decimalfraction.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_decimalfraction.py 2020-11-23 
20:28:35.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_decimalfraction.py 2021-01-29 
21:51:31.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_duration.py 
new/aniso8601-8.1.1/aniso8601/tests/test_duration.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_duration.py        2020-11-24 
03:10:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_duration.py        2021-01-29 
21:49:58.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_init.py 
new/aniso8601-8.1.1/aniso8601/tests/test_init.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_init.py    2020-11-23 
20:29:01.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_init.py    2021-01-29 
21:51:09.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_interval.py 
new/aniso8601-8.1.1/aniso8601/tests/test_interval.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_interval.py        2020-11-24 
03:10:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_interval.py        2021-01-29 
21:49:43.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_time.py 
new/aniso8601-8.1.1/aniso8601/tests/test_time.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_time.py    2020-11-24 
03:10:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_time.py    2021-01-29 
21:49:28.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_timezone.py 
new/aniso8601-8.1.1/aniso8601/tests/test_timezone.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_timezone.py        2020-11-24 
03:10:00.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_timezone.py        2021-01-29 
21:50:26.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/tests/test_utcoffset.py 
new/aniso8601-8.1.1/aniso8601/tests/test_utcoffset.py
--- old/aniso8601-8.1.0/aniso8601/tests/test_utcoffset.py       2020-11-23 
20:28:47.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601/tests/test_utcoffset.py       2021-01-29 
21:51:21.000000000 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/time.py 
new/aniso8601-8.1.1/aniso8601/time.py
--- old/aniso8601-8.1.0/aniso8601/time.py       2020-11-24 03:10:00.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/time.py       2021-01-29 21:49:01.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
@@ -8,6 +8,7 @@
 
 from aniso8601.builders import TupleBuilder
 from aniso8601.builders.python import PythonTimeBuilder
+from aniso8601.compat import is_string
 from aniso8601.date import parse_date
 from aniso8601.decimalfraction import find_separator, normalize
 from aniso8601.exceptions import ISOFormatError
@@ -42,7 +43,7 @@
     #hh:mm??hh
     #hhmm??hh
     #hh??hh
-    if not isinstance(isotimestr, str):
+    if is_string(isotimestr) is False:
         raise ValueError('Time must be string.')
 
     timestr = _split_tz(isotimestr)[0].replace(':', '')
@@ -118,7 +119,7 @@
     #By default, the ISO 8601 specified T delimiter is used to split the
     #date and time (<date>T<time>). Fixed offset tzdata will be included
     #if UTC offset is given in the input string.
-    if not isinstance(isodatetimestr, str):
+    if is_string(isodatetimestr) is False:
         raise ValueError('Date time must be string.')
 
     if delimiter not in isodatetimestr:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/timezone.py 
new/aniso8601-8.1.1/aniso8601/timezone.py
--- old/aniso8601-8.1.0/aniso8601/timezone.py   2020-11-24 03:10:00.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/timezone.py   2021-01-29 21:48:47.000000000 
+0100
@@ -1,17 +1,18 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
 # of the BSD license.  See the LICENSE file for details.
 
 from aniso8601.builders.python import PythonTimeBuilder
+from aniso8601.compat import is_string
 from aniso8601.exceptions import ISOFormatError
 
 def parse_timezone(tzstr, builder=PythonTimeBuilder):
     #tzstr can be Z, ??hh:mm, ??hhmm, ??hh
-    if not isinstance(tzstr, str):
+    if is_string(tzstr) is False:
         raise ValueError('Time zone must be string.')
 
     if 'Z' in tzstr:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601/utcoffset.py 
new/aniso8601-8.1.1/aniso8601/utcoffset.py
--- old/aniso8601-8.1.0/aniso8601/utcoffset.py  2020-11-23 20:26:49.000000000 
+0100
+++ new/aniso8601-8.1.1/aniso8601/utcoffset.py  2021-01-29 21:48:37.000000000 
+0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2020, Brandon Nielsen
+# Copyright (c) 2021, Brandon Nielsen
 # All rights reserved.
 #
 # This software may be modified and distributed under the terms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601.egg-info/PKG-INFO 
new/aniso8601-8.1.1/aniso8601.egg-info/PKG-INFO
--- old/aniso8601-8.1.0/aniso8601.egg-info/PKG-INFO     2020-11-30 
21:16:01.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601.egg-info/PKG-INFO     2021-01-29 
21:58:42.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: aniso8601
-Version: 8.1.0
+Version: 8.1.1
 Summary: A library for parsing ISO 8601 strings.
 Home-page: https://bitbucket.org/nielsenb/aniso8601
 Author: Brandon Nielsen
@@ -386,9 +386,9 @@
         Tests
         -----
         
-        Tests can be run using `setuptools 
<https://setuptools.readthedocs.io/en/latest/setuptools.html>`::
+        Tests can be run using the `unittest testing framework 
<https://docs.python.org/3/library/unittest.html>`_::
         
-           $ python setup.py test
+           $ python -m unittest discover aniso8601
         
         Contributing
         ============
@@ -424,3 +424,4 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Description-Content-Type: text/x-rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/aniso8601.egg-info/SOURCES.txt 
new/aniso8601-8.1.1/aniso8601.egg-info/SOURCES.txt
--- old/aniso8601-8.1.0/aniso8601.egg-info/SOURCES.txt  2020-11-30 
21:16:01.000000000 +0100
+++ new/aniso8601-8.1.1/aniso8601.egg-info/SOURCES.txt  2021-01-29 
21:58:42.000000000 +0100
@@ -25,6 +25,7 @@
 aniso8601/builders/tests/test_python.py
 aniso8601/tests/__init__.py
 aniso8601/tests/compat.py
+aniso8601/tests/test_compat.py
 aniso8601/tests/test_date.py
 aniso8601/tests/test_decimalfraction.py
 aniso8601/tests/test_duration.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aniso8601-8.1.0/setup.py new/aniso8601-8.1.1/setup.py
--- old/aniso8601-8.1.0/setup.py        2020-11-30 21:11:27.000000000 +0100
+++ new/aniso8601-8.1.1/setup.py        2020-12-01 02:55:12.000000000 +0100
@@ -1,5 +1,7 @@
 import sys
 
+from aniso8601 import __version__
+from os import path
 from setuptools import setup, find_packages
 
 TESTS_REQUIRE = []
@@ -10,15 +12,16 @@
 if PY2:
     TESTS_REQUIRE.append('mock>=2.0.0')
 
-readme = open('README.rst', 'r')
-README_TEXT = readme.read()
-readme.close()
+THIS_DIRECTORY = path.abspath(path.dirname(__file__))
+with open(path.join(THIS_DIRECTORY, 'README.rst')) as f:
+    README_TEXT = f.read()
 
 setup(
     name='aniso8601',
-    version='8.1.0',
+    version=__version__,
     description='A library for parsing ISO 8601 strings.',
     long_description=README_TEXT,
+    long_description_content_type='text/x-rst',
     author='Brandon Nielsen',
     author_email='niels...@jetfuse.net',
     url='https://bitbucket.org/nielsenb/aniso8601',

Reply via email to