diff --git a/README.md b/README.md index a8acb08..119fe00 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ client library prefers. # CLI -Pathy command line interface. (v0.5.1) +Pathy command line interface. (v0.5.2) **Usage**: diff --git a/pathy/s3.py b/pathy/s3.py index 1ab8e01..53ef710 100644 --- a/pathy/s3.py +++ b/pathy/s3.py @@ -112,11 +112,13 @@ def exists(self) -> bool: class BucketClientS3(BucketClient): client: S3NativeClient - _session: Optional[Any] + _session: Optional[boto3.Session] @property def client_params(self) -> Dict[str, Any]: - return dict() if self._session is None else dict(session=self._session) + session: Any = self._session + result: Any = dict() if session is None else dict(client=session.client("s3")) + return result def __init__(self, **kwargs: Any) -> None: self.recreate(**kwargs) diff --git a/requirements.txt b/requirements.txt index f948ca7..a6516e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -smart-open>=2.2.0,<4.0.0 +smart-open>=5.0.0,<6.0.0 typer>=0.3.0,<1.0.0 dataclasses>=0.6,<1.0; python_version < "3.7" \ No newline at end of file