Skip to content

Commit

Permalink
Prepare release v0.2.1 (#192)
Browse files Browse the repository at this point in the history
* upath: add docstrings to UPath specific methods

* upath: update classifiers in setup.py

* upath: update changelog
  • Loading branch information
ap-- authored Feb 18, 2024
1 parent 4e2afca commit 75e0a4d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions upath/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 75e0a4d

Please sign in to comment.