Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GCS support working * Start updating setup.py and README * Add .idea/ to .gitignore * Move integration tests to their proper location * All unit tests passing with mocks * Add gcs integration tests * Add .env to .gitignore * Integration tests passing * Remove kms integration test * Fix failing test * Change writer from buffer size to min part size * Fix typo * Change buffer size to min part size * Fix another missed min_part_size * Fix broken example * Change smart_open to open * Make WHENCE_CHOICES a tuple * Specify client type * Make init one line instead of multiple * Shorten _parse_uri_gcs * Use open instead of smart_open * Fix memory issue with RawReader * Fix type hints * Fix exists in test * Fix typo in smart_open_lib about schemes * Remove RawReaders and BufferedInputBase * Remove unneeded arg passing in tests * Fix bug with seek * Internal and doc stringed constants * Internal functions and doc strings * Fix issue with double issue on upload and add __str__ and __repr__ * Minor cleanup * Fix flake8 errors * Additional flake8 resolution * Add source code encoding to test file * Docstrings in imperative mode * Test grammar * Fix mock_gcs docstring * Only support gs scheme * Remove additional occurences of removed gcs scheme * Add test_read_past_end * Clean up tests with class level decorator * Remove stub function * Use equality instead of in for scheme * Fix repr and mock import * Specify ImportError * Use BytesIO in integration test * Explicit encoding in integration tests * Remove unneeded variable in integration test Co-Authored-By: Michael Penkov <m@penkov.dev> * Remove unneeded data variable Co-Authored-By: Michael Penkov <m@penkov.dev> * Remove .format from test_gcs * Move RESUMEABLE_SESSION_URI_TEMPLATE to module scope * Remove unnecessary explicit encoding Co-Authored-By: Michael Penkov <m@penkov.dev> * Remove unnecessary variable in read Co-Authored-By: Michael Penkov <m@penkov.dev> * Change assertion to use _REQUIRED_CHUNK_MULTIPLE Co-Authored-By: Michael Penkov <m@penkov.dev> * Import clamp from s3 * Add comment on buffering being read-only * Fix client docstring * Make SeekableRawReader internal * Add return value to seek in _SeekableRawReader * Allow integration test to take a prefix * Add doc to NotFound exception * Fix misleading log statement * Various formatting changes * Add additional assertion for min_part_size * Clean up _upload_next_part * Improve UploadFailedError * Add docstring to terminate * Add additional clean up to close * Remove useless terminate in SeekableBufferedInputBase * Fix data type for status_code in UploadFailedError * Clean up UploadedFailedError msg * Start on mock tests * Add tests for mocks * Clean up registering dependencies * Get initialize_bucket to work without gsutil * Change buffering to buffer_size * Add copyright header, fix logging styles, and move result outside ctx manager * Change _upload_empty_part to debug msg * Clean up patching style * Add tests for smart_open_lib * Add blank lines before constants to help readability * Add missing clean up of raw_reader in close * Remove aws related credentials from gs tests Co-authored-by: Michael Penkov <m@penkov.dev>
- Loading branch information