qbraid-cli 0.8.4b0__py3-none-any.whl → 0.8.5a0__py3-none-any.whl

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.

Potentially problematic release.


This version of qbraid-cli might be problematic. Click here for more details.

qbraid_cli/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.8.4b0'
16
- __version_tuple__ = version_tuple = (0, 8, 4)
15
+ __version__ = version = '0.8.5a0'
16
+ __version_tuple__ = version_tuple = (0, 8, 5)
@@ -5,13 +5,14 @@
5
5
  Module supporting 'qbraid jobs enable/disable braket' and commands.
6
6
 
7
7
  """
8
-
9
8
  import logging
10
9
  import os
10
+ import re
11
11
  import subprocess
12
12
  from pathlib import Path
13
13
  from typing import Optional, Tuple
14
14
 
15
+ import requests
15
16
  import typer
16
17
 
17
18
  from qbraid_cli.exceptions import QbraidException
@@ -21,6 +22,18 @@ logging.basicConfig(level=logging.INFO)
21
22
  logger = logging.getLogger(__name__)
22
23
 
23
24
 
25
+ def fetch_botocore_version() -> Optional[str]:
26
+ """Fetch the latest version of the botocore package from the qBraid GitHub repository."""
27
+ url = "https://raw.githubusercontent.com/qBraid/botocore/develop/botocore/__init__.py"
28
+ response = requests.get(url, timeout=5)
29
+ if response.status_code == 200:
30
+ content = response.text
31
+ version_match = re.search(r"__version__\s*=\s*['\"]([^'\"]+)['\"]", content)
32
+ if version_match:
33
+ return version_match.group(1)
34
+ return None
35
+
36
+
24
37
  def get_package_data(package: str) -> Tuple[str, str, str, str]:
25
38
  """Retrieve package version and location data.
26
39
 
@@ -45,7 +58,12 @@ def get_package_data(package: str) -> Tuple[str, str, str, str]:
45
58
  python_pathlib = get_active_python_path()
46
59
  site_packages_path = get_active_site_packages_path(python_path=python_pathlib)
47
60
  installed_version = get_local_package_version(package, python_path=python_pathlib)
48
- latest_version = get_latest_package_version(package)
61
+
62
+ latest_version = None
63
+ if package == "botocore":
64
+ latest_version = fetch_botocore_version()
65
+ latest_version = latest_version or get_latest_package_version(package)
66
+
49
67
  except QbraidSystemError as err:
50
68
  raise QbraidException("Failed to retrieve required system and/or package metadata") from err
51
69
 
@@ -139,7 +157,18 @@ def enable_braket(auto_confirm: bool = False):
139
157
  aws_configure_dummy() # TODO: possibly add another confirmation for writing aws config files
140
158
 
141
159
  try:
142
- subprocess.check_call([python_exe, "-m", "pip", "install", "--upgrade", "boto3"])
160
+ subprocess.check_call(
161
+ [
162
+ python_exe,
163
+ "-m",
164
+ "pip",
165
+ "install",
166
+ "amazon-braket-sdk",
167
+ "--upgrade",
168
+ "--upgrade-strategy eager",
169
+ ]
170
+ )
171
+ subprocess.check_call([python_exe, "-m", "pip", "install", f"boto3=={latest}"])
143
172
  subprocess.check_call([python_exe, "-m", "pip", "uninstall", "botocore", "-y", "--quiet"])
