superpathlib 2.0.5__tar.gz → 2.0.7__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.5/src/superpathlib.egg-info → superpathlib-2.0.7}/PKG-INFO +1 -1
- {superpathlib-2.0.5 → superpathlib-2.0.7}/pyproject.toml +12 -7
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/encryption.py +1 -1
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/extra_functionality.py +7 -2
- {superpathlib-2.0.5 → superpathlib-2.0.7/src/superpathlib.egg-info}/PKG-INFO +1 -1
- {superpathlib-2.0.5 → superpathlib-2.0.7}/LICENSE +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/README.md +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/setup.cfg +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/__init__.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/base.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/cached_content.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/common_folders.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/content_properties.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/metadata_properties.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/override.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/path.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/py.typed +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/tags.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib/utils.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib.egg-info/SOURCES.txt +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib.egg-info/dependency_links.txt +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib.egg-info/requires.txt +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/src/superpathlib.egg-info/top_level.txt +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_cached_content.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_common_folders.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_content.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_encrypted_content.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_functionality.py +0 -0
- {superpathlib-2.0.5 → superpathlib-2.0.7}/tests/test_metadata.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "superpathlib"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.7"
|
|
4
4
|
description = "Extended Pathlib"
|
|
5
5
|
authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
|
|
6
6
|
license = {text = "MIT"}
|
|
@@ -69,18 +69,23 @@ fix = true
|
|
|
69
69
|
[tool.ruff.lint]
|
|
70
70
|
select = ["ALL"]
|
|
71
71
|
ignore = [
|
|
72
|
-
"ANN101",
|
|
73
|
-
"ANN102",
|
|
74
|
-
"ANN401",
|
|
75
|
-
"D",
|
|
72
|
+
"ANN101", # annotate self
|
|
73
|
+
"ANN102", # annotate cls
|
|
74
|
+
"ANN401", # annotated with Any
|
|
75
|
+
"D", # docstrings
|
|
76
|
+
"G004", # logging f-string
|
|
76
77
|
]
|
|
77
78
|
|
|
78
79
|
[tool.ruff.lint.isort]
|
|
79
80
|
known-first-party = ["src"]
|
|
80
81
|
|
|
81
82
|
[tool.ruff.lint.per-file-ignores]
|
|
82
|
-
"__init__.py" = [
|
|
83
|
-
"
|
|
83
|
+
"__init__.py" = [
|
|
84
|
+
"F401" # unused import
|
|
85
|
+
]
|
|
86
|
+
"tests/*" = [
|
|
87
|
+
"S101" # assert used
|
|
88
|
+
]
|
|
84
89
|
|
|
85
90
|
[tool.setuptools.package-data]
|
|
86
91
|
superpathlib = ["py.typed"]
|
|
@@ -22,7 +22,7 @@ class EncryptedPath(Path):
|
|
|
22
22
|
@cached_property
|
|
23
23
|
def password(self) -> str: # pragma: nocover
|
|
24
24
|
if "GITHUB_ACTION" in os.environ:
|
|
25
|
-
password = "github_action_password"
|
|
25
|
+
password = os.environ.get("FILE_ENCRYPTION", "github_action_password")
|
|
26
26
|
else:
|
|
27
27
|
command = 'ksshaskpass -- "Enter passphrase for file encryption: "'
|
|
28
28
|
password = subprocess.getoutput(command) # noqa: S605
|
|
@@ -187,7 +187,7 @@ class Path(cached_content.Path):
|
|
|
187
187
|
updated_content = value
|
|
188
188
|
return updated_content
|
|
189
189
|
|
|
190
|
-
def find(
|
|
190
|
+
def find(
|
|
191
191
|
self: PathType,
|
|
192
192
|
condition: Callable[[PathType], bool] | None = None,
|
|
193
193
|
exclude: Callable[[PathType], bool] = lambda _: False,
|
|
@@ -306,7 +306,12 @@ class Path(cached_content.Path):
|
|
|
306
306
|
def __enter__(self: PathType) -> PathType:
|
|
307
307
|
return self
|
|
308
308
|
|
|
309
|
-
def __exit__(
|
|
309
|
+
def __exit__(
|
|
310
|
+
self,
|
|
311
|
+
exception_type: type[BaseException] | None,
|
|
312
|
+
exception_value: BaseException | None,
|
|
313
|
+
traceback: TracebackType | None,
|
|
314
|
+
) -> None:
|
|
310
315
|
if self.is_file():
|
|
311
316
|
self.unlink(missing_ok=True)
|
|
312
317
|
else:
|
|
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
|