common-python-tasks 0.5.0__py3-none-any.whl → 0.5.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.
- common_python_tasks/github.py +3 -2
- common_python_tasks/tasks.py +2 -1
- {common_python_tasks-0.5.0.dist-info → common_python_tasks-0.5.1.dist-info}/METADATA +7 -7
- {common_python_tasks-0.5.0.dist-info → common_python_tasks-0.5.1.dist-info}/RECORD +6 -6
- {common_python_tasks-0.5.0.dist-info → common_python_tasks-0.5.1.dist-info}/WHEEL +0 -0
- {common_python_tasks-0.5.0.dist-info → common_python_tasks-0.5.1.dist-info}/licenses/LICENSE +0 -0
common_python_tasks/github.py
CHANGED
|
@@ -475,7 +475,8 @@ def get_github_release_asset_paths(
|
|
|
475
475
|
asset_sources: Optional list of paths or glob patterns. When a string is
|
|
476
476
|
provided (including via `GITHUB_RELEASE_ASSETS`), values are
|
|
477
477
|
interpreted as colon-separated paths or glob patterns.
|
|
478
|
-
If not provided, the default value is `dist/*`.
|
|
478
|
+
If not provided, the default value is `dist/*`. An empty list
|
|
479
|
+
explicitly disables asset selection.
|
|
479
480
|
|
|
480
481
|
Returns:
|
|
481
482
|
A sorted list of existing asset paths.
|
|
@@ -513,7 +514,7 @@ def get_github_release_asset_paths(
|
|
|
513
514
|
elif path.exists():
|
|
514
515
|
LOGGER.warning("Ignoring non-file GitHub release asset path: %s", path)
|
|
515
516
|
|
|
516
|
-
if not asset_paths and explicit_assets:
|
|
517
|
+
if not asset_paths and explicit_assets and source_items:
|
|
517
518
|
utils.fatal(
|
|
518
519
|
"No GitHub Release assets were found for the configured asset paths: "
|
|
519
520
|
+ ":".join(source_items)
|
common_python_tasks/tasks.py
CHANGED
|
@@ -1000,7 +1000,8 @@ def publish_github_release(
|
|
|
1000
1000
|
release_name or os.getenv("GITHUB_RELEASE_NAME") or resolved_tag_name
|
|
1001
1001
|
)
|
|
1002
1002
|
resolved_body = body or os.getenv("GITHUB_RELEASE_BODY")
|
|
1003
|
-
|
|
1003
|
+
# Poe supplies `[]` when an optional repeated CLI argument is omitted.
|
|
1004
|
+
asset_paths = get_github_release_asset_paths(assets or None)
|
|
1004
1005
|
|
|
1005
1006
|
return publish_github_release_helper(
|
|
1006
1007
|
resolved_tag_name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: common-python-tasks
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.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
|
|
@@ -55,7 +55,7 @@ To install a specific release, set the environment variable `COMMON_PYTHON_TASKS
|
|
|
55
55
|
curl -sSL https://api.github.com/repos/ci-sourcerer/common-python-tasks/contents/scripts/add_common_python_tasks.py \
|
|
56
56
|
| jq -r '.content' \
|
|
57
57
|
| base64 -d \
|
|
58
|
-
| COMMON_PYTHON_TASKS_VERSION=0.5.
|
|
58
|
+
| COMMON_PYTHON_TASKS_VERSION=0.5.1 python3
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
This will complete the following steps.
|
|
@@ -75,7 +75,7 @@ There's no real reason to run the automated script; I just like automating every
|
|
|
75
75
|
```toml
|
|
76
76
|
[project]
|
|
77
77
|
dependencies = [
|
|
78
|
-
"common-python-tasks==0.5.
|
|
78
|
+
"common-python-tasks==0.5.1" # Always pin to a specific version
|
|
79
79
|
]
|
|
80
80
|
|
|
81
81
|
[tool.poe]
|
|
@@ -309,8 +309,8 @@ By default, `tasks()` exposes the common task set. You can still include or excl
|
|
|
309
309
|
```toml
|
|
310
310
|
[project]
|
|
311
311
|
name = "simple-cli-tool"
|
|
312
|
-
version = "0.5.
|
|
313
|
-
dependencies = ["common-python-tasks==0.5.
|
|
312
|
+
version = "0.5.1"
|
|
313
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
314
314
|
|
|
315
315
|
[tool.poe]
|
|
316
316
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -322,7 +322,7 @@ Available tasks: common defaults such as `format`, `lint`, `test`, and `build`.
|
|
|
322
322
|
|
|
323
323
|
```toml
|
|
324
324
|
[project]
|
|
325
|
-
dependencies = ["common-python-tasks==0.5.
|
|
325
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
326
326
|
|
|
327
327
|
[tool.poe]
|
|
328
328
|
include_script = "common_python_tasks:tasks(include_tags=['common', 'containers'])"
|
|
@@ -338,7 +338,7 @@ Available tasks: All tasks including `build-image` and `push-image`.
|
|
|
338
338
|
|
|
339
339
|
```toml
|
|
340
340
|
[project]
|
|
341
|
-
dependencies = ["common-python-tasks==0.5.
|
|
341
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
342
342
|
|
|
343
343
|
[tool.poe]
|
|
344
344
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -4,9 +4,9 @@ common_python_tasks/docker.py,sha256=KQ_Ym6tungnYqkf1EyXgdLpMjLNX879SWXKM9tIrfEg
|
|
|
4
4
|
common_python_tasks/docker_compose.py,sha256=UnTP5-Kw31ZzkMUeuml1GxHkHmNsX76-9uezq0qPVBQ,21057
|
|
5
5
|
common_python_tasks/env.py,sha256=X-v2gX6SJluvkjU7M941UbrMZ73vHnxwLeaBWRUxeLc,15678
|
|
6
6
|
common_python_tasks/git.py,sha256=wJ3gePpWE4fhNJYZCEWTDFrhHqaOVkaQveHeiGIbCHo,11188
|
|
7
|
-
common_python_tasks/github.py,sha256=
|
|
7
|
+
common_python_tasks/github.py,sha256=dLlHf6MYIrs0iTlBXtGm4yYgkzCZ0kJj4265ChH1O0U,19170
|
|
8
8
|
common_python_tasks/project.py,sha256=5ZU1PxefUPaSjPEGhEW3kiBLGBgt6O0VGejmVEg486E,20769
|
|
9
|
-
common_python_tasks/tasks.py,sha256=
|
|
9
|
+
common_python_tasks/tasks.py,sha256=UIf6OX5C0MvZbIPTsLfR0Tr47TBtaiGLsJKbezabMq4,54906
|
|
10
10
|
common_python_tasks/utils.py,sha256=ej4nKFPMFhu1wSgkL9x50DML_sPoPmR6aGcIMyAmfN8,19586
|
|
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=IVXmnF1pJvW3o8dXBLIVhmng7DyXu_sWXx_W3VlAcGE,910
|
|
@@ -22,7 +22,7 @@ common_python_tasks/data/generic/Dockerfile.deps.j2,sha256=rCGsBwLHQIRsGFzDbiRi_
|
|
|
22
22
|
common_python_tasks/data/generic/Dockerfile.j2,sha256=UG-QxIuFT27j925LsghPl5Wqcw5wNsPPuqB6rcRngz0,7263
|
|
23
23
|
common_python_tasks/data/generic/cliff.toml,sha256=po1MnEGEEgrpyBz3XLWr0h7emXb6ASX63lrU2r6o240,77
|
|
24
24
|
common_python_tasks/data/generic/pytest.ini,sha256=RHak5QrLzKHvUBjFmaaiOYFrd_8YBRQubXEOT0NJfco,134
|
|
25
|
-
common_python_tasks-0.5.
|
|
26
|
-
common_python_tasks-0.5.
|
|
27
|
-
common_python_tasks-0.5.
|
|
28
|
-
common_python_tasks-0.5.
|
|
25
|
+
common_python_tasks-0.5.1.dist-info/METADATA,sha256=rfvEbPvkxBa35iWaLL0KfBDoIFWPjMpTOgjBbHfVTFE,22592
|
|
26
|
+
common_python_tasks-0.5.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
27
|
+
common_python_tasks-0.5.1.dist-info/licenses/LICENSE,sha256=RsSweM-DyzxFPx38fQOJqHrKyeT9Fiz8rO7yox-fOsw,1070
|
|
28
|
+
common_python_tasks-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
{common_python_tasks-0.5.0.dist-info → common_python_tasks-0.5.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|