144
173
  subprocess.check_call(
145
174
  [python_exe, "-m", "pip", "install", "git+https://github.com/qBraid/botocore.git"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qbraid-cli
3
- Version: 0.8.4b0
3
+ Version: 0.8.5a0
4
4
  Summary: Command Line Interface for interacting with all parts of the qBraid platform.
5
5
  Author-email: qBraid Development Team <contact@qbraid.com>
6
6
  License: Proprietary
@@ -8,7 +8,6 @@ Project-URL: Homepage, https://docs.qbraid.com/cli/user-guide/overview
8
8
  Project-URL: Documentation, https://docs.qbraid.com/cli/api-reference/qbraid
9
9
  Project-URL: Bug Tracker, https://github.com/qBraid/community/issues
10
10
  Project-URL: Discord, https://discord.gg/KugF6Cnncm
11
- Project-URL: Launch on Lab, https://account.qbraid.com/?gitHubUrl=https://github.com/qBraid/.git
12
11
  Keywords: qbraid,cli,quantum,cloud
13
12
  Classifier: Development Status :: 5 - Production/Stable
14
13
  Classifier: Intended Audience :: Developers
@@ -27,17 +26,17 @@ Classifier: Programming Language :: Python :: 3.12
27
26
  Requires-Python: >=3.9
28
27
  Description-Content-Type: text/markdown
29
28
  License-File: LICENSE
30
- Requires-Dist: typer >=0.12.1
31
- Requires-Dist: rich >=10.11.0
32
- Requires-Dist: qbraid-core[environments] >=0.1.17b0
29
+ Requires-Dist: typer>=0.12.1
30
+ Requires-Dist: rich>=10.11.0
31
+ Requires-Dist: qbraid-core[environments]>=0.1.17
33
32
  Provides-Extra: dev
34
- Requires-Dist: ruff ; extra == 'dev'
35
- Requires-Dist: isort ; extra == 'dev'
36
- Requires-Dist: black ; extra == 'dev'
37
- Requires-Dist: pytest ; extra == 'dev'
38
- Requires-Dist: pytest-cov ; extra == 'dev'
33
+ Requires-Dist: ruff; extra == "dev"
34
+ Requires-Dist: isort; extra == "dev"
35
+ Requires-Dist: black; extra == "dev"
36
+ Requires-Dist: pytest; extra == "dev"
37
+ Requires-Dist: pytest-cov; extra == "dev"
39
38
  Provides-Extra: jobs
40
- Requires-Dist: amazon-braket-sdk >=1.48.1 ; extra == 'jobs'
39
+ Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
41
40
 
42
41
  <img width="full" alt="qbraid_cli" src="https://qbraid-static.s3.amazonaws.com/logos/qbraid-cli-banner.png">
43
42
 
@@ -1,5 +1,5 @@
1
1
  qbraid_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- qbraid_cli/_version.py,sha256=xxgvY5XfpaWOOXoAtSX7S4dbyMvWcDWbZ4UDV_0Nkto,413
2
+ qbraid_cli/_version.py,sha256=VWkeKus47iV1Bv4YEhr2wovo4myqcqH0L32mmm6y76Q,413
3
3
  qbraid_cli/exceptions.py,sha256=KjlhYJhSHMVazaNiBjD_Ur06w4sekP8zRsFzBdyIpno,672
4
4
  qbraid_cli/handlers.py,sha256=glxTEwxax3zKgYl9qsZ2evZXgrWQrseJS_OGyHTMFeA,7040
5
5
  qbraid_cli/main.py,sha256=AR6qp2hU_3OEg1_RxRSfZkO2ZC3H4z-dz3hzaqeAl-I,2620
@@ -24,16 +24,16 @@ qbraid_cli/envs/create.py,sha256=xudzkLCNegY34zkXN_Vfl_0zVzg_tW83LcVx9quoWfU,988
24
24
  qbraid_cli/envs/data_handling.py,sha256=Ibnp2yJoUDpivb_sNqi0suYgJZNat_LmM6Ya0Ovez5s,1288
25
25
  qbraid_cli/jobs/__init__.py,sha256=qVLRHYIzP4XHpx_QWP_vCzd3LsCscCORaEx-Vcbx29U,172
26
26
  qbraid_cli/jobs/app.py,sha256=kmg9mYla3Nd7EdjQlFu7IOvm7sejLNfPPA6Qeet-IfE,4898
27
- qbraid_cli/jobs/toggle_braket.py,sha256=QVW69MkFyhMZWg_Cl48GgScC084aAG3EgYbyy-PGkqI,6756
27
+ qbraid_cli/jobs/toggle_braket.py,sha256=Qj17hhvTSjmfRnqmkUxE1GyzpdtoBCYbUMyiuQcHodE,7711
28
28
  qbraid_cli/jobs/validation.py,sha256=xNbjUggMhUs4wzkuRm4PuFPi_wrElYicUgYXLznHz3U,2983
29
29
  qbraid_cli/kernels/__init__.py,sha256=jORS9vV17s5laQyq8gSVB18EPBImgEIbMZ1wKC094DA,181
30
30
  qbraid_cli/kernels/app.py,sha256=FedFpQBvK-5Fk7PTGskCHz0l8zIb7E7ex8M6UzobfKA,2923
31
31
  qbraid_cli/pip/__init__.py,sha256=tJtU0rxn-ODogNh5Y4pp_BgDQXMN-3JY1QGj0OZHwjQ,169
32
32
  qbraid_cli/pip/app.py,sha256=Cer_Tteo_k26bTNiLUX2k-XhdSU3wKuj9ZLubbGv7r4,1439
33
33
  qbraid_cli/pip/hooks.py,sha256=KuDHmntPXVK8tSb4MLk9VANhL-eINswhLd8_g_25WMY,2123
34
- qbraid_cli-0.8.4b0.dist-info/LICENSE,sha256=P1gi-ofB8lmkRt_mxDoJpcgQq9Ckq9WhRAS1oYk-G1s,2506
35
- qbraid_cli-0.8.4b0.dist-info/METADATA,sha256=OmDmDS-Lm0cKnkwjGWFp2AdItNeXsFeSQWdWYKi-dyk,6816
36
- qbraid_cli-0.8.4b0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
37
- qbraid_cli-0.8.4b0.dist-info/entry_points.txt,sha256=c5ZJ7NjbxhDqMpou9q5F03_b_KG34HzFDijIDmEIwgQ,47
38
- qbraid_cli-0.8.4b0.dist-info/top_level.txt,sha256=LTYJgeYSCHo9Il8vZu0yIPuGdGyNaIw6iRy6BeoZo8o,11
39
- qbraid_cli-0.8.4b0.dist-info/RECORD,,
34
+ qbraid_cli-0.8.5a0.dist-info/LICENSE,sha256=P1gi-ofB8lmkRt_mxDoJpcgQq9Ckq9WhRAS1oYk-G1s,2506
35
+ qbraid_cli-0.8.5a0.dist-info/METADATA,sha256=C7lmfzgspB4k-KbKpjZ03KNt_rpXsYW9rWqr9JyZMqE,6707
36
+ qbraid_cli-0.8.5a0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
37
+ qbraid_cli-0.8.5a0.dist-info/entry_points.txt,sha256=c5ZJ7NjbxhDqMpou9q5F03_b_KG34HzFDijIDmEIwgQ,47
38
+ qbraid_cli-0.8.5a0.dist-info/top_level.txt,sha256=LTYJgeYSCHo9Il8vZu0yIPuGdGyNaIw6iRy6BeoZo8o,11
39
+ qbraid_cli-0.8.5a0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5