superpathlib 2.0.13__tar.gz → 2.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {superpathlib-2.0.13/src/superpathlib.egg-info → superpathlib-2.0.14}/PKG-INFO +2 -2
- {superpathlib-2.0.13 → superpathlib-2.0.14}/pyproject.toml +2 -2
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/extra_functionality.py +3 -3
- {superpathlib-2.0.13 → superpathlib-2.0.14/src/superpathlib.egg-info}/PKG-INFO +2 -2
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib.egg-info/requires.txt +1 -1
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_functionality.py +9 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/LICENSE +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/README.md +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/setup.cfg +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/__init__.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/base.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/cached_content.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/common_folders.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/content_properties.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/encryption.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/metadata_properties.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/override.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/path.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/py.typed +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/tags.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib/utils.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib.egg-info/SOURCES.txt +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib.egg-info/dependency_links.txt +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/src/superpathlib.egg-info/top_level.txt +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_cached_content.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_common_folders.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_content.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_encrypted_content.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_inheritance.py +0 -0
- {superpathlib-2.0.13 → superpathlib-2.0.14}/tests/test_metadata.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superpathlib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.14
|
|
4
4
|
Summary: Extended Pathlib
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,7 +18,7 @@ Requires-Dist: PyYaml<7,>=6.0.1; extra == "full"
|
|
|
18
18
|
Requires-Dist: xattr<2,>=0.10.1; extra == "full"
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
|
|
21
|
-
Requires-Dist: package-dev-tools<1,>=0.8.
|
|
21
|
+
Requires-Dist: package-dev-tools<1,>=0.8.1; extra == "dev"
|
|
22
22
|
Requires-Dist: types-PyYaml<7,>=6.0.12.12; extra == "dev"
|
|
23
23
|
Requires-Dist: dirhash<1,>=0.2.1; extra == "dev"
|
|
24
24
|
Requires-Dist: numpy<3,>=1.26.4; extra == "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "superpathlib"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.14"
|
|
4
4
|
description = "Extended Pathlib"
|
|
5
5
|
authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
|
|
6
6
|
license = "MIT"
|
|
@@ -21,7 +21,7 @@ full = [
|
|
|
21
21
|
]
|
|
22
22
|
dev = [
|
|
23
23
|
"hypothesis >=6.97.1, <7",
|
|
24
|
-
"package-dev-tools >=0.8.
|
|
24
|
+
"package-dev-tools >=0.8.1, <1",
|
|
25
25
|
|
|
26
26
|
# types
|
|
27
27
|
"types-PyYaml >=6.0.12.12, <7",
|
|
@@ -316,7 +316,7 @@ class Path(cached_content.Path):
|
|
|
316
316
|
exception_value: BaseException | None,
|
|
317
317
|
traceback: TracebackType | None,
|
|
318
318
|
) -> None:
|
|
319
|
-
if self.
|
|
320
|
-
self.unlink(missing_ok=True)
|
|
321
|
-
else:
|
|
319
|
+
if self.is_dir():
|
|
322
320
|
self.rmtree(missing_ok=True)
|
|
321
|
+
else:
|
|
322
|
+
self.unlink(missing_ok=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superpathlib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.14
|
|
4
4
|
Summary: Extended Pathlib
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,7 +18,7 @@ Requires-Dist: PyYaml<7,>=6.0.1; extra == "full"
|
|
|
18
18
|
Requires-Dist: xattr<2,>=0.10.1; extra == "full"
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: hypothesis<7,>=6.97.1; extra == "dev"
|
|
21
|
-
Requires-Dist: package-dev-tools<1,>=0.8.
|
|
21
|
+
Requires-Dist: package-dev-tools<1,>=0.8.1; extra == "dev"
|
|
22
22
|
Requires-Dist: types-PyYaml<7,>=6.0.12.12; extra == "dev"
|
|
23
23
|
Requires-Dist: dirhash<1,>=0.2.1; extra == "dev"
|
|
24
24
|
Requires-Dist: numpy<3,>=1.26.4; extra == "dev"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
from collections.abc import Callable
|
|
2
3
|
|
|
3
4
|
import pytest
|
|
@@ -20,6 +21,14 @@ def test_tempfile() -> None:
|
|
|
20
21
|
assert not path.exists()
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
def test_context_manager_deletes_fifo(path: Path) -> None:
|
|
25
|
+
path.unlink()
|
|
26
|
+
os.mkfifo(path)
|
|
27
|
+
with path:
|
|
28
|
+
assert path.is_fifo()
|
|
29
|
+
assert not path.exists()
|
|
30
|
+
|
|
31
|
+
|
|
23
32
|
def test_deletion(path: Path) -> None:
|
|
24
33
|
path.unlink()
|
|
25
34
|
assert not path.exists()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|