Skip to content

Commit

Permalink
Merge pull request #345 from Duke-GCB/azure-changes
Browse files Browse the repository at this point in the history
Add support for using Azure storage
  • Loading branch information
johnbradley authored Mar 10, 2022
2 parents 8b0f889 + 819397b commit 0b4eb27
Show file tree
Hide file tree
Showing 21 changed files with 1,565 additions and 220 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
- image: circleci/python:3.7
working_directory: ~/DukeDSClient
steps:
- checkout:
Expand All @@ -19,6 +19,7 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
python setup.py install
pip install -r devRequirements.txt
pip install coveralls
Expand All @@ -36,7 +37,7 @@ jobs:
coverage run --source=ddsc setup.py test
deploy:
docker:
- image: circleci/python:3.6
- image: circleci/python:3.7
steps:
- checkout

Expand Down
Empty file added ddsc/azure/__init__.py
Empty file.
23 changes: 23 additions & 0 deletions ddsc/azure/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Duke data service command line project management utility."""
import sys
from ddsc.ddsclient import DDSClient, AZURE_BACKING_STORAGE
from ddsc.exceptions import DDSUserException


def main(args=None):
if args is None:
args = sys.argv[1:]
client = DDSClient(backing_storage=AZURE_BACKING_STORAGE)
try:
client.run_command(args)
except DDSUserException as ex:
if client.show_error_stack_trace:
raise
else:
error_message = '\n{}\n'.format(str(ex))
sys.stderr.write(error_message)
sys.exit(2)


if __name__ == '__main__':
main()
Loading

0 comments on commit 0b4eb27

Please sign in to comment.