keep-github-workflows-active 2.3.4__tar.gz → 2.3.5__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 (47) hide show
  1. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/workflows/default_cicd_public.yml +42 -6
  2. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.gitignore +0 -1
  3. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/CHANGELOG.md +13 -0
  4. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/Makefile +2 -2
  5. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/PKG-INFO +35 -5
  6. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/README.md +29 -0
  7. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/pyproject.toml +9 -6
  8. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/__init__conf__.py +1 -1
  9. keep_github_workflows_active-2.3.5/uv.lock +1950 -0
  10. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.devcontainer/devcontainer.json +0 -0
  11. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.devcontainer/settings.json +0 -0
  12. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.env.example +0 -0
  13. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.gitattributes +0 -0
  14. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/actions/extract-metadata/action.yml +0 -0
  15. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/dependabot.yml +0 -0
  16. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/workflows/activate_workflows.yml +0 -0
  17. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/workflows/activate_workflows_priv.yml +0 -0
  18. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/workflows/codeql.yml +0 -0
  19. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.github/workflows/default_release_public.yml +0 -0
  20. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.qlty/qlty.toml +0 -0
  21. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/.snyk +0 -0
  22. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/CONTRIBUTING.md +0 -0
  23. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/DEVELOPMENT.md +0 -0
  24. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/INSTALL.md +0 -0
  25. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/LICENSE +0 -0
  26. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/OPEN-WORK.md +0 -0
  27. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/codecov.yml +0 -0
  28. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/concept.md +0 -0
  29. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/docs/systemdesign/SECURITY.md +0 -0
  30. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/docs/systemdesign/module_reference.md +0 -0
  31. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/notebooks/Quickstart.ipynb +0 -0
  32. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/__init__.py +0 -0
  33. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/__main__.py +0 -0
  34. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/behaviors.py +0 -0
  35. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/cli.py +0 -0
  36. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/doctest.env +0 -0
  37. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/keep_github_workflow_active.py +0 -0
  38. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/py.typed +0 -0
  39. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/sanitization.py +0 -0
  40. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/src/keep_github_workflows_active/typed_click.py +0 -0
  41. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/conftest.py +0 -0
  42. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_behaviors.py +0 -0
  43. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_cli.py +0 -0
  44. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_github_integration.py +0 -0
  45. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_metadata.py +0 -0
  46. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_module_entry.py +0 -0
  47. {keep_github_workflows_active-2.3.4 → keep_github_workflows_active-2.3.5}/tests/test_sanitization.py +0 -0
@@ -124,9 +124,36 @@ jobs:
124
124
  print("No CI system dependencies configured for macOS.")
125
125
 
126
126
  - name: Install dev deps
127
- shell: bash
127
+ shell: python
128
128
  run: |
129
- uv pip install -e .[dev] --system
129
+ import os, subprocess, tempfile
130
+ from pathlib import Path
131
+ try:
132
+ import tomllib
133
+ except ModuleNotFoundError:
134
+ import pip._vendor.tomli as tomllib
135
+
136
+ # Push and pull_request runs install exactly the tree uv.lock pins - versions
137
+ # plus file hashes, which uv verifies - so CI tests what the lock ships and no
138
+ # release published upstream since the last lock refresh can enter the build.
139
+ # The nightly schedule run resolves afresh instead (still inside the project's
140
+ # [tool.uv] exclude-newer cooldown, which uv honours here): it is the canary
141
+ # that reports upstream breakage before a lock refresh adopts it. A project
142
+ # without a uv.lock keeps the unlocked install.
143
+ with open("pyproject.toml", "rb") as f:
144
+ data = tomllib.load(f)
145
+ # Asking uv for an extra the project does not declare is a hard error.
146
+ extra = ["--extra", "dev"] if "dev" in data.get("project", {}).get("optional-dependencies", {}) else []
147
+ target = ["--system"] # setup-python's interpreter; the job runs no venv
148
+ locked = Path("uv.lock").is_file() and os.environ["GITHUB_EVENT_NAME"] != "schedule"
149
+ if locked:
150
+ req = Path(tempfile.mkdtemp()) / "locked-requirements.txt"
151
+ # --locked fails when pyproject.toml changed without a lock refresh.
152
+ subprocess.check_call(["uv", "export", "--locked", "--no-emit-project", *extra, "-o", str(req), "--quiet"])
153
+ subprocess.check_call(["uv", "pip", "install", *target, "-r", str(req)])
154
+ subprocess.check_call(["uv", "pip", "install", *target, "--no-deps", "-e", "."])
155
+ else:
156
+ subprocess.check_call(["uv", "pip", "install", *target, "-e", ".[dev]" if extra else "."])
130
157
 
