python-base-toolkit 0.0.12__tar.gz → 0.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.
Files changed (50) hide show
  1. {python_base_toolkit-0.0.12/python_base_toolkit.egg-info → python_base_toolkit-0.0.14}/PKG-INFO +1 -1
  2. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/pyproject.toml +1 -1
  3. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/path_utils.py +10 -5
  4. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14/python_base_toolkit.egg-info}/PKG-INFO +1 -1
  5. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/LICENSE +0 -0
  6. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/MANIFEST.in +0 -0
  7. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/README.md +0 -0
  8. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/Taskfile.yml +0 -0
  9. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/__init__.py +0 -0
  10. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/base_structures/__init__.py +0 -0
  11. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/base_structures/base_enum.py +0 -0
  12. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/default.yml +0 -0
  13. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/dependencies.yml +0 -0
  14. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/deploy.yml +0 -0
  15. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/docker.yml +0 -0
  16. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/includes.yml +0 -0
  17. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/install.yml +0 -0
  18. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/lint.yml +0 -0
  19. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/ci/task_files/vars.yml +0 -0
  20. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/consts/__init__.py +0 -0
  21. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/consts/operating_system.py +0 -0
  22. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/consts/units/__init__.py +0 -0
  23. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/consts/units/binary_units.py +0 -0
  24. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/consts/units/time_units.py +0 -0
  25. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/decorators/__init__.py +0 -0
  26. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/decorators/telemetry.py +0 -0
  27. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/decorators/timer.py +0 -0
  28. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/instances/__init__.py +0 -0
  29. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/instances/instance_manager.py +0 -0
  30. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/scripts/__init__.py +0 -0
  31. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/scripts/remove_build_files.py +0 -0
  32. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/__init__.py +0 -0
  33. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/data_serialization.py +0 -0
  34. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/date_time.py +0 -0
  35. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/execute.py +0 -0
  36. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/file_utils.py +0 -0
  37. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/generate_id.py +0 -0
  38. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/logo.py +0 -0
  39. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/network.py +0 -0
  40. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/pretty_print.py +0 -0
  41. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/pycache.py +0 -0
  42. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/random_utils.py +0 -0
  43. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/shorten_url.py +0 -0
  44. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit/utils/venv_details.py +0 -0
  45. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit.egg-info/SOURCES.txt +0 -0
  46. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit.egg-info/dependency_links.txt +0 -0
  47. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit.egg-info/not-zip-safe +0 -0
  48. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit.egg-info/requires.txt +0 -0
  49. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/python_base_toolkit.egg-info/top_level.txt +0 -0
  50. {python_base_toolkit-0.0.12 → python_base_toolkit-0.0.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-base-toolkit
3
- Version: 0.0.12
3
+ Version: 0.0.14
4
4
  Summary: A Python package for managing pytest plugins.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-base-toolkit"
7
- version = "0.0.12"
7
+ version = "0.0.14"
8
8
  description = "A Python package for managing pytest plugins."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -12,11 +12,16 @@ def get_project_path_by_name(project_name: str) -> str:
12
12
  )
13
13
 
14
14
 
15
- def get_project_path_by_file(markers: set = None) -> Path:
16
- markers = markers or {".git", ".gitignore", "setup.py", "pyproject.toml", "LICENSE", "README.md"}
15
+ def get_project_path_by_file(markers: set[str] | None = None) -> Path:
16
+ markers = markers or {".git", "setup.py", "pyproject.toml", "LICENSE", "README.md"}
17
+ path = Path(__file__).resolve() if "__file__" in globals() else Path.cwd().resolve()
18
+
17
19
  for marker in markers:
18
- path = Path(__file__).resolve()
19
- for parent in path.parents:
20
+ if (path / marker).exists():
21
+ return path
22
+
23
+ for parent in path.parents:
24
+ for marker in markers:
20
25
  if (parent / marker).exists():
21
26
  return parent
22
- raise RuntimeError(f'Project root with markers "{markers}" not found.')
27
+ raise RuntimeError(f'Project root with one of the markers: "{markers}" not found.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-base-toolkit
3
- Version: 0.0.12
3
+ Version: 0.0.14
4
4
  Summary: A Python package for managing pytest plugins.
5
5
  Author: Avi Zaguri
6
6
  License: MIT