superpathlib 2.0.11__tar.gz → 2.0.13__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.
Files changed (30) hide show
  1. {superpathlib-2.0.11/src/superpathlib.egg-info → superpathlib-2.0.13}/PKG-INFO +2 -2
  2. {superpathlib-2.0.11 → superpathlib-2.0.13}/pyproject.toml +2 -2
  3. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/encryption.py +8 -6
  4. {superpathlib-2.0.11 → superpathlib-2.0.13/src/superpathlib.egg-info}/PKG-INFO +2 -2
  5. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib.egg-info/requires.txt +1 -1
  6. {superpathlib-2.0.11 → superpathlib-2.0.13}/LICENSE +0 -0
  7. {superpathlib-2.0.11 → superpathlib-2.0.13}/README.md +0 -0
  8. {superpathlib-2.0.11 → superpathlib-2.0.13}/setup.cfg +0 -0
  9. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/__init__.py +0 -0
  10. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/base.py +0 -0
  11. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/cached_content.py +0 -0
  12. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/common_folders.py +0 -0
  13. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/content_properties.py +0 -0
  14. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/extra_functionality.py +0 -0
  15. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/metadata_properties.py +0 -0
  16. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/override.py +0 -0
  17. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/path.py +0 -0
  18. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/py.typed +0 -0
  19. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/tags.py +0 -0
  20. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib/utils.py +0 -0
  21. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib.egg-info/SOURCES.txt +0 -0
  22. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib.egg-info/dependency_links.txt +0 -0
  23. {superpathlib-2.0.11 → superpathlib-2.0.13}/src/superpathlib.egg-info/top_level.txt +0 -0
  24. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_cached_content.py +0 -0
  25. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_common_folders.py +0 -0
  26. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_content.py +0 -0
  27. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_encrypted_content.py +0 -0
  28. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_functionality.py +0 -0
  29. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_inheritance.py +0 -0
  30. {superpathlib-2.0.11 → superpathlib-2.0.13}/tests/test_metadata.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superpathlib
3
- Version: 2.0.11
3
+ Version: 2.0.13
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.7.1; extra == "dev"
21
+ Requires-Dist: package-dev-tools<1,>=0.8.0; 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.11"
3
+ version = "2.0.13"
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.7.1, <1",
24
+ "package-dev-tools >=0.8.0, <1",
25
25
 
26
26
  # types
27
27
  "types-PyYaml >=6.0.12.12, <7",
@@ -1,6 +1,8 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import getpass
3
4
  import os
5
+ import shlex
4
6
  import subprocess
5
7
  from functools import cached_property
6
8
  from typing import Any
@@ -21,12 +23,12 @@ class Path(extra_functionality.Path):
21
23
  class EncryptedPath(Path):
22
24
  @cached_property
23
25
  def password(self) -> str: # pragma: nocover
24
- if "GITHUB_ACTION" in os.environ:
25
- password = os.environ.get("FILE_ENCRYPTION", "github_action_password")
26
- else:
27
- command = 'ksshaskpass -- "Enter passphrase for file encryption: "'
28
- password = subprocess.getoutput(command) # noqa: S605
29
- return password
26
+ if password := os.environ.get("FILE_ENCRYPTION_PASSWORD"):
27
+ return password
28
+ if askpass := os.environ.get("FILE_ENCRYPTION_ASKPASS"):
29
+ command = shlex.split(askpass)
30
+ return subprocess.check_output(command).decode().strip() # noqa: S603
31
+ return getpass.getpass("Enter passphrase for file encryption: ")
30
32
 
31
33
  @property
32
34
  def encryption_command(self) -> tuple[str, ...]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superpathlib
3
- Version: 2.0.11
3
+ Version: 2.0.13
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.7.1; extra == "dev"
21
+ Requires-Dist: package-dev-tools<1,>=0.8.0; 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"
@@ -3,7 +3,7 @@ typing_extensions<5,>=4.0
3
3
 
4
4
  [dev]
5
5
  hypothesis<7,>=6.97.1
6
- package-dev-tools<1,>=0.7.1
6
+ package-dev-tools<1,>=0.8.0
7
7
  types-PyYaml<7,>=6.0.12.12
8
8
  dirhash<1,>=0.2.1
9
9
  numpy<3,>=1.26.4
File without changes
File without changes
File without changes