-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for azure-storage-blob>=12.0.0 #784
Comments
+1 👍 |
There are more changes than just renaming, so I suggest a requirement pin until someone has time to update the code according to 12.0.0 of |
Yeah, many changes. For now I will just pin to |
Sorry, let me clarify. Since most things (this library excepted) now use semantic versioning I think that pinning to version ranges is acceptable, pinning to specific versions is not though. I'm a bit surprised at how much churn there is in the relevant libraries for django-storages. |
Any progress on this? I'm currently using a wrapper library for |
Any hope to have |
It seems that #805 is ready to be merged, any chance of giving this some priority? |
@jschneier would you be able to provide some information on what are the chances to get this finished? I would very much like to use django-storages and even put dev time to keep it up but if for some reason this is not moving forward I'll need to find an alternative which I'm not too excited about. Again I appreciate all the great work so far and hope you can provide a comment about what's needed to close this. Thanks! |
@lmmentel It's not ideal, but you can use the branch in #805 PR from @pjsier with latest Azure Storage Blob package, by adding following to your requirements.txt:
Just make sure to unset Once I unset |
There will be another release shortly. I can’t promise more because I will inevitably break it.
Thanks for your patience.
… On Aug 29, 2021, at 19:52, lodeagcf ***@***.***> wrote:
@lmmentel <https://github.com/lmmentel> It's not ideal, but you can use the branch in #805 <#805> PR from @pjsier <https://github.com/pjsier> with latest Azure Storage Blob package, by adding following to your requirements.txt:
azure-storage-blob==12.8.1
***@***.***#egg=django-storages[azure]
Just make sure to unset AZURE_CONNECTION_STRING in your configs, because the format is completely different between what is implemented in #805 <#805> -- where it's a URL to a container <https://github.com/pjsier/django-storages/blob/fb519de50b136dbdff37d72e8c564099c0aa088e/storages/backends/azure_storage.py#L157> -- and what is implemented in vanilla django-storages where it's an input to BlockBlobService <https://github.com/jschneier/django-storages/blob/35d0b84a488007501ea1d04732f3edf774546055/storages/backends/azure_storage.py#L186> in a legacy format (described here <https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string>).
Once I unset AZURE_CONNECTION_STRING, the changes made in #805 <#805> were good to go.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#784 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAREDWH4LYSN6KTJG3H5THDT7LB3LANCNFSM4JHYXQJA>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks @lodeagcf, this is more or less what I'm doing although this is less that ideal for many reasons, I would like to pin package versions instead of relying on a branch form a fork ... The added complexity of installing packages from git instead of pypi also raises concerns. @jschneier thanks for the response and the news about the release are great but could you say something about this specific issue and if it'll make it? As I said I'm willing to help out getting this fixed, just let me know what you think needs to get done. |
@lodeagcf Hello, I am having trouble with your solution.
And getting import error on BlobPermission
EDIT: |
Yesterday version 12.0.0 of
azure-storage-blob
was released.First of all I would like to request pinning versions of required libraries so new releases of these do not instantly break django-storages if they have any breaking changes. In my opinion it is much better to pin the requirements and update manually when needed/requested.
My nightly build using django-storages for Azure failed, and the first issue I found was the renaming of
BlobPermissions
toBlobSasPermissions
. This must be updated in azure_storage.pyI have not looked through the rest of the changes yet, but there might be more issues hidden in the release notes. I will try to find the issues and submit a PR.
An immediate quick fix would be to pin
azure-storage-blob
to version2.1.0
. The [azure
] module uses1.3.1
, so that is an option as well.Release notes for azure-storage-blob 12.0.0:
The text was updated successfully, but these errors were encountered: