penwings 0.3.0.dev1__tar.gz → 0.3.0.dev3__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 (22) hide show
  1. {penwings-0.3.0.dev1/src/penwings.egg-info → penwings-0.3.0.dev3}/PKG-INFO +1 -1
  2. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/paths/project_paths.py +5 -5
  3. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3/src/penwings.egg-info}/PKG-INFO +1 -1
  4. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/.gitignore +0 -0
  5. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/LICENSE +0 -0
  6. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/README.md +0 -0
  7. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/pyproject.toml +0 -0
  8. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/setup.cfg +0 -0
  9. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/__init__.py +0 -0
  10. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/exploration/__init__.py +0 -0
  11. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/io/__init__.py +0 -0
  12. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/io/cache.py +0 -0
  13. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/modeling/__init__.py +0 -0
  14. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/paths/__init__.py +0 -0
  15. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/utils/__init__.py +0 -0
  16. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/utils/_decorators.py +0 -0
  17. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings/utils/_typing.py +0 -0
  18. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings.egg-info/SOURCES.txt +0 -0
  19. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings.egg-info/dependency_links.txt +0 -0
  20. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings.egg-info/requires.txt +0 -0
  21. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/src/penwings.egg-info/top_level.txt +0 -0
  22. {penwings-0.3.0.dev1 → penwings-0.3.0.dev3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: penwings
3
- Version: 0.3.0.dev1
3
+ Version: 0.3.0.dev3
4
4
  Summary: Lightweight library to handle data and reproduce workflows
5
5
  Author-email: Raf Blanckaert <r.blanckaert@outlook.com>
6
6
  License-Expression: MIT
@@ -180,8 +180,7 @@ class ProjectPaths(PathBase, PathMixin):
180
180
  • dictionary-style access to paths
181
181
 
182
182
  Root detection searches the current working directory and its parents
183
- for common project markers such as ``data/``, ``models/``, ``notebooks/``,
184
- ``configs/``, ``README.md`` or ``pyproject.toml``.
183
+ for common project marker ``pyproject.toml``.
185
184
 
186
185
  Parameters
187
186
  ----------
@@ -402,7 +401,8 @@ class ConfigPaths(PathBase, PathMixin):
402
401
 
403
402
  Parameters
404
403
  ----------
405
- config : str or pathlib.Path
404
+ config : str or pathlib.Path, optional
405
+ Default location is in ``config.json`` next to the pyproject.toml file
406
406
  Path to the JSON configuration file. The JSON must contain
407
407
  a top-level `"paths"` key mapping attribute names to
408
408
  relative paths. Example:
@@ -453,7 +453,7 @@ class ConfigPaths(PathBase, PathMixin):
453
453
 
454
454
  def __init__(
455
455
  self,
456
- config: str | Path,
456
+ config: str | Path = None,
457
457
  root: Optional[str | Path] = None,
458
458
  create: bool = True,
459
459
  ):
@@ -466,7 +466,7 @@ class ConfigPaths(PathBase, PathMixin):
466
466
  self._create_dirs()
467
467
 
468
468
  def _load_config(self, config):
469
- config_path = Path(config)
469
+ config_path = self._detect_root() / "config.json" if config is None else Path(config)
470
470
  if not config_path.exists():
471
471
  raise ValueError(f"Config file not found: {config_path}")
472
472
  if not config_path.suffix == ".json":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: penwings
3
- Version: 0.3.0.dev1
3
+ Version: 0.3.0.dev3
4
4
  Summary: Lightweight library to handle data and reproduce workflows
5
5
  Author-email: Raf Blanckaert <r.blanckaert@outlook.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes