Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release v0.2.1 #192

Merged
merged 3 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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