scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

DigitalOcean Spaces driver #67

Closed RangelReale closed 4 years ago

RangelReale commented 4 years ago

DigitalOcean Spaces uses an S3-compatible API, but there are some suble differences. I made a driver that extends the S3 driver, and I had to do only one small change on it, the "CreateBucketConfiguration" does not work in DigialOcean, so I made it a function that I can override.

I copied the S3 tests, and after some small changes all tests pass.

I am in Windows and tried to test with tox but it is pretty much impossible, maybe Travis will test. I also didn't find out how to make Travis know of a key to test with DigitalOcean, if that is possible.

scottwernervt commented 4 years ago

I am in Windows and tried to test with tox but it is pretty much impossible, maybe Travis will test. I also didn't find out how to make Travis know of a key to test with DigitalOcean, if that is possible.

I will register an account with Digital Ocean and setup Travis to run it. I need to look into simplifying tests so developers do not have to register accounts for running tox tests locally.

RangelReale commented 4 years ago

Can you add yourself to AUTHORS.rst?

Done.