oe-python-template 0.8.20__tar.gz → 0.8.22__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.
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/PKG-INFO +1 -1
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/pyproject.toml +3 -2
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/cli.py +9 -5
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/.gitignore +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/LICENSE +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/README.md +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/models.py +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/service.py +0 -0
- {oe_python_template-0.8.20 → oe_python_template-0.8.22}/src/oe_python_template/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oe-python-template
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.22
|
|
4
4
|
Summary: 🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
|
5
5
|
Project-URL: Homepage, https://oe-python-template.readthedocs.io/en/latest/
|
|
6
6
|
Project-URL: Documentation, https://oe-python-template.readthedocs.io/en/latest/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "oe-python-template"
|
|
3
|
-
version = "0.8.
|
|
3
|
+
version = "0.8.22"
|
|
4
4
|
description = "🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Helmut Hoffer von Ankershoffen", email = "helmuthva@gmail.com" }]
|
|
@@ -240,6 +240,7 @@ env = ["COVERAGE_FILE=.coverage", "COVERAGE_PROCESS_START=pyproject.toml"]
|
|
|
240
240
|
markers = [
|
|
241
241
|
# From Template
|
|
242
242
|
"no_extras: tests that do require no extras installed",
|
|
243
|
+
"scheduled: tests to run on a schedule",
|
|
243
244
|
"sequential: exclude from parallel test execution",
|
|
244
245
|
# Custom
|
|
245
246
|
# Nothing yet
|
|
@@ -259,7 +260,7 @@ source = ["src/"]
|
|
|
259
260
|
|
|
260
261
|
|
|
261
262
|
[tool.bumpversion]
|
|
262
|
-
current_version = "0.8.
|
|
263
|
+
current_version = "0.8.22"
|
|
263
264
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
264
265
|
serialize = ["{major}.{minor}.{patch}"]
|
|
265
266
|
search = "{current_version}"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"""CLI (Command Line Interface) of OE Python Template."""
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
import sys
|
|
4
5
|
from enum import StrEnum
|
|
6
|
+
from pathlib import Path
|
|
5
7
|
from typing import Annotated
|
|
6
8
|
|
|
7
9
|
import typer
|
|
@@ -12,7 +14,7 @@ from rich.console import Console
|
|
|
12
14
|
from . import Service, Utterance, __version__
|
|
13
15
|
from .api import api_v1, api_v2
|
|
14
16
|
|
|
15
|
-
cli = typer.Typer(
|
|
17
|
+
cli = typer.Typer(help="Command Line Interface of OE Python Template")
|
|
16
18
|
_service = Service()
|
|
17
19
|
_console = Console()
|
|
18
20
|
|
|
@@ -129,11 +131,13 @@ def openapi(
|
|
|
129
131
|
|
|
130
132
|
|
|
131
133
|
def _apply_cli_settings(cli: typer.Typer, epilog: str) -> None:
|
|
132
|
-
"""
|
|
133
|
-
cli.info.epilog = epilog
|
|
134
|
+
"""Configure default behavior and add epilog to all typers in the tree."""
|
|
134
135
|
cli.info.no_args_is_help = True
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
|
|
137
|
+
if not any(arg.endswith("typer") for arg in Path(sys.argv[0]).parts):
|
|
138
|
+
cli.info.epilog = epilog
|
|
139
|
+
for command in cli.registered_commands:
|
|
140
|
+
command.epilog = cli.info.epilog
|
|
137
141
|
|
|
138
142
|
|
|
139
143
|
_apply_cli_settings(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|