131
158
  - name: Install CI system dependencies (Windows/choco)
132
159
  if: runner.os == 'Windows'
@@ -236,7 +263,7 @@ jobs:
236
263
  continue-on-error: true
237
264
  shell: python
238
265
  run: |
239
- import subprocess, sys, tempfile
266
+ import os, subprocess, sys, tempfile
240
267
  import rtoml
241
268
  from pathlib import Path
242
269
 
@@ -263,9 +290,18 @@ jobs:
263
290
 
264
291
  tmp = Path(tempfile.mkdtemp())
265
292
  req = tmp / "compiled-requirements.txt"
266
- subprocess.check_call(
267
- ["uv", "pip", "compile", *selector, "pyproject.toml", "-o", str(req), "--quiet"]
268
- )
293
+ # With a uv.lock the install step put exactly the locked tree on the
294
+ # runner, so audit that tree; the schedule canary and lock-less
295
+ # projects resolve pyproject.toml afresh, as their install did.
296
+ if Path("uv.lock").is_file() and os.environ["GITHUB_EVENT_NAME"] != "schedule":
297
+ subprocess.check_call(
298
+ ["uv", "export", "--locked", "--no-emit-project", "--no-hashes", *selector,
299
+ "-o", str(req), "--quiet"]
300
+ )
301
+ else:
302
+ subprocess.check_call(
303
+ ["uv", "pip", "compile", *selector, "pyproject.toml", "-o", str(req), "--quiet"]
304
+ )
269
305
 
270
306
  # Drop direct URL references ("pkg @ git+https://...") before auditing.
271
307
  # pip-audit cannot audit those (they are not on PyPI) but, given a
@@ -181,7 +181,6 @@ result
181
181
  # Optional lockfiles (for alternative managers)
182
182
  poetry.lock
183
183
  pdm.lock
184
- uv.lock
185
184
  /.github.bak/
186
185
  .claude/
187
186
  CLAUDE.md
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.5] 2026-10-12 22:50:01
6
+
7
+ ### Added
8
+ - Python 3.15 is a supported version: declared in the classifiers, so CI and `make test-all` run it.
9
+ - `uv.lock` is committed, and `[tool.uv] exclude-newer` sets a cooldown that keeps releases younger
10
+ than it out of the lock. CI installs exactly the locked tree on push and pull request; the nightly
11
+ scheduled run still resolves afresh to catch upstream breakage early.
12
+
13
+ ### Changed
14
+ - The install section explains why installing with uv protects against supply-chain attacks and why
15
+ a plain `pip install` from PyPI does not.
16
+ - `rtoml` floor raised to 0.14.0, the first release with Python 3.15 wheels.
17
+
5
18
  ## [2.3.4] 2026-10-05 19:35:58
6
19
 
7
20
  ### Fixed
@@ -1,4 +1,4 @@
1
- # BMK MAKEFILE 3.18.0
1
+ # BMK MAKEFILE 3.21.0
2
2
  # do not alter this file - it might be overwritten on new versions of BMK
3
3
  # if You want to alter it, remove the first line # BMK MAKEFILE 1.0 - then it is a custom makefile and will not be overwritten
4
4
  # bmk Makefile - thin wrapper using `uv tool upgrade` for persistent bmk
@@ -186,7 +186,7 @@ endif
186
186
  # BMK_MIN floors the FALLBACK install. The upgrade path does not consult it: uv re-resolves
187
187
  # the requirement recorded at install time, which is itself a `bmk>=...`, so it always lands
188
188
  # on the newest release and clears the floor anyway.
189
- BMK_MIN := 3.18.0
189
+ BMK_MIN := 3.21.0
190
190
 
191
191
  # Absent env, missing check, or damaged env - all three mean "do not upgrade, rebuild".
192
192
  # `test -x` keeps a fresh machine quiet: there is no interpreter to run yet.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: keep_github_workflows_active
3
- Version: 2.3.4
3
+ Version: 2.3.5
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
@@ -15,10 +15,11 @@ Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
18
19
  Classifier: Typing :: Typed
19
20
  Requires-Python: >=3.10
20
- Requires-Dist: lib-cli-exit-tools>=2.3.4
21
- Requires-Dist: pydantic>=2.13.5
21
+ Requires-Dist: lib-cli-exit-tools>=2.4.1
22
+ Requires-Dist: pydantic>=2.14.1
22
23
  Requires-Dist: requests>=2.34.2
23
24
  Requires-Dist: rich-click>=1.9.9
24
25
  Provides-Extra: dev
@@ -30,8 +31,8 @@ Requires-Dist: pip-audit>=2.10.1; extra == 'dev'
30
31
  Requires-Dist: pyright[nodejs]>=1.1.414; extra == 'dev'
31
32
  Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
32
33
  Requires-Dist: pytest>=9.1.1; extra == 'dev'
33
- Requires-Dist: rtoml>=0.13.0; extra == 'dev'
34
- Requires-Dist: ruff>=0.16.10; extra == 'dev'
34
+ Requires-Dist: rtoml>=0.14.0; extra == 'dev'
35
+ Requires-Dist: ruff>=0.17.0; extra == 'dev'
35
36
  Requires-Dist: textual>=8.2.8; extra == 'dev'
36
37
  Requires-Dist: twine>=7.0.0; extra == 'dev'
37
38
  Description-Content-Type: text/markdown
@@ -148,6 +149,35 @@ your `PATH`.
148
149
  `macos-latest`, `windows-latest`) on CPython 3.13 in addition to the most
149
150
  recent 3.x release Actions makes available.
150
151
 
152
+ ### Why we recommend uv: supply-chain protection
153
+
154
+ This repository commits a `uv.lock`. It pins every package the project needs, transitive
155
+ dependencies included, to an exact version and to the hashes of that version's files. The
156
+ `exclude-newer` setting under `[tool.uv]` in `pyproject.toml` adds a cooldown: uv leaves any
157
+ release younger than that out of the lock. CI installs from the lock, so a hijacked release that
158
+ gets pulled again within the cooldown never reaches our builds, and a file whose hash does not
159
+ match is refused.
160
+
161
+ That protection stays in this repository. The installable package declares only lower bounds
162
+ (`>=`) for its dependencies, so a plain `pip install` takes the newest release of every transitive
163
+ dependency at the moment you run it. If one of them was hijacked an hour earlier, you get the
164
+ hijacked version. `pipx install` and `uv tool install` without options do the same.
165
+
166
+ To install the command line tool with a cooldown of your own (uv then skips any release younger
167
+ than 7 days, transitive ones included), or to run the exact tree our CI tests:
168
+
169
+ ```bash
170
+ uv tool install --exclude-newer "7 days" keep_github_workflows_active
171
+ git clone https://github.com/bitranox/keep_github_workflows_active.git && cd keep_github_workflows_active && uv sync --locked && uv run keep_github_workflows_active --help
172
+ ```
173
+
174
+ If you depend on keep_github_workflows_active in your own project, give that project the same cooldown (7 days here, as
175
+ an example) and commit the `uv.lock` that `uv add keep_github_workflows_active` writes:
176
+
177
+ ```toml
178
+ [tool.uv]
179
+ exclude-newer = "7 days"
180
+ ```
151
181
 
152
182
  ## Usage
153
183
 
@@ -110,6 +110,35 @@ your `PATH`.
110
110
  `macos-latest`, `windows-latest`) on CPython 3.13 in addition to the most
111
111
  recent 3.x release Actions makes available.
112
112
 
113
+ ### Why we recommend uv: supply-chain protection
114
+
115
+ This repository commits a `uv.lock`. It pins every package the project needs, transitive
116
+ dependencies included, to an exact version and to the hashes of that version's files. The
117
+ `exclude-newer` setting under `[tool.uv]` in `pyproject.toml` adds a cooldown: uv leaves any
118
+ release younger than that out of the lock. CI installs from the lock, so a hijacked release that
119
+ gets pulled again within the cooldown never reaches our builds, and a file whose hash does not
120
+ match is refused.
121
+
122
+ That protection stays in this repository. The installable package declares only lower bounds
123
+ (`>=`) for its dependencies, so a plain `pip install` takes the newest release of every transitive
124
+ dependency at the moment you run it. If one of them was hijacked an hour earlier, you get the
125
+ hijacked version. `pipx install` and `uv tool install` without options do the same.
126
+
127
+ To install the command line tool with a cooldown of your own (uv then skips any release younger
128
+ than 7 days, transitive ones included), or to run the exact tree our CI tests:
129
+
130
+ ```bash
131
+ uv tool install --exclude-newer "7 days" keep_github_workflows_active
132
+ git clone https://github.com/bitranox/keep_github_workflows_active.git && cd keep_github_workflows_active && uv sync --locked && uv run keep_github_workflows_active --help
133
+ ```
134
+
135
+ If you depend on keep_github_workflows_active in your own project, give that project the same cooldown (7 days here, as
136
+ an example) and commit the `uv.lock` that `uv add keep_github_workflows_active` writes:
137
+
138
+ ```toml
139
+ [tool.uv]
140
+ exclude-newer = "7 days"
141
+ ```
113
142
 
114
143
  ## Usage
115
144
 
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "keep_github_workflows_active"
3
- version = "2.3.4"
3
+ version = "2.3.5"
4
4
  description = "Template for python apps with registered cli commands"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
7
- dependencies = ["rich-click>=1.9.9", "lib_cli_exit_tools>=2.3.4", "requests>=2.34.2", "pydantic>=2.13.5"]
7
+ dependencies = ["rich-click>=1.9.9", "lib_cli_exit_tools>=2.4.1", "requests>=2.34.2", "pydantic>=2.14.1"]
8
8
  license = { text = "MIT" }
9
9
  authors = [{ name = "bitranox", email = "bitranox@gmail.com" }]
10
10
  keywords = ["logging", "rich", "cli", "terminal", "ansi"]
@@ -17,6 +17,7 @@ classifiers = [
17
17
  "Typing :: Typed",
18
18
  "Programming Language :: Python :: 3",
19
19
  "Programming Language :: Python :: 3.14",
20
+ "Programming Language :: Python :: 3.15",
20
21
  ]
21
22
 
22
23
  # System packages required for CI runners (read by GitHub Actions workflow template)
@@ -37,11 +38,9 @@ Issues = "https://github.com/bitranox/keep_github_workflows_active/issues"
37
38
  dev = [
38
39
  "pytest>=9.1.1",
39
40
  "pytest-cov>=7.1.0",
40
- "ruff>=0.16.10",
41
+ "ruff>=0.17.0",
41
42
  "pyright[nodejs]>=1.1.414",
42
43
  "bandit>=1.9.4",
43
- # 1.5.1 was yanked upstream (unintended breaking changes), so 1.5.0 is the newest usable
44
- # release; a >=1.5.1 floor has ZERO candidates and makes this extra unresolvable.
45
44
  "build>=1.6.1",
46
45
  "twine>=7.0.0",
47
46
  # codecov-cli is disabled, not dropped: it requires click<8.3.0, which drags click back to
@@ -56,7 +55,7 @@ dev = [
56
55
  "pip-audit>=2.10.1",
57
56
  "textual>=8.2.8",
58
57
  "import-linter>=2.15",
59
- "rtoml>=0.13.0"
58
+ "rtoml>=0.14.0"
60
59
  ]
61
60
 
62
61
  [project.scripts]
@@ -216,3 +215,7 @@ layers = [
216
215
  # CVE-2026-44405: paramiko 4.0.0 rsakey.py allows SHA-1 (local bmk toolchain dep, no fix released yet)
217
216
  # CVE-2026-44431/CVE-2026-44432: urllib3 2.6.3 (local bmk toolchain dep, fix in 2.7.0)
218
217
  ignore-vulns = ["CVE-2026-3219", "CVE-2026-6357", "PYSEC-2022-42969", "CVE-2026-44405", "CVE-2026-44431", "CVE-2026-44432"]
218
+
219
+ [tool.uv]
220
+ exclude-newer = "1 day"
221
+ exclude-newer-package = {lib-cli-exit-tools = false, rtoml = "2026-10-12T00:17:16Z"}
@@ -26,7 +26,7 @@ name = "keep_github_workflows_active"
26
26
  #: Human-readable summary shown in CLI help output.
27
27
  title = "Template for python apps with registered cli commands"
28
28
  #: Current release version pulled from ``pyproject.toml`` by automation.
29
- version = "2.3.4"
29
+ version = "2.3.5"
30
30
  #: Repository homepage presented to users.
31
31
  homepage = "https://github.com/bitranox/keep_github_workflows_active"
32
32
  #: Author attribution surfaced in CLI output.