-
-
Notifications
You must be signed in to change notification settings - Fork 380
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 advanced usage sections to README.rst #741
Conversation
Signed-off-by: ddelange <[email protected]>
Maybe put these in https://github.com/RaRe-Technologies/smart_open/blob/develop/howto.md instead? Stuff like this feels a bit too specific for the general readme (the readme links to the howto anyway). |
What to do about the doctests there? No easy way to mock s3, azure, and gcs writes I guess? |
For S3 we can use our own bucket (maybe later...). For Azure and GCS there isn't much we can do, as a team we don't use those cloud providers. |
Same goes for me... Can moto be enabled for doctests by running them via pytest? That would cover the s3 part at least. To test azure and gcs, in pypicloud we spin up (fake) servers, configure the |
I don't see an optimal solution here.
|
Thanks for the reply! And fair enough, let's go with the status quo |
I don't think the ticket was related to Azure or GCS, was it? Any way to help the original user / fix the discovery issue? |
for S3 at least, howto covers it I think: it explains the mechanic and suggests to study the boto3 api reference |
Hey @piskvorky @mpenkov 👋 These last months, I've had to point quite a few people to this PR for reference. Can you reconsider this PR against
I think this addition will save many devs a journey! |
Is Does something like |
Merged, thank you |
…open into patch-2 * 'develop' of https://github.com/RaRe-Technologies/smart_open: fix test, for real this time update integration test Add advanced usage sections to README.rst (piskvorky#741) Add logic for handling large files in MultipartWriter uploads to s3 (piskvorky#796) Fix __str__ method in SinglepartWriter (piskvorky#791)
Title
Add advanced usage sections to README.rst (ACL, StorageClass, Metadata etc)
Motivation
Originally posted by @piskvorky in #738 (comment)
Tests
Docs only
Work in progress
--
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.