keep-github-workflows-active 2.1.1__tar.gz → 2.1.2__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 (66) hide show
  1. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.github/workflows/release.yml +1 -1
  2. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/CHANGELOG.md +12 -0
  3. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/PKG-INFO +6 -5
  4. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/pyproject.toml +6 -5
  5. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/_utils.py +4 -38
  6. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/toml_config.py +3 -25
  7. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__init__conf__.py +1 -1
  8. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.devcontainer/devcontainer.json +0 -0
  9. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.devcontainer/settings.json +0 -0
  10. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.env.example +0 -0
  11. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.github/dependabot.yml +0 -0
  12. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.github/workflows/ci.yml +0 -0
  13. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.github/workflows/codeql.yml +0 -0
  14. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.github/workflows/do_not_change_ci_yml.md +0 -0
  15. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.gitignore +0 -0
  16. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.qlty/qlty.toml +0 -0
  17. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/.snyk +0 -0
  18. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/CLAUDE.md +0 -0
  19. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/CONTRIBUTING.md +0 -0
  20. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/DEVELOPMENT.md +0 -0
  21. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/INSTALL.md +0 -0
  22. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/LICENSE +0 -0
  23. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/Makefile +0 -0
  24. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/README.md +0 -0
  25. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/codecov.yml +0 -0
  26. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/concept.md +0 -0
  27. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/docs/systemdesign/SECURITY.md +0 -0
  28. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/docs/systemdesign/module_reference.md +0 -0
  29. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/notebooks/Quickstart.ipynb +0 -0
  30. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/reset_git_history.sh +0 -0
  31. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/__init__.py +0 -0
  32. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/__main__.py +0 -0
  33. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/build.py +0 -0
  34. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/bump.py +0 -0
  35. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/bump_major.py +0 -0
  36. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/bump_minor.py +0 -0
  37. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/bump_patch.py +0 -0
  38. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/bump_version.py +0 -0
  39. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/clean.py +0 -0
  40. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/cli.py +0 -0
  41. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/dependencies.py +0 -0
  42. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/dev.py +0 -0
  43. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/help.py +0 -0
  44. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/install.py +0 -0
  45. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/menu.py +0 -0
  46. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/push.py +0 -0
  47. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/release.py +0 -0
  48. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/run_cli.py +0 -0
  49. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/target_metadata.py +0 -0
  50. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/test.py +0 -0
  51. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/scripts/version_current.py +0 -0
  52. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__init__.py +0 -0
  53. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/__main__.py +0 -0
  54. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/behaviors.py +0 -0
  55. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/cli.py +0 -0
  56. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/doctest.env +0 -0
  57. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/keep_github_workflow_active.py +0 -0
  58. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/py.typed +0 -0
  59. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/src/keep_github_workflows_active/sanitization.py +0 -0
  60. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/conftest.py +0 -0
  61. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_behaviors.py +0 -0
  62. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_cli.py +0 -0
  63. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_metadata.py +0 -0
  64. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_module_entry.py +0 -0
  65. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_sanitization.py +0 -0
  66. {keep_github_workflows_active-2.1.1 → keep_github_workflows_active-2.1.2}/tests/test_scripts.py +0 -0
@@ -37,7 +37,7 @@ jobs:
37
37
  attestations: false
38
38
  skip-existing: true
39
39
  - name: Upload artifacts
40
- uses: actions/upload-artifact@v5
40
+ uses: actions/upload-artifact@v6
41
41
  with:
42
42
  name: dist
