Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 472018f

Browse files
committedMar 8, 2024·
Make universal-pathlib 0.2.2 an official dependency.
1 parent 987d6f6 commit 472018f

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed
 

‎docs/source/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
1717
relative to the config file.
1818
- {pull}`555` uses new-style hook wrappers and requires pluggy 1.3 for typing.
1919
- {pull}`557` fixes an issue with `@task(after=...)` in notebooks and terminals.
20+
- {pull}`566` makes universal-pathlib an official dependency.
2021

2122
## 0.4.5 - 2024-01-09
2223

‎docs/source/how_to_guides/remote_files.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@ lots of use cases to deal with remote files.
77
get started. So, some tasks reference remote files instead of local files.
88
- You store the workflow results in remote storage to save and distribute them.
99

10-
pytask uses [universal_pathlib](https://github.com/fsspec/universal_pathlib) to work
10+
pytask uses [universal-pathlib](https://github.com/fsspec/universal_pathlib) to work
1111
with remote files. The package provides a {mod}`pathlib`-like interface, making it very
1212
easy to interact with files from an HTTP(S)-, Dropbox-, S3-, GCP-, Azure-based
1313
filesystem, and many more.
1414

15-
```{warning}
16-
universal_pathlib does currently not support Python 3.12. To track progress, check the
17-
[releases `>0.1.4`](https://github.com/fsspec/universal_pathlib/releases).
18-
```
19-
2015
## HTTP(S)-based filesystem
2116

2217
As an example for dealing with an HTTP(S)-based filesystem, we will download the iris

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dependencies = [
3939
"sqlalchemy>=2",
4040
'tomli>=1; python_version < "3.11"',
4141
'typing-extensions; python_version < "3.9"',
42+
"universal-pathlib>=0.2.2",
4243
]
4344

4445
[project.readme]
@@ -53,7 +54,6 @@ name = "Tobias Raabe"
5354
email = "raabe@posteo.de"
5455

5556
[project.optional-dependencies]
56-
all = ['universal-pathlib; python_version<"3.12"']
5757
docs = [
5858
"furo",
5959
"ipython",

‎src/_pytask/collect.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,7 @@
4444
from _pytask.task_utils import task as task_decorator
4545
from _pytask.typing import is_task_function
4646
from rich.text import Text
47-
48-
try:
49-
from upath import UPath
50-
except ImportError: # pragma: no cover
51-
52-
class UPath: # type: ignore[no-redef]
53-
...
47+
from upath import UPath
5448

5549

5650
if TYPE_CHECKING:

‎tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ passenv = CI
77
package = editable
88

99
[testenv:test]
10-
extras = all, test
10+
extras = test
1111
deps =
1212
pygraphviz;platform_system != "Windows"
1313
commands =

0 commit comments

Comments
 (0)
Please sign in to comment.