wasm-action 0.0.3__tar.gz → 0.0.4__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.
- {wasm_action-0.0.3 → wasm_action-0.0.4}/PKG-INFO +1 -1
- {wasm_action-0.0.3 → wasm_action-0.0.4}/pyproject.toml +1 -1
- wasm_action-0.0.4/src/wasm_action/__init__.py +9 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/cli.py +13 -3
- wasm_action-0.0.3/src/wasm_action/__init__.py +0 -2
- {wasm_action-0.0.3 → wasm_action-0.0.4}/README.md +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/__init__.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/__init__.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/content_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/fetch_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/ledger_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/monitor_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/package_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/proof_api.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api_client.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/configuration.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/exceptions.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/__init__.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/bundle_failure_error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/checkpoint.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/checkpoint_verification_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/content_sources_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/envelope_body.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_id_not_found_error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_log_length_not_found_error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_request.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_names404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_request.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_warning.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_content_sources404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_package_record404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_get.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_upload.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_upload_headers.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/incorrect_proof_error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/ledger_sources_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/ledger_sources_response_sources_inner.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/missing_content.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/package_not_included_error.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/package_record.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/processing_record.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_request.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion422_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion_request.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record404_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record409_response.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record_request.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/published_record.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/published_record_envelope.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/rejected_record.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/signature.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/signed_checkpoint.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/sourcing_record.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/timestamped_checkpoint.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/py.typed +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/rest.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/lib.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/registry.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/util.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/__init__.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/actions.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/client.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/crypto.py +0 -0
- {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/proto.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
import click
|
|
3
|
+
import importlib.metadata
|
|
3
4
|
|
|
4
5
|
from . import lib
|
|
5
6
|
|
|
@@ -8,12 +9,21 @@ def cli():
|
|
|
8
9
|
pass
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
@cli.command(help="Print version")
|
|
13
|
+
def version():
|
|
14
|
+
try:
|
|
15
|
+
version = importlib.metadata.version("wasm-action")
|
|
16
|
+
except importlib.metadata.PackageNotFoundError:
|
|
17
|
+
version = "0.0.0"
|
|
18
|
+
print(version)
|
|
19
|
+
|
|
20
|
+
|
|
11
21
|
@cli.command(help="Push to registry")
|
|
12
22
|
@click.option('--registry', required=True, help="registry domain name")
|
|
13
23
|
@click.option('--package', required=True, help="package spec")
|
|
14
24
|
@click.option('--path', required=True, help="filename")
|
|
15
|
-
@click.option('--warg-token', required=False, envvar='WARG_TOKEN', help="warg token")
|
|
16
|
-
@click.option('--warg-private-key', required=False, envvar='WARG_PRIVATE_KEY', help="warg private key")
|
|
25
|
+
@click.option('--warg-token', required=False, envvar='WARG_TOKEN', help="warg token (or $WARG_TOKEN)")
|
|
26
|
+
@click.option('--warg-private-key', required=False, envvar='WARG_PRIVATE_KEY', help="warg private key (or $WARG_PRIVATE_KEY)")
|
|
17
27
|
def push(registry, package, path, warg_token, warg_private_key):
|
|
18
28
|
|
|
19
29
|
try:
|
|
@@ -36,7 +46,7 @@ def push(registry, package, path, warg_token, warg_private_key):
|
|
|
36
46
|
@click.option('--registry', required=True, help="registry domain name")
|
|
37
47
|
@click.option('--package', required=True, help="package spec")
|
|
38
48
|
@click.option('--path', required=False, help="filename")
|
|
39
|
-
@click.option('--warg-token', required=False, envvar='WARG_TOKEN', help="warg token")
|
|
49
|
+
@click.option('--warg-token', required=False, envvar='WARG_TOKEN', help="warg token (or $WARG_TOKEN)")
|
|
40
50
|
def pull(registry, package, path=None, warg_token=None):
|
|
41
51
|
|
|
42
52
|
try:
|
|
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
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/checkpoint_verification_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_id_not_found_error.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_request.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_content_sources404_response.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_package_record404_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/package_not_included_error.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency404_response.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_request.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_response.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion404_response.py
RENAMED
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion422_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record_request.py
RENAMED
|
File without changes
|
|
File without changes
|
{wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/published_record_envelope.py
RENAMED
|
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
|