43
43
  path: dist/*
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.2] - 2025-12-15
4
+
5
+ ### Changed
6
+ - Migrated scripts to use `rtoml` for TOML parsing
7
+
8
+ ### Dependencies
9
+ - Bumped `lib_cli_exit_tools` to `>=2.2.2`
10
+ - Bumped `ruff` to `>=0.14.9`
11
+ - Bumped `textual` to `>=6.9.0`
12
+ - Bumped `import-linter` to `>=2.9`
13
+ - Added `rtoml>=0.13.0` as dev dependency for improved TOML handling
14
+
3
15
  ## [2.1.1] - 2025-12-08
4
16
 
5
17
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keep_github_workflows_active
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: Template for python apps with registered cli commands
5
5
  Project-URL: Homepage, https://github.com/bitranox/keep_github_workflows_active
6
6
  Project-URL: Repository, https://github.com/bitranox/keep_github_workflows_active.git
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Typing :: Typed
18
18
  Requires-Python: >=3.13
19
- Requires-Dist: lib-cli-exit-tools>=2.1.1
19
+ Requires-Dist: lib-cli-exit-tools>=2.2.2
20
20
  Requires-Dist: pydantic>=2.12.5
21
21
  Requires-Dist: requests>=2.32.5
22
22
  Requires-Dist: rich-click>=1.9.4
@@ -24,13 +24,14 @@ Provides-Extra: dev
24
24
  Requires-Dist: bandit>=1.9.2; extra == 'dev'
25
25
  Requires-Dist: build>=1.3.0; extra == 'dev'
26
26
  Requires-Dist: codecov-cli>=11.2.6; extra == 'dev'
27
- Requires-Dist: import-linter>=2.8; extra == 'dev'
27
+ Requires-Dist: import-linter>=2.9; extra == 'dev'
28
28
  Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
29
29
  Requires-Dist: pyright>=1.1.407; extra == 'dev'
30
30
  Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
31
31
  Requires-Dist: pytest>=9.0.2; extra == 'dev'
32
- Requires-Dist: ruff>=0.14.8; extra == 'dev'
33
- Requires-Dist: textual>=6.8.0; extra == 'dev'
32
+ Requires-Dist: rtoml>=0.13.0; extra == 'dev'
33
+ Requires-Dist: ruff>=0.14.9; extra == 'dev'
34
+ Requires-Dist: textual>=6.9.0; extra == 'dev'
34
35
  Requires-Dist: twine>=6.2.0; extra == 'dev'
35
36
  Description-Content-Type: text/markdown
36
37
 
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "keep_github_workflows_active"
3
- version = "2.1.1"
3
+ version = "2.1.2"
4
4
  description = "Template for python apps with registered cli commands"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
7
- dependencies = ["rich-click>=1.9.4", "lib_cli_exit_tools>=2.1.1", "requests>=2.32.5", "pydantic>=2.12.5"]
7
+ dependencies = ["rich-click>=1.9.4", "lib_cli_exit_tools>=2.2.2", "requests>=2.32.5", "pydantic>=2.12.5"]
8
8
  license = { text = "MIT" }
9
9
  authors = [{ name = "bitranox", email = "bitranox@gmail.com" }]
10
10
  keywords = ["logging", "rich", "cli", "terminal", "ansi"]
@@ -26,15 +26,16 @@ Issues = "https://github.com/bitranox/keep_github_workflows_active/issues"
26
26
  dev = [
27
27
  "pytest>=9.0.2",
28
28
  "pytest-cov>=7.0.0",
29
- "ruff>=0.14.8",
29
+ "ruff>=0.14.9",
30
30
  "pyright>=1.1.407",
31
31
  "bandit>=1.9.2",
32
32
  "build>=1.3.0",
33
33
  "twine>=6.2.0",
34
34
  "codecov-cli>=11.2.6",
35
35
  "pip-audit>=2.10.0",
36
- "textual>=6.8.0",
37
- "import-linter>=2.8"
36
+ "textual>=6.9.0",
37
+ "import-linter>=2.9",
38
+ "rtoml>=0.13.0"
38
39
  ]
39
40
 
40
41
  [project.scripts]
@@ -35,6 +35,8 @@ from subprocess import CompletedProcess
35
35
  from typing import Any, Mapping, Sequence, cast
36
36
  from urllib.parse import urlparse
37
37
 
38
+ import rtoml
39
+
38
40
 
39
41
  @dataclass
40
42
  class RunResult:
@@ -118,41 +120,6 @@ class ProjectMetadata:
118
120
 
119
121
  _PYPROJECT_DATA_CACHE: dict[Path, dict[str, object]] = {}
120
122
  _METADATA_CACHE: dict[Path, ProjectMetadata] = {}
121
- _toml_module: Any = None
122
-
123
-
124
- def _get_toml_module() -> Any:
125
- """Return tomllib (Python 3.11+) or tomli backport (Python 3.9-3.10).
126
-
127
- Purpose
128
- -------
129
- Ensure TOML parsing works across Python 3.9+ by using the standard
130
- library tomllib on 3.11+ and falling back to the tomli package
131
- on earlier versions.
132
-
133
- Returns
134
- -------
135
- module
136
- Either tomllib or tomli with identical interfaces.
137
-
138
- Raises
139
- ------
140
- ModuleNotFoundError
141
- If neither tomllib nor tomli can be imported.
142
- """
143
- global _toml_module
144
- if _toml_module is not None:
145
- return _toml_module
146
-
147
- # Use tomllib (Python 3.11+) or tomli backport (Python 3.9-3.10)
148
- # Both have the same interface, so we can treat them interchangeably
149
- try:
150
- import tomllib as module # type: ignore[import-not-found]
151
- except ModuleNotFoundError:
152
- import tomli as module # type: ignore[import-not-found,no-redef]
153
-
154
- _toml_module = module
155
- return module
156
123
 
157
124
 
158
125
  def run(
@@ -250,10 +217,9 @@ def _load_pyproject(pyproject: Path) -> dict[str, object]:
250
217
  if cached is not None:
251
218
  return cached
252
219
  raw_text = path.read_text(encoding="utf-8")
253
- toml_module = _get_toml_module()
254
220
  try:
255
- parsed_obj = toml_module.loads(raw_text)
256
- except toml_module.TOMLDecodeError as exc: # pragma: no cover - invalid pyproject fails fast
221
+ parsed_obj = rtoml.loads(raw_text)
222
+ except rtoml.TomlParsingError as exc: # pragma: no cover - invalid pyproject fails fast
257
223
  msg = f"Unable to parse {path}: {exc}"
258
224
  raise ValueError(msg) from exc
259
225
  data = {str(key): value for key, value in parsed_obj.items()}
@@ -8,9 +8,10 @@ from __future__ import annotations
8
8
 
9
9
  from dataclasses import dataclass, field
10
10
  from pathlib import Path
11
- from types import ModuleType
12
11
  from typing import Any, cast
13
12
 
13
+ import rtoml
14
+
14
15
  __all__ = [
15
16
  "CleanConfig",
16
17
  "CoverageReportConfig",
@@ -25,28 +26,6 @@ __all__ = [
25
26
  ]
26
27
 
27
28
 
28
- # ---------------------------------------------------------------------------
29
- # TOML Module Loading
30
- # ---------------------------------------------------------------------------
31
-
32
- _toml_module: ModuleType | None = None
33
-
34
-
35
- def _get_toml_module() -> ModuleType:
36
- """Return the TOML parsing module (tomllib or tomli fallback)."""
37
- global _toml_module
38
- if _toml_module is not None:
39
- return _toml_module
40
-
41
- try:
42
- import tomllib as module # type: ignore[import-not-found]
43
- except ImportError:
44
- import tomli as module # type: ignore[import-not-found,no-redef]
45
-
46
- _toml_module = module
47
- return module
48
-
49
-
50
29
  # ---------------------------------------------------------------------------
51
30
  # Helper Functions for Safe Value Extraction
52
31
  # ---------------------------------------------------------------------------
@@ -436,8 +415,7 @@ class PyprojectConfig:
436
415
  def from_path(cls, path: Path) -> PyprojectConfig:
437
416
  """Load configuration from a pyproject.toml file."""
438
417
  try:
439
- toml = _get_toml_module()
440
- data: dict[str, Any] = toml.loads(path.read_text(encoding="utf-8"))
418
+ data: dict[str, Any] = rtoml.loads(path.read_text(encoding="utf-8"))
441
419
  return cls.from_dict(data)
442
420
  except Exception:
443
421
  return cls()
@@ -24,7 +24,7 @@ name = "keep_github_workflows_active"
24
24
  #: Human-readable summary shown in CLI help output.
25
25
  title = "Template for python apps with registered cli commands"
26
26
  #: Current release version pulled from ``pyproject.toml`` by automation.
27
- version = "2.1.1"
27
+ version = "2.1.2"
28
28
  #: Repository homepage presented to users.
29
29
  homepage = "https://github.com/bitranox/keep_github_workflows_active"
30
30
  #: Author attribution surfaced in CLI output.