vaultctl 0.2.0__tar.gz → 0.2.2__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 (25) hide show
  1. {vaultctl-0.2.0 → vaultctl-0.2.2}/PKG-INFO +1 -1
  2. {vaultctl-0.2.0 → vaultctl-0.2.2}/pyproject.toml +1 -1
  3. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/backup_raft_snapshot.py +1 -1
  4. vaultctl-0.2.2/src/vaultctl/version.py +17 -0
  5. {vaultctl-0.2.0 → vaultctl-0.2.2}/uv.lock +1 -1
  6. vaultctl-0.2.0/src/vaultctl/version.py +0 -8
  7. {vaultctl-0.2.0 → vaultctl-0.2.2}/.devcontainer/devcontainer-lock.json +0 -0
  8. {vaultctl-0.2.0 → vaultctl-0.2.2}/.devcontainer/devcontainer.json +0 -0
  9. {vaultctl-0.2.0 → vaultctl-0.2.2}/.github/workflows/docker-publish.yaml +0 -0
  10. {vaultctl-0.2.0 → vaultctl-0.2.2}/.github/workflows/release.yaml +0 -0
  11. {vaultctl-0.2.0 → vaultctl-0.2.2}/.gitignore +0 -0
  12. {vaultctl-0.2.0 → vaultctl-0.2.2}/.renovaterc.json5 +0 -0
  13. {vaultctl-0.2.0 → vaultctl-0.2.2}/Dockerfile +0 -0
  14. {vaultctl-0.2.0 → vaultctl-0.2.2}/LICENSE +0 -0
  15. {vaultctl-0.2.0 → vaultctl-0.2.2}/README.md +0 -0
  16. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/__init__.py +0 -0
  17. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/__init__.py +0 -0
  18. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/bootstrap.py +0 -0
  19. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/login.py +0 -0
  20. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/pki/__init__.py +0 -0
  21. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/pki/rotate_issuing.py +0 -0
  22. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/commands/restore_raft_snapshot.py +0 -0
  23. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/main.py +0 -0
  24. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/options.py +0 -0
  25. {vaultctl-0.2.0 → vaultctl-0.2.2}/src/vaultctl/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vaultctl
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: vaultctl is a command-line interface (CLI) tool designed to facilitate operations with HashiCorp Vault.
5
5
  Author-email: d4rkfella <georgi.panov@darkfellanetwork.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "vaultctl"
3
- version = "0.2.0"
3
+ version = "0.2.2"
4
4
  description = "vaultctl is a command-line interface (CLI) tool designed to facilitate operations with HashiCorp Vault."
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -208,7 +208,7 @@ def backup_raft_snapshot( # noqa: PLR0913
208
208
  else:
209
209
  s3_bucket, s3_key = parse_s3_uri(destination)
210
210
 
211
- if s3_key.endswith("/"):
211
+ if not s3_key or s3_key.endswith("/"):
212
212
  timestamp = datetime.datetime.now(tz=datetime.UTC).strftime("%Y%m%d_%H%M%S")
213
213
  snapshot_name = f"vault-snapshot-{timestamp}.snap"
214
214
  s3_key = f"{s3_key}{snapshot_name}"
@@ -0,0 +1,17 @@
1
+ import importlib.metadata
2
+
3
+ import typer
4
+
5
+ app = typer.Typer()
6
+
7
+
8
+ def _get_version() -> str:
9
+ try:
10
+ return importlib.metadata.version("vaultctl")
11
+ except importlib.metadata.PackageNotFoundError:
12
+ return "unknown"
13
+
14
+
15
+ @app.command()
16
+ def version() -> None:
17
+ print(f"vaultctl {_get_version()}") # noqa: T201
@@ -411,7 +411,7 @@ wheels = [
411
411
 
412
412
  [[package]]
413
413
  name = "vaultctl"
414
- version = "0.2.0"
414
+ version = "0.2.2"
415
415
  source = { editable = "." }
416
416
  dependencies = [
417
417
  { name = "boto3" },
@@ -1,8 +0,0 @@
1
- import typer
2
-
3
- app = typer.Typer()
4
-
5
-
6
- @app.command()
7
- def version() -> None:
8
- print("vaultctl 0.1.0") # noqa: T201
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes