xtr-cli 6.8.1__tar.gz → 7.0.0__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 (77) hide show
  1. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/PKG-INFO +11 -15
  2. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/README.md +8 -9
  3. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/pyproject.toml +10 -13
  4. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/pyproject.toml.orig +10 -13
  5. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/command_support.py +1 -1
  6. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/unsupported_python_error.py +2 -2
  7. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/project_settings.py +8 -2
  8. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/template.py +3 -2
  9. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/pyproject.toml.tmpl +1 -1
  10. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/kernel.py.tmpl +0 -3
  11. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/pyproject.toml.tmpl +1 -1
  12. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/web_entry_point_finder.py +2 -2
  13. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/LICENSE +0 -0
  14. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/__init__.py +0 -0
  15. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/__main__.py +0 -0
  16. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/command/__init__.py +0 -0
  17. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/command/init_command.py +0 -0
  18. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/command/new_command.py +0 -0
  19. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/command/serve_command.py +0 -0
  20. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/__init__.py +0 -0
  21. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/ambiguous_web_entry_point_error.py +0 -0
  22. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/cli_error.py +0 -0
  23. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/directory_not_empty_error.py +0 -0
  24. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/invalid_project_name_error.py +0 -0
  25. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/invalid_template_error.py +0 -0
  26. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/project_not_found_error.py +0 -0
  27. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/step_failed_error.py +0 -0
  28. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/unknown_template_error.py +0 -0
  29. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/exception/web_entry_point_not_found_error.py +0 -0
  30. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/process_runner_interface.py +0 -0
  31. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/project_name.py +0 -0
  32. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/py.typed +0 -0
  33. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/scaffold_plan.py +0 -0
  34. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/scaffolder.py +0 -0
  35. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/subprocess_runner.py +0 -0
  36. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/template_catalog.py +0 -0
  37. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/__init__.py +0 -0
  38. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/AGENTS.md.tmpl +0 -0
  39. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/README.md.tmpl +0 -0
  40. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/__init__.py.tmpl +0 -0
  41. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/__main__.py.tmpl +0 -0
  42. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/command/__init__.py.tmpl +0 -0
  43. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/command/hello_command.py.tmpl +0 -0
  44. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/config/__init__.py.tmpl +0 -0
  45. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/config/packages/__init__.py.tmpl +0 -0
  46. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/config/packages/dotenv.py.tmpl +0 -0
  47. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/kernel.py.tmpl +0 -0
  48. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/app/py.typed.tmpl +0 -0
  49. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/bin/console.tmpl +0 -0
  50. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/gitignore.tmpl +0 -0
  51. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/python-version.tmpl +0 -0
  52. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/tests/__init__.py.tmpl +0 -0
  53. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/files/tests/test_kernel.py.tmpl +0 -0
  54. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/cli/template.toml +0 -0
  55. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/AGENTS.md.tmpl +0 -0
  56. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/README.md.tmpl +0 -0
  57. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/__init__.py.tmpl +0 -0
  58. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/__main__.py.tmpl +0 -0
  59. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/command/__init__.py.tmpl +0 -0
  60. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/command/hello_command.py.tmpl +0 -0
  61. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/config/__init__.py.tmpl +0 -0
  62. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/config/packages/__init__.py.tmpl +0 -0
  63. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/config/packages/dotenv.py.tmpl +0 -0
  64. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/config/packages/http_kernel.py.tmpl +0 -0
  65. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/py.typed.tmpl +0 -0
  66. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/web/__init__.py.tmpl +0 -0
  67. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/web/__main__.py.tmpl +0 -0
  68. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/web/app.py.tmpl +0 -0
  69. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/app/web/routes.py.tmpl +0 -0
  70. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/bin/console.tmpl +0 -0
  71. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/gitignore.tmpl +0 -0
  72. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/python-version.tmpl +0 -0
  73. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/tests/__init__.py.tmpl +0 -0
  74. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/tests/test_kernel.py.tmpl +0 -0
  75. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/files/tests/test_web.py.tmpl +0 -0
  76. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/templates/webapp/template.toml +0 -0
  77. {xtr_cli-6.8.1 → xtr_cli-7.0.0}/src/xtr_cli/web_entry_point.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xtr-cli
3
- Version: 6.8.1
3
+ Version: 7.0.0
4
4
  Summary: Scaffolds a new xtr application — a console application or a web application — in one command, and serves it.
5
5
  Keywords: scaffold,new project,template,console,web,xtr-dependency-injection
6
6
  Author: Xterr
@@ -10,13 +10,10 @@ License-File: LICENSE
10
10
  Classifier: Development Status :: 3 - Alpha
11
11
  Classifier: Environment :: Console
12
12
  Classifier: Intended Audience :: Developers
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python :: 3.13
16
13
  Classifier: Programming Language :: Python :: 3.14
17
14
  Classifier: Typing :: Typed
18
- Requires-Dist: xtr-console>=6.0,<7
19
- Requires-Python: >=3.11
15
+ Requires-Dist: xtr-console>=7.0,<8
16
+ Requires-Python: >=3.14.4
20
17
  Description-Content-Type: text/markdown
21
18
 
22
19
  <div align="center">
@@ -25,7 +22,7 @@ Description-Content-Type: text/markdown
25
22
 
26
23
  **A new xtr application — a console application or a web application — ready to run in one command, and served in another.**
27
24
 
28
- <img alt="python 3.11+" src="https://img.shields.io/badge/python-%E2%89%A5%203.11-3776AB?logo=python&logoColor=white">
25
+ <img alt="python 3.14+" src="https://img.shields.io/badge/python-%E2%89%A5%203.14-3776AB?logo=python&logoColor=white">
29
26
  <img alt="typed" src="https://img.shields.io/badge/typed-ty%20%2B%20basedpyright-1f6feb">
30
27
  <img alt="license MIT" src="https://img.shields.io/badge/license-MIT-blue">
31
28
 
@@ -61,7 +58,7 @@ uv tool install xtr-cli
61
58
  xtr new shop
62
59
  ```
63
60
 
64
- Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/) on the `PATH`, and `git` unless
61
+ Requires Python 3.14.4+ and [uv](https://docs.astral.sh/uv/) on the `PATH`, and `git` unless
65
62
  `--no-git` is given.
66
63
 
67
64
  ## Quick start
@@ -73,12 +70,12 @@ shop — the webapp template
73
70
  --------------------------
74
71
 
75
72
  • directory: /home/ada/shop
76
- • python: 3.13
73
+ • python: 3.14
77
74
 
78
75
  write pyproject.toml
79
76
  …
80
- run uv add -- 'xtr-dependency-injection>=6.0,<7' …
81
- run uv add --dev -- 'xtr-recipes>=6.0,<7' pytest httpx ruff basedpyright ty
77
+ run uv add -- 'xtr-dependency-injection>=7.0,<8' …
78
+ run uv add --dev -- 'xtr-recipes>=7.0,<8' pytest httpx ruff basedpyright ty
82
79
  run uv run xtr-recipes recipes:sync
83
80
  run git init --quiet
84
81
 
@@ -104,7 +101,7 @@ xtr server:start [options] # alias: serve — run the project's web
104
101
  |---|---|---|
105
102
  | `--webapp` | | a web application rather than a console application — see [Templates](#templates) |
106
103
  | `--name` | the directory's name | the distribution and console script; dashes become underscores for the import package |
107
- | `--python` | the Python running this tool | the `3.<minor>` the project is pinned to; 3.11 or later |
104
+ | `--python` | the Python running this tool | the `3.<minor>` the project is pinned to; 3.14 or later |
108
105
  | `--no-git` | | do not run `git init`; `init` never re-initialises an existing repository |
109
106
  | `--dry-run` | | print every file and command, and write nothing |
110
107
  | `--local-packages` | | install the xtr packages, editable, from a directory of their sources |
@@ -187,9 +184,8 @@ project), `bin/console` (the executable `uv run <name>` wrapper), `src/<app>/ker
187
184
  `src/<app>/config/packages/dotenv.py` (the one description of the `.env` cascade),
188
185
  `src/<app>/__main__.py`, an example `app:hello` command and a test that builds the kernel.
189
186
  `webapp` adds `src/<app>/web/` — the
190
- FastAPI application served with `setup(app, kernel)`, its routes and a uvicorn entry point — a
191
- kernel built with `concurrent_scoped_access=True` for the security bundle, and a test that
192
- requests the home page.
187
+ FastAPI application served with `setup(app, kernel)`, its routes and a uvicorn entry point — and
188
+ a test that requests the home page.
193
189
 
194
190
  Each package's recipe configures it: the `webapp` project starts with a `compose.yaml` running
195
191
  PostgreSQL — published on `5432` by `compose.override.yaml` — that `DATABASE_URL` points at,
@@ -4,7 +4,7 @@
4
4
 
5
5
  **A new xtr application — a console application or a web application — ready to run in one command, and served in another.**
6
6
 
7
- <img alt="python 3.11+" src="https://img.shields.io/badge/python-%E2%89%A5%203.11-3776AB?logo=python&logoColor=white">
7
+ <img alt="python 3.14+" src="https://img.shields.io/badge/python-%E2%89%A5%203.14-3776AB?logo=python&logoColor=white">
8
8
  <img alt="typed" src="https://img.shields.io/badge/typed-ty%20%2B%20basedpyright-1f6feb">
9
9
  <img alt="license MIT" src="https://img.shields.io/badge/license-MIT-blue">
10
10
 
@@ -40,7 +40,7 @@ uv tool install xtr-cli
40
40
  xtr new shop
41
41
  ```
42
42
 
43
- Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/) on the `PATH`, and `git` unless
43
+ Requires Python 3.14.4+ and [uv](https://docs.astral.sh/uv/) on the `PATH`, and `git` unless
44
44
  `--no-git` is given.
45
45
 
46
46
  ## Quick start
@@ -52,12 +52,12 @@ shop — the webapp template
52
52
  --------------------------
53
53
 
54
54
  • directory: /home/ada/shop
55
- • python: 3.13
55
+ • python: 3.14
56
56
 
57
57
  write pyproject.toml
58
58
  …
59
- run uv add -- 'xtr-dependency-injection>=6.0,<7' …
60
- run uv add --dev -- 'xtr-recipes>=6.0,<7' pytest httpx ruff basedpyright ty
59
+ run uv add -- 'xtr-dependency-injection>=7.0,<8' …
60
+ run uv add --dev -- 'xtr-recipes>=7.0,<8' pytest httpx ruff basedpyright ty
61
61
  run uv run xtr-recipes recipes:sync
62
62
  run git init --quiet
63
63
 
@@ -83,7 +83,7 @@ xtr server:start [options] # alias: serve — run the project's web
83
83
  |---|---|---|
84
84
  | `--webapp` | | a web application rather than a console application — see [Templates](#templates) |
85
85
  | `--name` | the directory's name | the distribution and console script; dashes become underscores for the import package |
86
- | `--python` | the Python running this tool | the `3.<minor>` the project is pinned to; 3.11 or later |
86
+ | `--python` | the Python running this tool | the `3.<minor>` the project is pinned to; 3.14 or later |
87
87
  | `--no-git` | | do not run `git init`; `init` never re-initialises an existing repository |
88
88
  | `--dry-run` | | print every file and command, and write nothing |
89
89
  | `--local-packages` | | install the xtr packages, editable, from a directory of their sources |
@@ -166,9 +166,8 @@ project), `bin/console` (the executable `uv run <name>` wrapper), `src/<app>/ker
166
166
  `src/<app>/config/packages/dotenv.py` (the one description of the `.env` cascade),
167
167
  `src/<app>/__main__.py`, an example `app:hello` command and a test that builds the kernel.
168
168
  `webapp` adds `src/<app>/web/` — the
169
- FastAPI application served with `setup(app, kernel)`, its routes and a uvicorn entry point — a
170
- kernel built with `concurrent_scoped_access=True` for the security bundle, and a test that
171
- requests the home page.
169
+ FastAPI application served with `setup(app, kernel)`, its routes and a uvicorn entry point — and
170
+ a test that requests the home page.
172
171
 
173
172
  Each package's recipe configures it: the `webapp` project starts with a `compose.yaml` running
174
173
  PostgreSQL — published on `5432` by `compose.override.yaml` — that `DATABASE_URL` points at,
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "xtr-cli"
3
- version = "6.8.1"
3
+ version = "7.0.0"
4
4
  description = "Scaffolds a new xtr application — a console application or a web application — in one command, and serves it."
5
5
  readme = "README.md"
6
- requires-python = ">=3.11"
6
+ requires-python = ">=3.14.4"
7
7
  license = "MIT"
8
8
  license-files = ["LICENSE"]
9
9
  keywords = [
@@ -18,13 +18,10 @@ classifiers = [
18
18
  "Development Status :: 3 - Alpha",
19
19
  "Environment :: Console",
20
20
  "Intended Audience :: Developers",
21
- "Programming Language :: Python :: 3.11",
22
- "Programming Language :: Python :: 3.12",
23
- "Programming Language :: Python :: 3.13",
24
21
  "Programming Language :: Python :: 3.14",
25
22
  "Typing :: Typed",
26
23
  ]
27
- dependencies = ["xtr-console>=6.0,<7"]
24
+ dependencies = ["xtr-console>=7.0,<8"]
28
25
 
29
26
  [[project.authors]]
30
27
  name = "Xterr"
@@ -36,11 +33,11 @@ xtr-cli = "xtr_cli.__main__:main"
36
33
 
37
34
  [dependency-groups]
38
35
  dev = [
39
- "basedpyright>=1.21",
40
- "ruff>=0.8",
41
- "pytest>=8",
42
- "pytest-cov>=5",
43
- "anyio>=4.0",
36
+ "basedpyright>=1.31.7",
37
+ "ruff>=0.14.7",
38
+ "pytest>=8.4",
39
+ "pytest-cov>=7.1",
40
+ "anyio>=4.10",
44
41
  "ty>=0.0.83",
45
42
  ]
46
43
 
@@ -50,7 +47,7 @@ build-backend = "uv_build"
50
47
 
51
48
  [tool.basedpyright]
52
49
  typeCheckingMode = "all"
53
- pythonVersion = "3.11"
50
+ pythonVersion = "3.14"
54
51
  pythonPlatform = "All"
55
52
  include = [
56
53
  "src",
@@ -84,7 +81,7 @@ reportUnknownArgumentType = "none"
84
81
  reportUnknownMemberType = "none"
85
82
 
86
83
  [tool.ruff]
87
- target-version = "py311"
84
+ target-version = "py314"
88
85
  line-length = 100
89
86
  src = [
90
87
  "src",
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "xtr-cli"
3
- version = "6.8.1"
3
+ version = "7.0.0"
4
4
  description = "Scaffolds a new xtr application — a console application or a web application — in one command, and serves it."
5
5
  readme = "README.md"
6
- requires-python = ">=3.11"
6
+ requires-python = ">=3.14.4"
7
7
  license = "MIT"
8
8
  license-files = ["LICENSE"]
9
9
  authors = [
@@ -14,14 +14,11 @@ classifiers = [
14
14
  "Development Status :: 3 - Alpha",
15
15
  "Environment :: Console",
16
16
  "Intended Audience :: Developers",
17
- "Programming Language :: Python :: 3.11",
18
- "Programming Language :: Python :: 3.12",
19
- "Programming Language :: Python :: 3.13",
20
17
  "Programming Language :: Python :: 3.14",
21
18
  "Typing :: Typed",
22
19
  ]
23
20
  dependencies = [
24
- "xtr-console>=6.0,<7",
21
+ "xtr-console>=7.0,<8",
25
22
  ]
26
23
 
27
24
  # `uvx xtr-cli <command>` runs the script named after the distribution; `xtr` is the
@@ -32,11 +29,11 @@ xtr-cli = "xtr_cli.__main__:main"
32
29
 
33
30
  [dependency-groups]
34
31
  dev = [
35
- "basedpyright>=1.21",
36
- "ruff>=0.8",
37
- "pytest>=8",
38
- "pytest-cov>=5",
39
- "anyio>=4.0",
32
+ "basedpyright>=1.31.7",
33
+ "ruff>=0.14.7",
34
+ "pytest>=8.4",
35
+ "pytest-cov>=7.1",
36
+ "anyio>=4.10",
40
37
  "ty>=0.0.83",
41
38
  ]
42
39
 
@@ -49,7 +46,7 @@ build-backend = "uv_build"
49
46
  # ─────────────────────────────────────────────────────────────────
50
47
  [tool.basedpyright]
51
48
  typeCheckingMode = "all"
52
- pythonVersion = "3.11"
49
+ pythonVersion = "3.14"
53
50
  pythonPlatform = "All"
54
51
  include = ["src", "tests"]
55
52
  exclude = ["**/__pycache__", "**/.venv", "**/build", "**/dist", ".tmp"]
@@ -81,7 +78,7 @@ reportUnknownMemberType = "none"
81
78
  # ruff — select = ["ALL"], minimal justified ignores
82
79
  # ─────────────────────────────────────────────────────────────────
83
80
  [tool.ruff]
84
- target-version = "py311"
81
+ target-version = "py314"
85
82
  line-length = 100
86
83
  src = ["src", "tests"]
87
84
 
@@ -33,7 +33,7 @@ if TYPE_CHECKING:
33
33
  __all__ = ["build_runner", "build_scaffolder", "default_python", "scaffold"]
34
34
 
35
35
  _PYTHON = re.compile(r"^3\.(?P<minor>\d+)$")
36
- _OLDEST_MINOR = 11
36
+ _OLDEST_MINOR = 14
37
37
  _CONSOLE_TEMPLATE = "cli"
38
38
  _WEB_TEMPLATE = "webapp"
39
39
 
@@ -13,7 +13,7 @@ __all__ = ["UnsupportedPythonError"]
13
13
  class UnsupportedPythonError(CliError):
14
14
  """``--python`` is not a ``3.<minor>`` version the packages support.
15
15
 
16
- Every xtr package requires Python 3.11 or later, so a project pinned below
16
+ Every xtr package requires Python 3.14 or later, so a project pinned below
17
17
  that could install none of them.
18
18
 
19
19
  Attributes:
@@ -25,4 +25,4 @@ class UnsupportedPythonError(CliError):
25
25
  def __init__(self, python: str) -> None:
26
26
  """Record the version that was refused."""
27
27
  self.python = python
28
- super().__init__(f"--python {python!r}: give a version 3.11 or later, such as 3.13")
28
+ super().__init__(f"--python {python!r}: give a version 3.14 or later")
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from dataclasses import dataclass
6
- from typing import TYPE_CHECKING, final
6
+ from typing import TYPE_CHECKING, Final, final
7
7
 
8
8
  if TYPE_CHECKING:
9
9
  from pathlib import Path
@@ -13,6 +13,10 @@ if TYPE_CHECKING:
13
13
 
14
14
  __all__ = ["ProjectSettings"]
15
15
 
16
+ _OLDEST_PATCH: Final = {"3.14": "3.14.4"}
17
+ """The first release of a minor every xtr package installs on: an earlier one folds some email
18
+ subjects forever, so the packages require it and a project pinned to the minor must too."""
19
+
16
20
 
17
21
  @final
18
22
  @dataclass(frozen=True, slots=True)
@@ -42,11 +46,13 @@ class ProjectSettings:
42
46
  """Return what the template's placeholders are filled with.
43
47
 
44
48
  ``minor`` is the part of the Python version after ``3.``, so a tool
45
- naming versions as ``py313`` can be given ``py3${minor}``.
49
+ naming versions as ``py314`` can be given ``py3${minor}``; ``requires_python`` is the
50
+ oldest release of that minor the packages install on.
46
51
  """
47
52
  return {
48
53
  "name": self.name.distribution,
49
54
  "app": self.name.app,
50
55
  "python": self.python,
51
56
  "minor": self.python.partition(".")[2],
57
+ "requires_python": _OLDEST_PATCH.get(self.python, self.python),
52
58
  }
@@ -51,8 +51,9 @@ class Template:
51
51
  next = ["uv run ${name} list"] # printed once the project is made
52
52
 
53
53
  Destinations, file contents and notes substitute ``${name}`` (the
54
- distribution), ``${app}`` (the import name), ``${python}`` (``3.13``) and
55
- ``${minor}`` (``13``) with :meth:`string.Template.substitute`; a literal
54
+ distribution), ``${app}`` (the import name), ``${python}`` (``3.14``),
55
+ ``${minor}`` (``14``) and ``${requires_python}`` (``3.14.4``) with
56
+ :meth:`string.Template.substitute`; a literal
56
57
  ``$`` is written ``$$``.
57
58
 
58
59
  Attributes:
@@ -3,7 +3,7 @@ name = "${name}"
3
3
  version = "0.1.0"
4
4
  description = "A console application on the xtr packages."
5
5
  readme = "README.md"
6
- requires-python = ">=${python}"
6
+ requires-python = ">=${requires_python}"
7
7
  dependencies = []
8
8
 
9
9
  [project.scripts]
@@ -28,9 +28,6 @@ kernel: Final = Kernel(
28
28
  # served from this very kernel: scanning it would import it while the kernel builds.
29
29
  # The pattern is relative to this package, and adds to the default excludes.
30
30
  exclude=(".web.app",),
31
- # Concurrent requests each keep their own scoped services — the security token storage
32
- # among them.
33
- concurrent_scoped_access=True,
34
31
  )
35
32
 
36
33
 
@@ -3,7 +3,7 @@ name = "${name}"
3
3
  version = "0.1.0"
4
4
  description = "A web application on the xtr packages."
5
5
  readme = "README.md"
6
- requires-python = ">=${python}"
6
+ requires-python = ">=${requires_python}"
7
7
  dependencies = []
8
8
 
9
9
  [project.scripts]
@@ -92,7 +92,7 @@ def _scripts(project_dir: Path) -> dict[str, str]:
92
92
  try:
93
93
  with (project_dir / _PYPROJECT).open("rb") as handle:
94
94
  data: dict[str, object] = tomllib.load(handle)
95
- except (OSError, tomllib.TOMLDecodeError):
95
+ except OSError, tomllib.TOMLDecodeError:
96
96
  # A manifest that cannot be read has no scripts to offer; the ASGI search still runs.
97
97
  return {}
98
98
  project = data.get("project")
@@ -125,7 +125,7 @@ def _parse(file: Path) -> ast.Module | None:
125
125
  """Parse ``file``, or return ``None`` for one that cannot be read as Python."""
126
126
  try:
127
127
  return ast.parse(file.read_text(encoding="utf-8"), str(file))
128
- except (OSError, UnicodeDecodeError, SyntaxError, ValueError):
128
+ except OSError, UnicodeDecodeError, SyntaxError, ValueError:
129
129
  # Not this tool's to report: a broken module is simply not an entry point.
130
130
  return None
131
131
 
File without changes
File without changes
File without changes
File without changes