-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Allow passing additional kwargs for Azure writes #702
Conversation
@mpenkov is there something I can do to move this along? |
@ddelange I am thinking similar things. Instead of using a optional arguments called |
Although I wouldnt mind a unified API, I think that would be a bigger refactor (and major breaking change) to achieve that. Especially for s3, the mechanism is currently substantially different. See e.g. passing ACL, StorageClass, Metadata here in 3x For now, this PR is minimally invasive. Maybe it makes sense to open a separate issue linked to #701? |
@mpenkov any thoughts? |
@mpenkov could you please have a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
OK, I've merged the changes. Sorry for the delay, I've been busy with other parts of my life. |
thanks and no problem! |
@mpenkov could you push a release? |
@ddelange Looks like there's some sort of build problem: I need to fix this before making a release. Not sure when I'll get around to it, will try next week. https://github.com/RaRe-Technologies/smart_open/runs/7574213524?check_suite_focus=true (not sure, it looks like it may not be related to this PR) |
I've seen that warning before. Probably unrelated to the S3 error though (just a warning). |
interesting to see a warning about also dont see |
Yes, it appears so. |
@mpenkov thanks for the quick fix and release! 💥 |
Title
Allow passing additional kwargs for Azure writes
Motivation
Tests
Tests that
smart_open.azure.Writer
accepts metadata, and retrieving it afterwards (withFakeBlobClient.get_blob_properties
).Checklist
Before you create the PR, please make sure you have:
Workflow
Please avoid rebasing and force-pushing to the branch of the PR once a review is in progress.
Rebasing can make your commits look a bit cleaner, but it also makes life more difficult from the reviewer, because they are no longer able to distinguish between code that has already been reviewed, and unreviewed code.