From 75e0a4da7fbfccf9d3e43d23d5cdbd141191a5df Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Sun, 18 Feb 2024 19:12:32 +0100 Subject: [PATCH] Prepare release v0.2.1 (#192) * upath: add docstrings to UPath specific methods * upath: update classifiers in setup.py * upath: update changelog --- CHANGELOG.md | 12 +++++++++++- setup.cfg | 1 + upath/core.py | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 798a8f72..3d095b20 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 diff --git a/setup.cfg b/setup.cfg index 8a6dd66a..bf310953 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] diff --git a/upath/core.py b/upath/core.py index 31343c1f..bea2eba6 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: