common-python-tasks 0.10.1__py3-none-any.whl → 0.10.2__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.
- common_python_tasks/project.py +4 -2
- {common_python_tasks-0.10.1.dist-info → common_python_tasks-0.10.2.dist-info}/METADATA +6 -6
- {common_python_tasks-0.10.1.dist-info → common_python_tasks-0.10.2.dist-info}/RECORD +5 -5
- {common_python_tasks-0.10.1.dist-info → common_python_tasks-0.10.2.dist-info}/WHEEL +0 -0
- {common_python_tasks-0.10.1.dist-info → common_python_tasks-0.10.2.dist-info}/licenses/LICENSE +0 -0
common_python_tasks/project.py
CHANGED
|
@@ -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
|
|
|
@@ -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()"
|
|
@@ -5,7 +5,7 @@ common_python_tasks/docker_compose.py,sha256=tEChLNxlcBMQXy2wjZrVsmFxFrvt3CmJYBp
|
|
|
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
|
-
common_python_tasks/project.py,sha256=
|
|
8
|
+
common_python_tasks/project.py,sha256=B3uHA5wgSLfeYVYDQJCCSCr323IX_VpcDILsOxBU7hs,17329
|
|
9
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
|
|
@@ -21,7 +21,7 @@ common_python_tasks/data/generic/Dockerfile.j2,sha256=0K_gNC35wiP1-yOO2UB2WoeCoz
|
|
|
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.
|
|
25
|
-
common_python_tasks-0.10.
|
|
26
|
-
common_python_tasks-0.10.
|
|
27
|
-
common_python_tasks-0.10.
|
|
24
|
+
common_python_tasks-0.10.2.dist-info/METADATA,sha256=0dWkJuwdXMGU7CzQEHtzyRvZ47JKdUBbhXEjRhKoMkE,22028
|
|
25
|
+
common_python_tasks-0.10.2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
26
|
+
common_python_tasks-0.10.2.dist-info/licenses/LICENSE,sha256=RsSweM-DyzxFPx38fQOJqHrKyeT9Fiz8rO7yox-fOsw,1070
|
|
27
|
+
common_python_tasks-0.10.2.dist-info/RECORD,,
|
|
File without changes
|
{common_python_tasks-0.10.1.dist-info → common_python_tasks-0.10.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|