paylogic / pip-accel

pip-accel: Accelerator for pip, the Python package manager
https://pypi.python.org/pypi/pip-accel
MIT License
308 stars 35 forks source link

Support S3 compatible as cache backend #44

Closed mekza closed 9 years ago

mekza commented 9 years ago

Riak CS and Swift are widely used, it will be great to be able to store binary cache in Riak CS or Swift.

xolox commented 9 years ago

I don't have experience with Riak CS and Swift. What would support for them look like according to you? Does Boto support their HTTP APIs? In that case the main accomplishment would be to redirect Boto to the API endpoint of the service in question, right?

mekza commented 9 years ago

@xolox You can use boto Riak CS (and Swift) are 99% s3-compliant. http://java.dzone.com/articles/look-riak-cs-basho

xolox commented 9 years ago

A few days ago I added the s3_cache_url configuration option (it can be set with an environment variable or configuration file). I also updated the Travis CI configuration (that took a while :-) so that FakeS3 is used to run the test suite with the S3 cache backend enabled.

Just now I wrote some documentation on how it works, see the blurb in the readme and the more detailed notes in the API documentation. I believe this provides the feature you requested. Can you try it out and let me know whether it works for you? Thanks!

xolox commented 9 years ago

@mekza: Can you confirm whether this issue is resolved?

xolox commented 9 years ago

I'm going to go ahead and close this issue now, because the test suite has been running based on the code added in this feature request and it has been working fine for quite a while - people are using it. The code was even extended further in #45.

@mekza: If you believe your feature request wasn't implemented correctly then please feel free to reopen this issue. Thanks for suggesting the feature!