common-python-tasks 0.10.1__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.
Files changed (36) hide show
  1. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/PKG-INFO +6 -6
  2. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/README.md +5 -5
  3. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/project.py +4 -2
  4. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/.gitignore +0 -0
  5. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/.poetry/plugins/poetry_dynamic_versioning-1.10.0.dist-info/licenses/LICENSE +0 -0
  6. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/.poetry/plugins/poetry_plugin_export-1.10.0.dist-info/licenses/LICENSE +0 -0
  7. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/LICENSE +0 -0
  8. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/pyproject.toml +0 -0
  9. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/__init__.py +0 -0
  10. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/add_common_python_tasks.py +0 -0
  11. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/readme_tasks_table.py +0 -0
  12. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/release_script.py +0 -0
  13. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/update_readme_tasks_table.py +0 -0
  14. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/scripts/utils.py +0 -0
  15. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/__init__.py +0 -0
  16. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/__main__.py +0 -0
  17. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/dockerfile_extensions/.gitkeep +0 -0
  18. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/alembic.ini.j2 +0 -0
  19. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-base.yml.j2 +0 -0
  20. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-db-debug.yml.j2 +0 -0
  21. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-db.yml.j2 +0 -0
  22. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/fastapi/compose-debug.yml.j2 +0 -0
  23. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/.coveragerc +0 -0
  24. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/.dockerignore +0 -0
  25. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/Dockerfile.deps.j2 +0 -0
  26. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/Dockerfile.j2 +0 -0
  27. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/cliff.toml +0 -0
  28. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/pytest.ini +0 -0
  29. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/data/generic/ruff.toml +0 -0
  30. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/docker.py +0 -0
  31. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/docker_compose.py +0 -0
  32. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/env.py +0 -0
  33. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/git.py +0 -0
  34. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/github.py +0 -0
  35. {common_python_tasks-0.10.1 → common_python_tasks-0.10.2}/src/common_python_tasks/tasks.py +0 -0
  36. {common_python_tasks-0.10.1 → 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.1
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.1
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.1/scripts/add_common_python_tasks.py
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.1 python3 /tmp/add_common_python_tasks.py
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.1` with that release's version.
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.1"
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.1
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.1/scripts/add_common_python_tasks.py
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.1 python3 /tmp/add_common_python_tasks.py
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.1` with that release's version.
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.1"
174
+ version = "0.10.2"
175
175
 
176
176
  [tool.poe]
177
177
  include_script = "common_python_tasks:tasks()"
@@ -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 in scripts_set:
397
- return script_name
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