Skip to content
Snippets Groups Projects
Commit b7662ea1 authored by mohanty's avatar mohanty
Browse files

Merge branch 'spm/code-improvements' into 'master'

Spm/code improvements

See merge request flatland/flatland!137
parents e271ea3f 83dc78dc
No related branches found
No related tags found
No related merge requests found
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
__author__ = """S.P. Mohanty""" __author__ = """S.P. Mohanty"""
__email__ = 'mohanty@aicrowd.com' __email__ = 'mohanty@aicrowd.com'
__version__ = '0.3.5' __version__ = '0.3.6'
import os import os
import boto3
import uuid import uuid
import subprocess import subprocess
import glob import glob
...@@ -27,6 +26,14 @@ S3_UPLOAD_PATH_TEMPLATE = os.getenv("S3_UPLOAD_PATH_TEMPLATE", "misc/flatland-rl ...@@ -27,6 +26,14 @@ S3_UPLOAD_PATH_TEMPLATE = os.getenv("S3_UPLOAD_PATH_TEMPLATE", "misc/flatland-rl
def get_boto_client(): def get_boto_client():
if not AWS_ACCESS_KEY_ID or not AWS_SECRET_ACCESS_KEY: if not AWS_ACCESS_KEY_ID or not AWS_SECRET_ACCESS_KEY:
raise Exception("AWS Credentials not provided..") 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( return boto3.client(
's3', 's3',
aws_access_key_id=AWS_ACCESS_KEY_ID, aws_access_key_id=AWS_ACCESS_KEY_ID,
......
...@@ -5,7 +5,6 @@ pytest>=3.8.2 ...@@ -5,7 +5,6 @@ pytest>=3.8.2
pytest-runner>=4.2 pytest-runner>=4.2
Click>=7.0 Click>=7.0
crowdai-api>=0.1.21 crowdai-api>=0.1.21
boto3
numpy>=1.16.2 numpy>=1.16.2
recordtype>=1.3 recordtype>=1.3
xarray>=0.11.3 xarray>=0.11.3
......
[bumpversion] [bumpversion]
current_version = 0.3.5 current_version = 0.3.6
commit = True commit = True
tag = True tag = True
......
...@@ -79,6 +79,6 @@ setup( ...@@ -79,6 +79,6 @@ setup(
test_suite='tests', test_suite='tests',
tests_require=test_requirements, tests_require=test_requirements,
url='https://gitlab.aicrowd.com/flatland/flatland', url='https://gitlab.aicrowd.com/flatland/flatland',
version='0.3.5', version='0.3.6',
zip_safe=False, zip_safe=False,
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment