ensec-cli 1.0.9__tar.gz → 1.0.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ensec-cli
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: EncryptSecureDEC Open Source CLI
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1 @@
1
+ __version__ = "1.0.10"
@@ -16,14 +16,12 @@ from . import wavencode
16
16
  from . import rsa_encryptor
17
17
  from pathlib import Path
18
18
  from .conf_load import load_config
19
- from . import __version__
19
+ from . import __version__ as VERSION
20
20
 
21
21
  # OKならそのまま続行
22
22
 
23
23
  conf=load_config()
24
24
 
25
-
26
-
27
25
  BLOCKCHAIN_HEADER = b'BLOCKCHAIN_DATA_START\n'
28
26
  def _format_bytes(num: int) -> str:
29
27
  units = ["B", "KB", "MB", "GB", "TB", "PB"]
@@ -289,12 +287,9 @@ def main():
289
287
  parser.add_argument("--dir", action="store_true",help="Encrypt Dir mode")
290
288
  parser.add_argument("--pubkey", help="Path to public key file (only required in RSA encrypt mode)")
291
289
  parser.add_argument("--keyfile",help="Use a file as the password source for encryption/decryption")
292
- parser.add_argument("--version",help="Show ENSEC_CLI Version")
290
+ parser.add_argument("--version",action="version",version=f"ENSEC_CLI {__version__}")
293
291
  args = parser.parse_args()
294
292
 
295
- if args.version:
296
- print(__version__)
297
- sys.exit(0)
298
293
  # --- validate RSA/pubkey usage ---
299
294
  # --- validate RSA/pubkey usage ---
300
295
  if args.rsa:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ensec-cli
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: EncryptSecureDEC Open Source CLI
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ensec-cli"
7
- version = "1.0.9"
7
+ version = "1.0.10"
8
8
  description = "EncryptSecureDEC Open Source CLI"
9
9
  requires-python = ">=3.9"
10
10
  readme = "README.md"
@@ -1 +0,0 @@
1
- __version__ = "1.0.9"
File without changes
File without changes
File without changes
File without changes