ethernity-cloud-sdk-py 0.2.7__tar.gz → 0.2.9__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 (93) hide show
  1. {ethernity_cloud_sdk_py-0.2.7/ethernity_cloud_sdk_py.egg-info → ethernity_cloud_sdk_py-0.2.9}/PKG-INFO +1 -1
  2. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/init.py +1 -0
  3. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/publish.py +4 -15
  4. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9/ethernity_cloud_sdk_py.egg-info}/PKG-INFO +1 -1
  5. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/setup.py +1 -1
  6. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/LICENSE +0 -0
  7. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/MANIFEST.in +0 -0
  8. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/README.md +0 -0
  9. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/__init__.py +0 -0
  10. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/cli.py +0 -0
  11. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__init__.py +0 -0
  12. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/__init__.cpython-311.pyc +0 -0
  13. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/build.cpython-311.pyc +0 -0
  14. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/config.cpython-311.pyc +0 -0
  15. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/init.cpython-311.pyc +0 -0
  16. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/private_key.cpython-311.pyc +0 -0
  17. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/publish.cpython-311.pyc +0 -0
  18. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/__pycache__/spinner.cpython-311.pyc +0 -0
  19. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/build.py +0 -0
  20. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/config.py +0 -0
  21. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/private_key.py +0 -0
  22. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/publish.py +0 -0
  23. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__init__.py +0 -0
  24. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/__init__.cpython-311.pyc +0 -0
  25. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/build.cpython-311.pyc +0 -0
  26. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/ipfs_client.cpython-311.pyc +0 -0
  27. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/publish.cpython-311.pyc +0 -0
  28. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/runner.cpython-311.pyc +0 -0
  29. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile +0 -0
  30. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base +0 -0
  31. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base.tpl +0 -0
  32. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.tpl +0 -0
  33. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/scripts/binary-fs-build.sh +0 -0
  34. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.crt +0 -0
  35. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.key +0 -0
  36. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/enclave_pub_cert.pem +0 -0
  37. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/input.txt +0 -0
  38. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/payload.py +0 -0
  39. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/public-cert-clean.pem +0 -0
  40. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/result.txt +0 -0
  41. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/transaction.txt +0 -0
  42. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_crypto.py +0 -0
  43. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_exec.py +0 -0
  44. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/image_registry.abi +0 -0
  45. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/key_generation.py +0 -0
  46. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/models.py +0 -0
  47. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/pox.abi +0 -0
  48. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/securelock.py.tmpl +0 -0
  49. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/serverless/Dockerfile.serverless +0 -0
  50. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/serverless/__init__.py +0 -0
  51. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/serverless/backend.py +0 -0
  52. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/serverless/requirements.txt +0 -0
  53. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/swift_stream_service.py +0 -0
  54. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/build.py +0 -0
  55. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/ipfs_client.py +0 -0
  56. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_DOCKER_COMPOSE_HASH.ipfs +0 -0
  57. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_HASH.ipfs +0 -0
  58. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/PUBLIC_KEY.txt +0 -0
  59. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/__init__.py +0 -0
  60. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/__init__.cpython-311.pyc +0 -0
  61. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/image_registry.cpython-311.pyc +0 -0
  62. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/public_key_service.cpython-311.pyc +0 -0
  63. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/cert.pem +0 -0
  64. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/certificate.trustedzone.crt +0 -0
  65. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml +0 -0
  66. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml.tmpl +0 -0
  67. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-swift-stream.yml.tmpl +0 -0
  68. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml +0 -0
  69. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml.tmpl +0 -0
  70. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-pynity-test.yaml.tpl +0 -0
  71. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml +0 -0
  72. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml.tpl +0 -0
  73. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-trustedzone-test.yaml.tpl +0 -0
  74. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.abi +0 -0
  75. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.py +0 -0
  76. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry_runner.py +0 -0
  77. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/key.pem +0 -0
  78. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/predecessor.json +0 -0
  79. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/pynithy/run/public_key_service.py +0 -0
  80. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/commands/spinner.py +0 -0
  81. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/templates/src/ethernity_task.py +0 -0
  82. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/templates/src/serverless/Dockerfile.serverless +0 -0
  83. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/templates/src/serverless/__init__.py +0 -0
  84. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/templates/src/serverless/backend.py +0 -0
  85. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py/templates/src/serverless/requirements.txt +0 -0
  86. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py.egg-info/SOURCES.txt +0 -0
  87. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py.egg-info/dependency_links.txt +0 -0
  88. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py.egg-info/entry_points.txt +0 -0
  89. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py.egg-info/requires.txt +0 -0
  90. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/ethernity_cloud_sdk_py.egg-info/top_level.txt +0 -0
  91. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/setup.cfg +0 -0
  92. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/tests/__init__.py +0 -0
  93. {ethernity_cloud_sdk_py-0.2.7 → ethernity_cloud_sdk_py-0.2.9}/tests/test_example.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-sdk-py
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Ethernity Cloud SDK Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-sdk-py
6
6
  Author: Ethernity Cloud Team
@@ -214,6 +214,7 @@ def main():
214
214
  config.write("IPFS_ENDPOINT", custom_url)
215
215
  config.write("IPFS_TOKEN", ipfs_token or "")
216
216
  config.write("VERSION", 0)
217
+ config.write("PREDECESSOR_HASH_SECURELOCK", "")
217
218
 
218
219
  config.write(
219
220
  "TRUSTED_ZONE_IMAGE",
@@ -32,6 +32,8 @@ from ethernity_cloud_sdk_py.commands.config import Config, config
32
32
  config = Config(Path(".config.json").resolve())
33
33
  config.load()
34
34
 
35
+ image_registry = ImageRegistry()
36
+
35
37
  def prompt(question, default_value=None):
36
38
  """
37
39
  Prompt user for input with an optional default value.
@@ -101,21 +103,8 @@ def process_yaml_template(template_file, output_file, mrenclave_securelock):
101
103
  PREDECESSOR_PROJECT_NAME = ""
102
104
  PREDECESSOR_VERSION = ""
103
105
 
104
- CONFIG_PREDECESSOR = config.read("PREDECESSOR_HASH_SECURELOCK")
105
-
106
- if CONFIG_PREDECESSOR != "":
107
- PREDECESSOR_HASH_SECURELOCK = CONFIG_PREDECESSOR.split("$$$%$")[0]
108
- PREDECESSOR_PROJECT_NAME = CONFIG_PREDECESSOR.split("$$$%$")[1]
109
- PREDECESSOR_VERSION = CONFIG_PREDECESSOR.split("$$$%$")[2]
110
106
 
111
- if (
112
- PREDECESSOR_HASH_SECURELOCK != ""
113
- and (
114
- PREDECESSOR_PROJECT_NAME != config.read("PROJECT_NAME")
115
- or PREDECESSOR_VERSION != config.read("VERSION")
116
- )
117
- ):
118
- PREDECESSOR_HASH_SECURELOCK = ""
107
+ PREDECESSOR_HASH_SECURELOCK = ""
119
108
 
120
109
  replacements = {
121
110
  "PREDECESSOR": (
@@ -399,7 +388,7 @@ def update_cas_session():
399
388
  exit(1)
400
389
  def main(private_key):
401
390
  spinner = Spinner()
402
- image_registry = ImageRegistry(private_key)
391
+ image_registry.set_private_key(private_key)
403
392
  ipfs_client = IPFSClient(config.read("IPFS_ENDPOINT"))
404
393
  BLOCKCHAIN_NETWORK = config.read("BLOCKCHAIN_NETWORK")
405
394
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-sdk-py
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Ethernity Cloud SDK Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-sdk-py
6
6
  Author: Ethernity Cloud Team
@@ -5,7 +5,7 @@ this_directory = Path(__file__).parent
5
5
  long_description = (this_directory / "README.md").read_text()
6
6
  setup(
7
7
  name="ethernity-cloud-sdk-py",
8
- version="0.2.7",
8
+ version="0.2.9",
9
9
  url="https://github.com/ethernity-cloud/ethernity-cloud-sdk-py",
10
10
  author="Ethernity Cloud Team",
11
11
  author_email="contact@ethernity.cloud",