common-python-tasks 0.10.0__tar.gz → 0.10.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.
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/PKG-INFO +6 -6
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/README.md +5 -5
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/.dockerignore +0 -1
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/docker.py +0 -4
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/project.py +4 -2
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/.gitignore +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/.poetry/plugins/poetry_dynamic_versioning-1.10.0.dist-info/licenses/LICENSE +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/.poetry/plugins/poetry_plugin_export-1.10.0.dist-info/licenses/LICENSE +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/LICENSE +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/pyproject.toml +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/__init__.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/add_common_python_tasks.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/readme_tasks_table.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/release_script.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/update_readme_tasks_table.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/utils.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/__init__.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/__main__.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/dockerfile_extensions/.gitkeep +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/alembic.ini.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-base.yml.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-db-debug.yml.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-db.yml.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-debug.yml.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/.coveragerc +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/Dockerfile.deps.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/Dockerfile.j2 +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/cliff.toml +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/pytest.ini +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/ruff.toml +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/docker_compose.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/env.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/git.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/github.py +0 -0
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/tasks.py +14 -14
- {common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: common-python-tasks
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.2
|
|
4
4
|
Summary: Opinionated Poe the Poet tasks for Python package development.
|
|
5
5
|
Project-URL: Homepage, http://github.com/ci-sourcerer/common-python-tasks
|
|
6
6
|
Project-URL: Source, http://github.com/ci-sourcerer/common-python-tasks.git
|
|
@@ -43,7 +43,7 @@ It supplies sensible defaults for formatting, linting, testing, packaging, relea
|
|
|
43
43
|
Add `common-python-tasks` as a development dependency from your project root.
|
|
44
44
|
|
|
45
45
|
```shell
|
|
46
|
-
uv add --dev common-python-tasks==0.10.
|
|
46
|
+
uv add --dev common-python-tasks==0.10.2
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Configure Poe the Poet to expose the default `common` task set.
|
|
@@ -68,7 +68,7 @@ The helper script performs the same development-dependency installation and Poe
|
|
|
68
68
|
```shell
|
|
69
69
|
curl --fail --silent --show-error --location \
|
|
70
70
|
--output /tmp/add_common_python_tasks.py \
|
|
71
|
-
https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.
|
|
71
|
+
https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.2/scripts/add_common_python_tasks.py
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
Review the downloaded script before executing it.
|
|
@@ -80,10 +80,10 @@ less /tmp/add_common_python_tasks.py
|
|
|
80
80
|
Run the reviewed script with the same pinned package version.
|
|
81
81
|
|
|
82
82
|
```shell
|
|
83
|
-
COMMON_PYTHON_TASKS_VERSION=0.10.
|
|
83
|
+
COMMON_PYTHON_TASKS_VERSION=0.10.2 python3 /tmp/add_common_python_tasks.py
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
To install another release, replace both occurrences of `0.10.
|
|
86
|
+
To install another release, replace both occurrences of `0.10.2` with that release's version.
|
|
87
87
|
|
|
88
88
|
## Available tasks
|
|
89
89
|
|
|
@@ -203,7 +203,7 @@ After installing the package, a minimal project configuration looks like this.
|
|
|
203
203
|
```toml
|
|
204
204
|
[project]
|
|
205
205
|
name = "simple-cli-tool"
|
|
206
|
-
version = "0.10.
|
|
206
|
+
version = "0.10.2"
|
|
207
207
|
|
|
208
208
|
[tool.poe]
|
|
209
209
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -11,7 +11,7 @@ It supplies sensible defaults for formatting, linting, testing, packaging, relea
|
|
|
11
11
|
Add `common-python-tasks` as a development dependency from your project root.
|
|
12
12
|
|
|
13
13
|
```shell
|
|
14
|
-
uv add --dev common-python-tasks==0.10.
|
|
14
|
+
uv add --dev common-python-tasks==0.10.2
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Configure Poe the Poet to expose the default `common` task set.
|
|
@@ -36,7 +36,7 @@ The helper script performs the same development-dependency installation and Poe
|
|
|
36
36
|
```shell
|
|
37
37
|
curl --fail --silent --show-error --location \
|
|
38
38
|
--output /tmp/add_common_python_tasks.py \
|
|
39
|
-
https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.
|
|
39
|
+
https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.2/scripts/add_common_python_tasks.py
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Review the downloaded script before executing it.
|
|
@@ -48,10 +48,10 @@ less /tmp/add_common_python_tasks.py
|
|
|
48
48
|
Run the reviewed script with the same pinned package version.
|
|
49
49
|
|
|
50
50
|
```shell
|
|
51
|
-
COMMON_PYTHON_TASKS_VERSION=0.10.
|
|
51
|
+
COMMON_PYTHON_TASKS_VERSION=0.10.2 python3 /tmp/add_common_python_tasks.py
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
To install another release, replace both occurrences of `0.10.
|
|
54
|
+
To install another release, replace both occurrences of `0.10.2` with that release's version.
|
|
55
55
|
|
|
56
56
|
## Available tasks
|
|
57
57
|
|
|
@@ -171,7 +171,7 @@ After installing the package, a minimal project configuration looks like this.
|
|
|
171
171
|
```toml
|
|
172
172
|
[project]
|
|
173
173
|
name = "simple-cli-tool"
|
|
174
|
-
version = "0.10.
|
|
174
|
+
version = "0.10.2"
|
|
175
175
|
|
|
176
176
|
[tool.poe]
|
|
177
177
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -205,10 +205,6 @@ def render_build_image(
|
|
|
205
205
|
Returns:
|
|
206
206
|
The rendered build plan that contains the command and generated artifacts.
|
|
207
207
|
"""
|
|
208
|
-
dist_path = Path("dist")
|
|
209
|
-
if utils.directory_has_contents(dist_path):
|
|
210
|
-
utils.remove_path(dist_path)
|
|
211
|
-
|
|
212
208
|
context_path = _resolve_context_path(context_path)
|
|
213
209
|
|
|
214
210
|
temp_file_path = None
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/project.py
RENAMED
|
@@ -393,8 +393,10 @@ def resolve_container_entrypoint_command(entrypoint_script: str | None = None) -
|
|
|
393
393
|
)
|
|
394
394
|
|
|
395
395
|
script_name = utils.get_package_name(use_underscores=True)
|
|
396
|
-
if script_name
|
|
397
|
-
|
|
396
|
+
hyphenated_name = script_name.replace("_", "-") if script_name else None
|
|
397
|
+
for candidate in filter(None, [script_name, hyphenated_name]):
|
|
398
|
+
if candidate in scripts_set:
|
|
399
|
+
return candidate
|
|
398
400
|
|
|
399
401
|
return "python"
|
|
400
402
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/add_common_python_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/scripts/update_readme_tasks_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/__init__.py
RENAMED
|
File without changes
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/__main__.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.10.0 → common_python_tasks-0.10.2}/src/common_python_tasks/docker_compose.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1330,6 +1330,9 @@ def _run_release_flow(
|
|
|
1330
1330
|
repository,
|
|
1331
1331
|
repository_url,
|
|
1332
1332
|
)
|
|
1333
|
+
log_dry_run(
|
|
1334
|
+
"Would publish GitHub Release %s with built assets", hook_env["RELEASE_TAG"]
|
|
1335
|
+
)
|
|
1333
1336
|
if include_containers:
|
|
1334
1337
|
log_dry_run(
|
|
1335
1338
|
"Would build container image with debug=%s no_cache=%s plain=%s single_arch=%s",
|
|
@@ -1339,9 +1342,6 @@ def _run_release_flow(
|
|
|
1339
1342
|
single_arch,
|
|
1340
1343
|
)
|
|
1341
1344
|
log_dry_run("Would push container image with debug=%s", debug)
|
|
1342
|
-
log_dry_run(
|
|
1343
|
-
"Would publish GitHub Release %s with built assets", hook_env["RELEASE_TAG"]
|
|
1344
|
-
)
|
|
1345
1345
|
if post_script:
|
|
1346
1346
|
run_command(["sh", "-lc", post_script], env=hook_env, dry_run=False)
|
|
1347
1347
|
return
|
|
@@ -1350,17 +1350,6 @@ def _run_release_flow(
|
|
|
1350
1350
|
hook_env["RELEASE_TAG"], repository=repository, repository_url=repository_url
|
|
1351
1351
|
)
|
|
1352
1352
|
|
|
1353
|
-
if include_containers:
|
|
1354
|
-
build_image(
|
|
1355
|
-
debug=debug,
|
|
1356
|
-
no_cache=no_cache,
|
|
1357
|
-
plain=plain,
|
|
1358
|
-
single_arch=single_arch,
|
|
1359
|
-
container_env=container_env,
|
|
1360
|
-
container_envfile=container_envfile,
|
|
1361
|
-
)
|
|
1362
|
-
push_image(debug=debug)
|
|
1363
|
-
|
|
1364
1353
|
run_command(["git", "push", "origin", hook_env["RELEASE_TAG"]])
|
|
1365
1354
|
try:
|
|
1366
1355
|
publish_github_release(
|
|
@@ -1379,6 +1368,17 @@ def _run_release_flow(
|
|
|
1379
1368
|
)
|
|
1380
1369
|
raise
|
|
1381
1370
|
|
|
1371
|
+
if include_containers:
|
|
1372
|
+
build_image(
|
|
1373
|
+
debug=debug,
|
|
1374
|
+
no_cache=no_cache,
|
|
1375
|
+
plain=plain,
|
|
1376
|
+
single_arch=single_arch,
|
|
1377
|
+
container_env=container_env,
|
|
1378
|
+
container_envfile=container_envfile,
|
|
1379
|
+
)
|
|
1380
|
+
push_image(debug=debug)
|
|
1381
|
+
|
|
1382
1382
|
if post_script:
|
|
1383
1383
|
run_command(["sh", "-lc", post_script], env=hook_env, dry_run=False)
|
|
1384
1384
|
|
|
File without changes
|