common-python-tasks 0.10.0__py3-none-any.whl → 0.10.1__py3-none-any.whl

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.
@@ -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
 
@@ -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()"
@@ -1,12 +1,12 @@
1
1
  common_python_tasks/__init__.py,sha256=tqRLgOwmMQHDb1A84XbML9sWfzMymkSPhJjoF6aCHgA,916
2
2
  common_python_tasks/__main__.py,sha256=GpgSd_toMbEaWA_cZvgsZE7jo4XpzuI-awBVm2uhVyw,3512
3
- common_python_tasks/docker.py,sha256=qwKNpP3ndRbN2az1VMAwquqtRrwOGnEsLKCT1lLJjzg,24291
3
+ common_python_tasks/docker.py,sha256=_YW-hyHWlUK-kMCvI6QTgxSfmXQQKhYLOKRBPfUmtHA,24176
4
4
  common_python_tasks/docker_compose.py,sha256=tEChLNxlcBMQXy2wjZrVsmFxFrvt3CmJYBpc-7Q4bK0,21281
5
5
  common_python_tasks/env.py,sha256=QSSu4NbnV5oKqMBDBAXPh6oJHYmumoAZRRpRmSQsmvk,19662
6
6
  common_python_tasks/git.py,sha256=znfLSEwAUYL6nFK4fjLhzdjFu9Pc3ppPdU9m2QCHaKw,11511
7
7
  common_python_tasks/github.py,sha256=_LVanl-z4PsdLM94L8y7tkX-AZO2n3Qy39FRY7reDhA,21589
8
8
  common_python_tasks/project.py,sha256=pkk5flChUjwBM95yhlsNqMxlL_8oo31b-G5iaXjoXas,17181
9
- common_python_tasks/tasks.py,sha256=uXGwcoSm-qBHfTUu-HntHA9WvK1hwXakGETTO3jL2aU,59519
9
+ common_python_tasks/tasks.py,sha256=sTG4GtUXVxQ8ZWKWGuWdghI03DFyXLbSee8Xc6g0nv0,59519
10
10
  common_python_tasks/utils.py,sha256=hR7w0Cb7uQ7ILyIegTQ4znWHVoWANlCgxrOnO-Rh5oE,20798
11
11
  common_python_tasks/data/dockerfile_extensions/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  common_python_tasks/data/fastapi/alembic.ini.j2,sha256=dOiAmZngzX6eyVXeM6BhzgQmes2zwUEdKwOgm8mxjMs,985
@@ -15,13 +15,13 @@ common_python_tasks/data/fastapi/compose-db-debug.yml.j2,sha256=iREdSy4F8tJ5m9rl
15
15
  common_python_tasks/data/fastapi/compose-db.yml.j2,sha256=16i2rrsYPIJIQn4gpopr5-8KBirMS7OwpXHPaAC03k8,1777
16
16
  common_python_tasks/data/fastapi/compose-debug.yml.j2,sha256=sIH9IFvmRAszN6wSejpGVQygXh1g2lVmlzOgPhTx5CY,661
17
17
  common_python_tasks/data/generic/.coveragerc,sha256=8zXwDq18wIKQV4NtW2NJYpo3nxCO4LsAChyluYTUoJc,85
18
- common_python_tasks/data/generic/.dockerignore,sha256=NFTre70gSZ6yi3qg5jxyvcnj3G7FazXLgi--6fOJfQk,65
18
+ common_python_tasks/data/generic/.dockerignore,sha256=8kHwNa6Ct-6y3EvRjNuhOKfquuGEywq3P2BHIbG4uXo,53
19
19
  common_python_tasks/data/generic/Dockerfile.deps.j2,sha256=fBmcytyUd4LsC26y0IgZ09QPxrFp0gx0d3OlKNqZ-KM,663
20
20
  common_python_tasks/data/generic/Dockerfile.j2,sha256=0K_gNC35wiP1-yOO2UB2WoeCoz0iW5pS7walajsXFPE,6016
21
21
  common_python_tasks/data/generic/cliff.toml,sha256=po1MnEGEEgrpyBz3XLWr0h7emXb6ASX63lrU2r6o240,77
22
22
  common_python_tasks/data/generic/pytest.ini,sha256=RHak5QrLzKHvUBjFmaaiOYFrd_8YBRQubXEOT0NJfco,134
23
23
  common_python_tasks/data/generic/ruff.toml,sha256=njvd-5inSGmgY865SWCT4SR9IrKlzS7JQFZmAG2UT_E,53
24
- common_python_tasks-0.10.0.dist-info/METADATA,sha256=sSOIh-lds6pMe5t98oMxzt-CQEx0we4XPQWIfjC9WwE,22028
25
- common_python_tasks-0.10.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
26
- common_python_tasks-0.10.0.dist-info/licenses/LICENSE,sha256=RsSweM-DyzxFPx38fQOJqHrKyeT9Fiz8rO7yox-fOsw,1070
27
- common_python_tasks-0.10.0.dist-info/RECORD,,
24
+ common_python_tasks-0.10.1.dist-info/METADATA,sha256=fN5bMujd9lclICBzrAtsCj9qQD6beileWRLrOXfvfak,22028
25
+ common_python_tasks-0.10.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
26
+ common_python_tasks-0.10.1.dist-info/licenses/LICENSE,sha256=RsSweM-DyzxFPx38fQOJqHrKyeT9Fiz8rO7yox-fOsw,1070
27
+ common_python_tasks-0.10.1.dist-info/RECORD,,