diff --git a/CHANGES.txt b/CHANGES.txt index 9b39c3b3..998d0ea8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,8 @@ Changes ------- -0.3.3a0 (XXXX-XX-XX) +0.3.3 (2017-05-22) ^^^^^^^^^^^^^^^^^^ +* switch to PEP 440 version parser to support 'dev' versions 0.3.2 (2017-05-22) ^^^^^^^^^^^^^^^^^^ diff --git a/aiobotocore/__init__.py b/aiobotocore/__init__.py index 14364fed..5e035fd1 100644 --- a/aiobotocore/__init__.py +++ b/aiobotocore/__init__.py @@ -1,4 +1,4 @@ from .session import get_session, AioSession __all__ = ['get_session', 'AioSession'] -__version__ = '0.3.3a0' +__version__ = '0.3.3' diff --git a/aiobotocore/endpoint.py b/aiobotocore/endpoint.py index 6b559702..ea3a5377 100644 --- a/aiobotocore/endpoint.py +++ b/aiobotocore/endpoint.py @@ -13,12 +13,12 @@ from botocore.hooks import first_non_none_response from botocore.utils import is_valid_endpoint_url from botocore.vendored.requests.structures import CaseInsensitiveDict -from distutils.version import StrictVersion +from packaging.version import parse as parse_version from multidict import MultiDict from urllib.parse import urlparse PY_35 = sys.version_info >= (3, 5) -AIOHTTP_2 = StrictVersion(aiohttp.__version__) > StrictVersion('2.0.0') +AIOHTTP_2 = parse_version(aiohttp.__version__) > parse_version('2.0.0') # Monkey patching: We need to insert the aiohttp exception equivalents # The only other way to do this would be to have another config file :( diff --git a/setup.py b/setup.py index e34dd572..48a0b1de 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ install_requires = ['botocore>=1.5.34, <=1.5.52', 'aiohttp>=2.0.4', - 'multidict>=2.1.4', 'wrapt>=1.10.10'] + 'multidict>=2.1.4', 'wrapt>=1.10.10', 'packaging>=16.8'] PY_VER = sys.version_info