wexample-filestate-python 0.0.13__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 (21) hide show
  1. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/PKG-INFO +8 -8
  2. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/README.md +4 -4
  3. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/pyproject.toml +4 -4
  4. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/workdir/python_package_workdir.py +2 -9
  5. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python.egg-info/PKG-INFO +8 -8
  6. wexample_filestate_python-0.0.14/wexample_filestate_python.egg-info/requires.txt +7 -0
  7. wexample_filestate_python-0.0.13/wexample_filestate_python.egg-info/requires.txt +0 -7
  8. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/setup.cfg +0 -0
  9. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/__init__.py +0 -0
  10. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/config_value/__init__.py +0 -0
  11. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/config_value/python_package_readme_config_value.py +0 -0
  12. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/const/__init__.py +0 -0
  13. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/const/name_pattern.py +0 -0
  14. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/helpers/__init__.py +0 -0
  15. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/helpers/package.py +0 -0
  16. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/workdir/__init__.py +0 -0
  17. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/workdir/python_packages_suite_workdir.py +0 -0
  18. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python/workdir/python_workdir.py +0 -0
  19. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python.egg-info/SOURCES.txt +0 -0
  20. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python.egg-info/dependency_links.txt +0 -0
  21. {wexample_filestate_python-0.0.13 → wexample_filestate_python-0.0.14}/wexample_filestate_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: wexample-filestate-python
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Helpers for Python.
5
5
  Author-email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -14,15 +14,15 @@ Requires-Dist: pip-tools
14
14
  Requires-Dist: pydantic
15
15
  Requires-Dist: pytest
16
16
  Requires-Dist: python-dotenv
17
- Requires-Dist: wexample-app==0.0.18
18
- Requires-Dist: wexample-filestate-git==0.0.13
19
- Requires-Dist: wexample-filestate==0.0.21
17
+ Requires-Dist: wexample-app==0.0.19
18
+ Requires-Dist: wexample-filestate-git==0.0.14
19
+ Requires-Dist: wexample-filestate==0.0.22
20
20
 
21
21
  # Filestate Python
22
22
 
23
23
  Helpers for Python.
24
24
 
25
- Version: 0.0.13
25
+ Version: 0.0.14
26
26
 
27
27
  ## Requirements
28
28
 
@@ -34,9 +34,9 @@ Version: 0.0.13
34
34
  - pydantic
35
35
  - pytest
36
36
  - python-dotenv
37
- - wexample-app==0.0.18
38
- - wexample-filestate-git==0.0.13
39
- - wexample-filestate==0.0.21
37
+ - wexample-app==0.0.19
38
+ - wexample-filestate-git==0.0.14
39
+ - wexample-filestate==0.0.22
40
40
 
41
41
  ## Installation
42
42
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Helpers for Python.
4
4
 
5
- Version: 0.0.13
5
+ Version: 0.0.14
6
6
 
7
7
  ## Requirements
8
8
 
@@ -14,9 +14,9 @@ Version: 0.0.13
14
14
  - pydantic
15
15
  - pytest
16
16
  - python-dotenv
17
- - wexample-app==0.0.18
18
- - wexample-filestate-git==0.0.13
19
- - wexample-filestate==0.0.21
17
+ - wexample-app==0.0.19
18
+ - wexample-filestate-git==0.0.14
19
+ - wexample-filestate==0.0.22
20
20
 
21
21
  ## Installation
22
22
 
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "wexample-filestate-python"
10
- version = "0.0.13"
10
+ version = "0.0.14"
11
11
  description = "Helpers for Python."
