diff --git a/flatland/__init__.py b/flatland/__init__.py index 3a36fdee3e3c2dbc78ada96aed0464d2032db889..a51361920643b32d156c257baf6d3469b916d0b9 100644 --- a/flatland/__init__.py +++ b/flatland/__init__.py @@ -4,4 +4,4 @@ __author__ = """S.P. Mohanty""" __email__ = 'mohanty@aicrowd.com' -__version__ = '0.3.5' +__version__ = '0.3.6' diff --git a/flatland/evaluators/aicrowd_helpers.py b/flatland/evaluators/aicrowd_helpers.py index 662ab17930d5ef7c88ea86dfb6e1d8f889c6ed0f..1f79eac9f1b88645a107d4fba25fd7cb38c6db20 100644 --- a/flatland/evaluators/aicrowd_helpers.py +++ b/flatland/evaluators/aicrowd_helpers.py @@ -1,5 +1,4 @@ import os -import boto3 import uuid import subprocess import glob @@ -27,6 +26,14 @@ S3_UPLOAD_PATH_TEMPLATE = os.getenv("S3_UPLOAD_PATH_TEMPLATE", "misc/flatland-rl def get_boto_client(): if not AWS_ACCESS_KEY_ID or not AWS_SECRET_ACCESS_KEY: raise Exception("AWS Credentials not provided..") + try: + import boto3 + except ImportError as e: + raise Exception( + "boto3 is not installed. Please manually install by : ", + " pip install -U boto3" + ) + return boto3.client( 's3', aws_access_key_id=AWS_ACCESS_KEY_ID, diff --git a/requirements_dev.txt b/requirements_dev.txt index d8e23acef9bea1486cfd2b6055ad8c7416414eb4..2c3fce762e2cc9f66890ad6def2f7e8c005305c9 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -5,7 +5,6 @@ pytest>=3.8.2 pytest-runner>=4.2 Click>=7.0 crowdai-api>=0.1.21 -boto3 numpy>=1.16.2 recordtype>=1.3 xarray>=0.11.3 diff --git a/setup.cfg b/setup.cfg index a50cc62ffe2a857937342a8fca0ff600f06ed660..457dcd2bea6007d073912a7199da885f90e34d7c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.5 +current_version = 0.3.6 commit = True tag = True diff --git a/setup.py b/setup.py index ae45f16e04eb260d8385826c4f45c297a74406db..5299efb0744280a1c0b10d125db7af03e1d7e8e6 100644 --- a/setup.py +++ b/setup.py @@ -79,6 +79,6 @@ setup( test_suite='tests', tests_require=test_requirements, url='https://gitlab.aicrowd.com/flatland/flatland', - version='0.3.5', + version='0.3.6', zip_safe=False, )