Skip to content

Commit

Permalink
Merge pull request #88 from fhoehle/fix_boto3_import
Browse files Browse the repository at this point in the history
fix boto3 import by moving to classmethod
  • Loading branch information
xhochy authored Aug 22, 2023
2 parents 39972b3 + 3e067fd commit d8fb8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
=====
* Fixed the behaviour of ``S3FSStore`` when providing a custom endpoint.
* Added ``verify`` constructor argument to ``S3FSStore`` that disables SSL verification. Use it in an URI as ``?verify=false``.
* Fixing ``boto3`` import at module level of `s3fsstore`.

1.7.0
=====
Expand Down
2 changes: 1 addition & 1 deletion minimalkv/net/s3fsstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import warnings
from typing import Dict

import boto3
from uritools import SplitResult

from minimalkv import UrlMixin
Expand Down Expand Up @@ -129,6 +128,7 @@ def _from_parsed_url(
store : S3FSStore
The created S3FSStore.
"""
import boto3

url_access_key_id = _get_username(parsed_url)
url_secret_access_key = _get_password(parsed_url)
Expand Down

0 comments on commit d8fb8b4

Please sign in to comment.