common-python-tasks 0.5.0__tar.gz → 0.5.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.
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/PKG-INFO +7 -7
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/README.md +6 -6
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/github.py +3 -2
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/tasks.py +2 -1
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/.gitignore +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/.poetry/plugins/poetry_dynamic_versioning-1.10.0.dist-info/licenses/LICENSE +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/.poetry/plugins/poetry_plugin_export-1.10.0.dist-info/licenses/LICENSE +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/LICENSE +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/pyproject.toml +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/scripts/add_common_python_tasks.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/scripts/release_script.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/__init__.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/__main__.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/dockerfile_extensions/.gitkeep +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/fastapi/alembic.ini.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/fastapi/compose-base.yml.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/fastapi/compose-db-debug.yml.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/fastapi/compose-db.yml.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/fastapi/compose-debug.yml.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/.coveragerc +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/.dockerignore +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/.flake8 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/.isort.cfg +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/Dockerfile.deps.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/Dockerfile.j2 +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/cliff.toml +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/pytest.ini +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/docker.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/docker_compose.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/env.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/git.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/project.py +0 -0
- {common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/utils.py +0 -0
|
@@ -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()"
|
|
@@ -20,7 +20,7 @@ To install a specific release, set the environment variable `COMMON_PYTHON_TASKS
|
|
|
20
20
|
curl -sSL https://api.github.com/repos/ci-sourcerer/common-python-tasks/contents/scripts/add_common_python_tasks.py \
|
|
21
21
|
| jq -r '.content' \
|
|
22
22
|
| base64 -d \
|
|
23
|
-
| COMMON_PYTHON_TASKS_VERSION=0.5.
|
|
23
|
+
| COMMON_PYTHON_TASKS_VERSION=0.5.1 python3
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
This will complete the following steps.
|
|
@@ -40,7 +40,7 @@ There's no real reason to run the automated script; I just like automating every
|
|
|
40
40
|
```toml
|
|
41
41
|
[project]
|
|
42
42
|
dependencies = [
|
|
43
|
-
"common-python-tasks==0.5.
|
|
43
|
+
"common-python-tasks==0.5.1" # Always pin to a specific version
|
|
44
44
|
]
|
|
45
45
|
|
|
46
46
|
[tool.poe]
|
|
@@ -274,8 +274,8 @@ By default, `tasks()` exposes the common task set. You can still include or excl
|
|
|
274
274
|
```toml
|
|
275
275
|
[project]
|
|
276
276
|
name = "simple-cli-tool"
|
|
277
|
-
version = "0.5.
|
|
278
|
-
dependencies = ["common-python-tasks==0.5.
|
|
277
|
+
version = "0.5.1"
|
|
278
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
279
279
|
|
|
280
280
|
[tool.poe]
|
|
281
281
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -287,7 +287,7 @@ Available tasks: common defaults such as `format`, `lint`, `test`, and `build`.
|
|
|
287
287
|
|
|
288
288
|
```toml
|
|
289
289
|
[project]
|
|
290
|
-
dependencies = ["common-python-tasks==0.5.
|
|
290
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
291
291
|
|
|
292
292
|
[tool.poe]
|
|
293
293
|
include_script = "common_python_tasks:tasks(include_tags=['common', 'containers'])"
|
|
@@ -303,7 +303,7 @@ Available tasks: All tasks including `build-image` and `push-image`.
|
|
|
303
303
|
|
|
304
304
|
```toml
|
|
305
305
|
[project]
|
|
306
|
-
dependencies = ["common-python-tasks==0.5.
|
|
306
|
+
dependencies = ["common-python-tasks==0.5.1"]
|
|
307
307
|
|
|
308
308
|
[tool.poe]
|
|
309
309
|
include_script = "common_python_tasks:tasks()"
|
|
@@ -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)
|
|
@@ -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,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/data/generic/.flake8
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{common_python_tasks-0.5.0 → common_python_tasks-0.5.1}/src/common_python_tasks/docker_compose.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|