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.
Files changed (20) hide show
  1. {custom_python_logger-2.0.2/custom_python_logger.egg-info → custom_python_logger-2.0.3}/PKG-INFO +1 -1
  2. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/logger.py +6 -1
  3. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3/custom_python_logger.egg-info}/PKG-INFO +1 -1
  4. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/setup.py +1 -1
  5. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/LICENSE +0 -0
  6. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/MANIFEST.in +0 -0
  7. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/README.md +0 -0
  8. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/__init__.py +0 -0
  9. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/consts.py +0 -0
  10. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger/usage_example.py +0 -0
  11. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/SOURCES.txt +0 -0
  12. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/dependency_links.txt +0 -0
  13. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/requires.txt +0 -0
  14. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/custom_python_logger.egg-info/top_level.txt +0 -0
  15. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/pyproject.toml +0 -0
  16. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/requirements.txt +0 -0
  17. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/setup.cfg +0 -0
  18. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_logger.py +0 -0
  19. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_logger_pytest.py +0 -0
  20. {custom_python_logger-2.0.2 → custom_python_logger-2.0.3}/tests/test_usage_example_pytest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: A custom logger with color support and additional features.
5
5
  Home-page: https://github.com/aviz92/custom-python-logger
6
6
  Author: Avi Zaguri
@@ -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():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: custom-python-logger
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: A custom logger with color support and additional features.
5
5
  Home-page: https://github.com/aviz92/custom-python-logger
6
6
  Author: Avi Zaguri
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '2.0.2'
3
+ package_version = '2.0.3'
4
4
 
5
5
  package_name = 'custom-python-logger'
6
6
  package_description = 'A custom logger with color support and additional features.'