12
12
  authors = [
13
13
  { name = "weeger", email = "contact@wexample.com" },
@@ -23,9 +23,9 @@ dependencies = [
23
23
  "pydantic",
24
24
  "pytest",
25
25
  "python-dotenv",
26
- "wexample-app==0.0.18",
27
- "wexample-filestate-git==0.0.13",
28
- "wexample-filestate==0.0.21",
26
+ "wexample-app==0.0.19",
27
+ "wexample-filestate-git==0.0.14",
28
+ "wexample-filestate==0.0.22",
29
29
  ]
30
30
 
31
31
  [project.readme]
@@ -1,21 +1,16 @@
1
1
  from typing import Optional
2
2
 
3
-
4
3
  from wexample_config.const.types import DictConfig
5
4
  from wexample_filestate_python.workdir.python_workdir import PythonWorkdir
6
5
  from wexample_helpers.helpers.array import array_dict_get_by
7
6
 
8
7
 
9
-
10
8
  class PythonPackageWorkdir(PythonWorkdir):
11
9
  _project_info_cache = None
12
10
 
13
- def get_project_info(self, force: bool = False) -> dict:
11
+ def get_project_info(self, force: bool = False, default: dict = {}) -> dict:
14
12
  """
15
13
  Fetch the data from the pyproject.toml file.
16
-
17
- :param force: If True, forces reloading the data even if it was previously cached.
18
- :return: A dictionary representing the contents of pyproject.toml.
19
14
  """
20
15
  # Return cached data if available and force is False
21
16
  if not force and self._project_info_cache is not None:
@@ -24,7 +19,6 @@ class PythonPackageWorkdir(PythonWorkdir):
24
19
  from wexample_helpers.helpers.file import file_read
25
20
  import tomli
26
21
 
27
-
28
22
  project_path = self.get_resolved()
29
23
  pyproject_file = f"{project_path}pyproject.toml"
30
24
 
@@ -35,8 +29,7 @@ class PythonPackageWorkdir(PythonWorkdir):
35
29
  # Store in cache
36
30
  self._project_info_cache = pyproject_data
37
31
  except FileNotFoundError:
38
- self.io.error(f"pyproject.toml file not found at {pyproject_file}", fatal=True)
39
- return {}
32
+ return default
40
33
 
41
34
  return pyproject_data
42
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: wexample-filestate-python
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Helpers for Python.
5
5
  Author-email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -14,15 +14,15 @@ Requires-Dist: pip-tools
14
14
  Requires-Dist: pydantic
15
15
  Requires-Dist: pytest
16
16
  Requires-Dist: python-dotenv
17
- Requires-Dist: wexample-app==0.0.18
18
- Requires-Dist: wexample-filestate-git==0.0.13
19
- Requires-Dist: wexample-filestate==0.0.21
17
+ Requires-Dist: wexample-app==0.0.19
18
+ Requires-Dist: wexample-filestate-git==0.0.14
19
+ Requires-Dist: wexample-filestate==0.0.22
20
20
 
21
21
  # Filestate Python
22
22
 
23
23
  Helpers for Python.
24
24
 
25
- Version: 0.0.13
25
+ Version: 0.0.14
26
26
 
27
27
  ## Requirements
28
28
 
@@ -34,9 +34,9 @@ Version: 0.0.13
34
34
  - pydantic
35
35
  - pytest
36
36
  - python-dotenv
37
- - wexample-app==0.0.18
38
- - wexample-filestate-git==0.0.13
39
- - wexample-filestate==0.0.21
37
+ - wexample-app==0.0.19
38
+ - wexample-filestate-git==0.0.14
39
+ - wexample-filestate==0.0.22
40
40
 
41
41
  ## Installation
42
42
 
@@ -0,0 +1,7 @@
1
+ pip-tools
2
+ pydantic
3
+ pytest
4
+ python-dotenv
5
+ wexample-app==0.0.19
6
+ wexample-filestate-git==0.0.14
7
+ wexample-filestate==0.0.22
@@ -1,7 +0,0 @@
1
- pip-tools
2
- pydantic
3
- pytest
4
- python-dotenv
5
- wexample-app==0.0.18
6
- wexample-filestate-git==0.0.13
7
- wexample-filestate==0.0.21