From eeb65cfef282755c315013f6711f0f43eabcd4b3 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Sun, 18 Feb 2024 18:57:39 +0100 Subject: [PATCH 1/3] upath: add docstrings to UPath specific methods --- upath/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upath/core.py b/upath/core.py index 31343c1..bea2eba 100644 --- a/upath/core.py +++ b/upath/core.py @@ -234,14 +234,17 @@ def __init__( @property def protocol(self) -> str: + """The fsspec protocol for the path.""" return self._protocol @property def storage_options(self) -> Mapping[str, Any]: + """The fsspec storage options for the path.""" return MappingProxyType(self._storage_options) @property def fs(self) -> AbstractFileSystem: + """The cached fsspec filesystem instance for the path.""" try: return self._fs_cached except AttributeError: @@ -252,6 +255,7 @@ def fs(self) -> AbstractFileSystem: @property def path(self) -> str: + """The path that a fsspec filesystem can use.""" return super().__str__() def joinuri(self, uri: str | os.PathLike[str]) -> UPath: From c0a71839fb7d2272b760c1b8d53ef0dc8752d8c7 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Sun, 18 Feb 2024 18:58:07 +0100 Subject: [PATCH 2/3] upath: update classifiers in setup.py --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 8a6dd66..bf31095 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,6 +16,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Development Status :: 4 - Beta [options] From 8c5a99daefdafb0230704a7fd81be4d1ade11159 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Sun, 18 Feb 2024 19:03:39 +0100 Subject: [PATCH 3/3] upath: update changelog --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 798a8f7..3d095b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ... +## [0.2.1] - 2024-02-18 +### Added +- upath: added `UPath.joinuri()` (#189) + +### Fixed +- fixed `UPath` instances not hashable (#188) +- fixed missing `packaging` dependency (#187) +- fixed pypi package classifiers + ## [0.2.0] - 2024-02-13 ### Added - upath: support Python 3.12 (#152) @@ -109,7 +118,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - started a changelog to keep track of significant changes -[Unreleased]: https://github.com/fsspec/universal_pathlib/compare/v0.2.0...HEAD +[Unreleased]: https://github.com/fsspec/universal_pathlib/compare/v0.2.1...HEAD +[0.2.0]: https://github.com/fsspec/universal_pathlib/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/fsspec/universal_pathlib/compare/v0.1.4...v0.2.0 [0.1.4]: https://github.com/fsspec/universal_pathlib/compare/v0.1.3...v0.1.4 [0.1.3]: https://github.com/fsspec/universal_pathlib/compare/v0.1.2...v0.1.3