diff options
| author | Corey Bryant <corey.bryant@canonical.com> | 2020-07-16 09:24:13 -0400 |
|---|---|---|
| committer | Corey Bryant <corey.bryant@canonical.com> | 2020-07-16 09:24:13 -0400 |
| commit | 8a0b3242d4c5c1b6db78ae72015ee16453992a09 (patch) | |
| tree | b34f17613f5eee0ee479a9aeb69a3546f5d57f35 | |
| parent | 78ee4531fa98640dff1926e760a8554a4863d0ce (diff) | |
| -rw-r--r-- | CHANGES.rst | 7 | ||||
| -rw-r--r-- | PKG-INFO | 12 | ||||
| -rw-r--r-- | intervals.egg-info/PKG-INFO | 12 | ||||
| -rw-r--r-- | intervals/__init__.py | 2 | ||||
| -rw-r--r-- | intervals/interval.py | 2 | ||||
| -rw-r--r-- | setup.py | 6 | ||||
| -rw-r--r-- | tests/interval/test_operators.py | 7 |
7 files changed, 27 insertions, 21 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index e314281..ab8d128 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,13 @@ Changelog Here you can see the full list of changes between each intervals release. +0.9.0 (2020-07-16) +^^^^^^^^^^^^^^^^^^ + +- Fixed interval coercion (#42) +- Dropped py27 and py34 support + + 0.8.1 (2017-12-06) ^^^^^^^^^^^^^^^^^^ @@ -1,12 +1,11 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: intervals -Version: 0.8.1 +Version: 0.9.0 Summary: Python tools for handling intervals (ranges of comparable objects). Home-page: https://github.com/kvesteri/intervals Author: Konsta Vesterinen Author-email: konsta@fastmonkeys.com License: BSD -Description-Content-Type: UNKNOWN Description: intervals --------- @@ -19,13 +18,12 @@ Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: test diff --git a/intervals.egg-info/PKG-INFO b/intervals.egg-info/PKG-INFO index e9df75b..f954bdb 100644 --- a/intervals.egg-info/PKG-INFO +++ b/intervals.egg-info/PKG-INFO @@ -1,12 +1,11 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: intervals -Version: 0.8.1 +Version: 0.9.0 Summary: Python tools for handling intervals (ranges of comparable objects). Home-page: https://github.com/kvesteri/intervals Author: Konsta Vesterinen Author-email: konsta@fastmonkeys.com License: BSD -Description-Content-Type: UNKNOWN Description: intervals --------- @@ -19,13 +18,12 @@ Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: test diff --git a/intervals/__init__.py b/intervals/__init__.py index e692434..1636366 100644 --- a/intervals/__init__.py +++ b/intervals/__init__.py @@ -32,4 +32,4 @@ __all__ = ( ) -__version__ = '0.8.1' +__version__ = '0.9.0' diff --git a/intervals/interval.py b/intervals/interval.py index 0e3ad96..81bb4b9 100644 --- a/intervals/interval.py +++ b/intervals/interval.py @@ -100,7 +100,7 @@ def coerce_interval(func): return NotImplemented try: arg = type(self)(self.type(arg)) - except (ValueError, TypeError): + except (ValueError, TypeError, OverflowError): pass return func(self, arg) return wrapper @@ -57,12 +57,10 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', diff --git a/tests/interval/test_operators.py b/tests/interval/test_operators.py index 869dc26..4bfed42 100644 --- a/tests/interval/test_operators.py +++ b/tests/interval/test_operators.py @@ -19,7 +19,12 @@ class TestComparisonOperators(object): DateInterval([date(2011, 1, 1), date(2011, 1, 1)]), False ), - (IntInterval.from_string('(,)') == None, False) # noqa + (IntInterval.from_string('(,)') == None, False), # noqa + ( + DateInterval(date(2000, 1, 1), date(2001, 1, 1)) == + -12312321312312312312123123, + False + ) )) def test_eq_operator(self, comparison, result): assert comparison is result |
