-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove deprecated logic #80
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 5851e6a.
@@ -73,8 +72,7 @@ def get_store_from_url( | |||
scheme = scheme_parts[0] | |||
|
|||
if scheme not in scheme_to_store: | |||
# If we can't find the scheme, we fall back to the old creation methods | |||
return get_store(**url2dict(url)) | |||
raise NotImplementedError |
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.
TODO: We need to implement the _from_parsed_url
class method for all stores before removing all the deprecated logic.
TODO:: Put this into a separate PR.
@@ -66,11 +68,12 @@ def _create_filesystem(self) -> "S3FileSystem": | |||
if not has_s3fs: | |||
raise ImportError("Cannot find optional dependency s3fs.") | |||
|
|||
if "127.0.0.1" in self.endpoint_url: | |||
if self.endpoint_url: |
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.
This line made no sense to me and I need to pass a custom endpoint URL to the filesystem.
TOOD: Move into separate PR.
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.
return S3FileSystem( | ||
anon=False, | ||
client_kwargs={ | ||
"endpoint_url": self.endpoint_url, | ||
"verify": self.verify, |
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.
I have a use case where I want to disable SSL verification.
TODO: Move into separate PR.
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.
conn = getattr(boto, connect_func)( | ||
access_key, secret_key, host=host, port=port, is_secure=is_secure | ||
) | ||
raise NotImplementedError |
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.
We should be able to remove the entire function.
@@ -1,11 +1,17 @@ | |||
Changelog | |||
********* | |||
|
|||
2.0.0 | |||
===== | |||
* Removed ``get_store``, ``url2dict``, ``extract_params``, and ``create_store``. |
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.
* Removed ``get_store``, ``url2dict``, ``extract_params``, and ``create_store``. | |
* Removed ``get_store``, ``url2dict``, ``extract_params``, and ``create_store``. | |
* Removed `BotoStore` based on deprecated `boto` library. |
WIP