blocks-cli 0.1.32__tar.gz → 0.1.33__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 (26) hide show
  1. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/PKG-INFO +1 -1
  2. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/bundles.py +9 -7
  3. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/push.py +1 -1
  4. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/setup.py +1 -1
  5. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/LICENSE +0 -0
  6. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/MANIFEST.in +0 -0
  7. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/README.md +0 -0
  8. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/__init__.py +0 -0
  9. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/api.py +0 -0
  10. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/builds.py +0 -0
  11. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/__base__.py +0 -0
  12. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/__init__.py +0 -0
  13. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/configure.py +0 -0
  14. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/create.py +0 -0
  15. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/init.py +0 -0
  16. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/commands/test.py +0 -0
  17. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/__init__.py +0 -0
  18. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/auth.py +0 -0
  19. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/config/config.py +0 -0
  20. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/console.py +0 -0
  21. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/fs.py +0 -0
  22. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/package.py +0 -0
  23. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli/registration.py +0 -0
  24. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/blocks_cli.egg-info/SOURCES.txt +0 -0
  25. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/requirements.txt +0 -0
  26. {blocks-cli-0.1.32 → blocks-cli-0.1.33}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blocks-cli
3
- Version: 0.1.32
3
+ Version: 0.1.33
4
4
  Summary: CLI tool for Blocks, a platform for writing custom AI-enabled codebase automations in Python. Leverage a full codebase-aware API. Automatically trigger automations from Github, Slack, and other providers.
5
5
  Home-page: https://github.com/BlocksOrg/sdk
6
6
  Author: BlocksOrg
@@ -16,15 +16,17 @@ def get_bundle_upload_url():
16
16
 
17
17
  def upload_bundle_zip(bundle_upload_url: str, base_path: Path, zip_file_path: Optional[Path] = None, delete_after_upload: bool = True):
18
18
  try:
19
- # Determine zip filename based on provided path or generate a unique one
19
+ random_file_name = str(uuid.uuid4())
20
+ zip_filename_only = f"{random_file_name}.zip"
21
+
20
22
  if zip_file_path:
21
- zip_filename = str(zip_file_path)
22
- # Ensure the directory exists
23
- zip_file_path.parent.mkdir(parents=True, exist_ok=True)
23
+ # Use provided directory path
24
+ zip_directory = zip_file_path
25
+ zip_directory.mkdir(parents=True, exist_ok=True)
26
+ zip_filename = str(zip_directory / zip_filename_only)
24
27
  else:
25
- # Generate a unique ID for the run
26
- random_file_name = str(uuid.uuid4())
27
- zip_filename = f"{random_file_name}.zip"
28
+ # Use current directory
29
+ zip_filename = zip_filename_only
28
30
 
29
31
  if os.path.exists(zip_filename):
30
32
  os.remove(zip_filename)
@@ -75,7 +75,7 @@ def push(file: Path = typer.Argument(..., help="Name of blocks file to push.")):
75
75
  init_progress.update(
76
76
  init_task, total=1, description="Bundle uploaded successfully"
77
77
  )
78
- upload_bundle_zip(bundle_upload_url, cwd)
78
+ upload_bundle_zip(bundle_upload_url, cwd, cwd.parent)
79
79
  init_progress.update(
80
80
  init_task, total=1, description="Bundle uploaded successfully"
81
81
  )
@@ -6,7 +6,7 @@ with open("requirements.txt") as f:
6
6
 
7
7
  setup(
8
8
  name="blocks-cli",
9
- version="0.1.32",
9
+ version="0.1.33",
10
10
  packages=find_packages(),
11
11
  include_package_data=True,
12
12
  install_requires=requirements,
File without changes
File without changes
File without changes
File without changes