Skip to content
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

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

janjagusch
Copy link
Contributor

WIP

@@ -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
Copy link
Contributor Author

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:
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#81

return S3FileSystem(
anon=False,
client_kwargs={
"endpoint_url": self.endpoint_url,
"verify": self.verify,
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#82

conn = getattr(boto, connect_func)(
access_key, secret_key, host=host, port=port, is_secure=is_secure
)
raise NotImplementedError
Copy link
Contributor Author

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``.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants