custom-python-logger 2.0.2__tar.gz → 2.0.3__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.
- {custom_python_logger-2.0.2/custom_python_logger.egg-info → custom_python_logger-2.0.3}/PKG-INFO +1 -1
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/logger.py +6 -1
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3/custom_python_logger.egg-info}/PKG-INFO +1 -1
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/setup.py +1 -1
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/LICENSE +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/MANIFEST.in +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/README.md +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/__init__.py +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/consts.py +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/usage_example.py +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/SOURCES.txt +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/dependency_links.txt +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/requires.txt +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/top_level.txt +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/pyproject.toml +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/requirements.txt +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/setup.cfg +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_logger.py +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_logger_pytest.py +0 -0
- {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_usage_example_pytest.py +0 -0
|
@@ -29,7 +29,12 @@ def yaml_pretty_format(
|
|
|
29
29
|
def get_project_path_by_file(markers: Optional[list[str]] = None) -> Path:
|
|
30
30
|
if not markers:
|
|
31
31
|
markers = ["pyproject.toml", "setup.py", ".git", "requirements.txt", ".gitignore", ".github", ".gitlab"]
|
|
32
|
-
path = Path(__file__).resolve()
|
|
32
|
+
path = Path(__file__).resolve() if "__file__" in globals() else Path.cwd().resolve()
|
|
33
|
+
|
|
34
|
+
for marker in markers:
|
|
35
|
+
if (path / marker).exists():
|
|
36
|
+
return path
|
|
37
|
+
|
|
33
38
|
for parent in path.parents:
|
|
34
39
|
for marker in markers:
|
|
35
40
|
if (parent / marker).exists():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/usage_example.py
RENAMED
|
File without changes
|
{custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_usage_example_pytest.py
RENAMED
|
File without changes
|