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.
Files changed (73) hide show
  1. {wasm_action-0.0.3 → wasm_action-0.0.4}/PKG-INFO +1 -1
  2. {wasm_action-0.0.3 → wasm_action-0.0.4}/pyproject.toml +1 -1
  3. wasm_action-0.0.4/src/wasm_action/__init__.py +9 -0
  4. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/cli.py +13 -3
  5. wasm_action-0.0.3/src/wasm_action/__init__.py +0 -2
  6. {wasm_action-0.0.3 → wasm_action-0.0.4}/README.md +0 -0
  7. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/__init__.py +0 -0
  8. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/__init__.py +0 -0
  9. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/content_api.py +0 -0
  10. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/fetch_api.py +0 -0
  11. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/ledger_api.py +0 -0
  12. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/monitor_api.py +0 -0
  13. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/package_api.py +0 -0
  14. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api/proof_api.py +0 -0
  15. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api_client.py +0 -0
  16. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/api_response.py +0 -0
  17. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/configuration.py +0 -0
  18. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/exceptions.py +0 -0
  19. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/__init__.py +0 -0
  20. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/bundle_failure_error.py +0 -0
  21. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/checkpoint.py +0 -0
  22. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/checkpoint_verification_response.py +0 -0
  23. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/content_sources_response.py +0 -0
  24. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/envelope_body.py +0 -0
  25. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/error.py +0 -0
  26. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs404_response.py +0 -0
  27. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_id_not_found_error.py +0 -0
  28. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_log_length_not_found_error.py +0 -0
  29. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_request.py +0 -0
  30. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_logs_response.py +0 -0
  31. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_names404_response.py +0 -0
  32. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_request.py +0 -0
  33. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_package_names_response.py +0 -0
  34. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/fetch_warning.py +0 -0
  35. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_content_sources404_response.py +0 -0
  36. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/get_package_record404_response.py +0 -0
  37. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_get.py +0 -0
  38. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_upload.py +0 -0
  39. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/http_upload_headers.py +0 -0
  40. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/incorrect_proof_error.py +0 -0
  41. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/ledger_sources_response.py +0 -0
  42. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/ledger_sources_response_sources_inner.py +0 -0
  43. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/missing_content.py +0 -0
  44. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/package_not_included_error.py +0 -0
  45. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/package_record.py +0 -0
  46. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/processing_record.py +0 -0
  47. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency404_response.py +0 -0
  48. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_request.py +0 -0
  49. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_consistency_response.py +0 -0
  50. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion404_response.py +0 -0
  51. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion422_response.py +0 -0
  52. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion_request.py +0 -0
  53. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/prove_inclusion_response.py +0 -0
  54. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record404_response.py +0 -0
  55. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record409_response.py +0 -0
  56. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/publish_package_record_request.py +0 -0
  57. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/published_record.py +0 -0
  58. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/published_record_envelope.py +0 -0
  59. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/rejected_record.py +0 -0
  60. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/signature.py +0 -0
  61. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/signed_checkpoint.py +0 -0
  62. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/sourcing_record.py +0 -0
  63. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/models/timestamped_checkpoint.py +0 -0
  64. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/py.typed +0 -0
  65. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/warg_openapi/rest.py +0 -0
  66. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/lib.py +0 -0
  67. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/registry.py +0 -0
  68. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/util.py +0 -0
  69. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/__init__.py +0 -0
  70. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/actions.py +0 -0
  71. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/client.py +0 -0
  72. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/crypto.py +0 -0
  73. {wasm_action-0.0.3 → wasm_action-0.0.4}/src/wasm_action/warg/proto.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wasm-action
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Interact with WebAssembly registries.
5
5
  Requires-Dist: click>=8.2.1
6
6
  Requires-Dist: cryptography>=45.0.6
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "wasm-action"
3
- version = "0.0.3"
3
+ version = "0.0.4"
4
4
  description = "Interact with WebAssembly registries."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -0,0 +1,9 @@
1
+
2
+ import importlib.metadata
3
+
4
+ try:
5
+ __version__ = importlib.metadata.version("wasm-action")
6
+ except importlib.metadata.PackageNotFoundError:
7
+ __version__ = "0.0.0"
8
+
9
+ from .lib import push, pull
@@ -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:
@@ -1,2 +0,0 @@
1
-
2
- from .lib import push, pull
File without changes