common-python-tasks 0.10.0__tar.gz → 0.10.1__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 (36) hide show
  1. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/PKG-INFO +6 -6
  2. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/README.md +5 -5
  3. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/.dockerignore +0 -1
  4. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/docker.py +0 -4
  5. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/.gitignore +0 -0
  6. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/.poetry/plugins/poetry_dynamic_versioning-1.10.0.dist-info/licenses/LICENSE +0 -0
  7. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/.poetry/plugins/poetry_plugin_export-1.10.0.dist-info/licenses/LICENSE +0 -0
  8. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/LICENSE +0 -0
  9. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/pyproject.toml +0 -0
  10. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/__init__.py +0 -0
  11. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/add_common_python_tasks.py +0 -0
  12. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/readme_tasks_table.py +0 -0
  13. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/release_script.py +0 -0
  14. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/update_readme_tasks_table.py +0 -0
  15. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/scripts/utils.py +0 -0
  16. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/__init__.py +0 -0
  17. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/__main__.py +0 -0
  18. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/dockerfile_extensions/.gitkeep +0 -0
  19. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/fastapi/alembic.ini.j2 +0 -0
  20. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/fastapi/compose-base.yml.j2 +0 -0
  21. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/fastapi/compose-db-debug.yml.j2 +0 -0
  22. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/fastapi/compose-db.yml.j2 +0 -0
  23. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/fastapi/compose-debug.yml.j2 +0 -0
  24. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/.coveragerc +0 -0
  25. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/Dockerfile.deps.j2 +0 -0
  26. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/Dockerfile.j2 +0 -0
  27. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/cliff.toml +0 -0
  28. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/pytest.ini +0 -0
  29. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/data/generic/ruff.toml +0 -0
  30. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/docker_compose.py +0 -0
  31. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/env.py +0 -0
  32. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/git.py +0 -0
  33. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/github.py +0 -0
  34. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/project.py +0 -0
  35. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/src/common_python_tasks/tasks.py +14 -14
  36. {common_python_tasks-0.10.0 → common_python_tasks-0.10.1}/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.0
3
+ Version: 0.10.1
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.0
46
+ uv add --dev common-python-tasks==0.10.1
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.0/scripts/add_common_python_tasks.py
71
+ https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.1/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.0 python3 /tmp/add_common_python_tasks.py
83
+ COMMON_PYTHON_TASKS_VERSION=0.10.1 python3 /tmp/add_common_python_tasks.py
84
84
  ```
85
85
 
86
- To install another release, replace both occurrences of `0.10.0` with that release's version.
86
+ To install another release, replace both occurrences of `0.10.1` 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.0"
206
+ version = "0.10.1"
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.0
14
+ uv add --dev common-python-tasks==0.10.1
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.0/scripts/add_common_python_tasks.py
39
+ https://raw.githubusercontent.com/ci-sourcerer/common-python-tasks/v0.10.1/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.0 python3 /tmp/add_common_python_tasks.py
51
+ COMMON_PYTHON_TASKS_VERSION=0.10.1 python3 /tmp/add_common_python_tasks.py
52
52
  ```
53
53
 
54
- To install another release, replace both occurrences of `0.10.0` with that release's version.
54
+ To install another release, replace both occurrences of `0.10.1` 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.0"
174
+ version = "0.10.1"
175
175
 
176
176
  [tool.poe]
177
177
  include_script = "common_python_tasks:tasks()"
@@ -1,5 +1,4 @@
1
1
  *
2
- !dist/*.whl
3
2
  !pyproject.toml
4
3
  !uv.lock
5
4
  !README.md
@@ -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
@@ -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