qbraid-cli 0.8.4b0__tar.gz → 0.8.5a0__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.
Potentially problematic release.
This version of qbraid-cli might be problematic. Click here for more details.
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/bump-version.yml +2 -2
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/pre-release.yml +1 -1
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/PKG-INFO +2 -3
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/pyproject.toml +2 -3
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/_version.py +2 -2
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/jobs/toggle_braket.py +32 -3
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/PKG-INFO +2 -3
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/requires.txt +1 -1
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_toggle_braket_enable.py +16 -3
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/kernels/test_kernels_list.py +6 -1
- qbraid_cli-0.8.5a0/tools/bump_version.py +28 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tools/stamp_pre_release.py +3 -3
- qbraid_cli-0.8.4b0/tools/bump_version.py +0 -21
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.env.example +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/docs.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/format.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/main.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/publish.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.github/workflows/tag-on-merge.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.gitignore +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/.readthedocs.yml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/CONTRIBUTING.md +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/LICENSE +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/MANIFEST.IN +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/Makefile +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/README.md +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/Makefile +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/api-key.png +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/cards/jupyter.png +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/cards/python.png +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/cards/terminal.png +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/favicon.ico +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/logo.png +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/style/custom.css +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/_static/style/s4defs-roles.css +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/configure.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/credits.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/devices-list.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/devices.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/envs-activate.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/envs-list.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/envs-uninstall.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/envs.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/jobs-add.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/jobs-disable.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/jobs-enable.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/jobs-list.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/jobs.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/kernels.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/cli/qbraid.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/conf.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/guide/overview.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/index.rst +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/make.bat +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/docs/requirements.txt +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/admin/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/admin/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/admin/buildlogs.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/admin/headers.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/admin/validation.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/configure/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/configure/actions.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/configure/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/credits/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/credits/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/devices/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/devices/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/devices/validation.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/envs/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/envs/activate.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/envs/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/envs/create.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/envs/data_handling.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/exceptions.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/handlers.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/jobs/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/jobs/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/jobs/validation.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/kernels/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/kernels/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/main.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/pip/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/pip/app.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/pip/hooks.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli/py.typed +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/SOURCES.txt +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/dependency_links.txt +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/entry_points.txt +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/qbraid_cli.egg-info/top_level.txt +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/ruff.toml +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/setup.cfg +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/configure/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/configure/test_configure_prompt_for_config.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/configure/test_configure_set.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/configure/test_configure_validate_input.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/credits/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/credits/test_credits_value.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/devices/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/devices/test_devices_list.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/devices/test_devices_validations.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_activate.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_activate_find_shell_rc.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_activate_print_command.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_activate_pyenv.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_list.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/envs/test_envs_remove.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_disable.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_enable.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_list.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_state.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_toggle_braket_confirm.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_toggle_braket_disable.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_toggle_braket_get_data.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_validate_get_state.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_validate_handle_state.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/jobs/test_jobs_validate_library.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/kernels/__init__.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tools/create_dev_build.sh +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tools/install_wheel_extras.sh +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tools/split_md.py +0 -0
- {qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tools/split_rst.py +0 -0
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
- name: Install dependencies
|
|
37
37
|
run: |
|
|
38
38
|
python -m pip install --upgrade pip
|
|
39
|
-
python -m pip install "qbraid-core>=0.1.
|
|
39
|
+
python -m pip install "qbraid-core>=0.1.17"
|
|
40
40
|
|
|
41
41
|
- name: Setup Git config
|
|
42
42
|
run: |
|
|
@@ -47,7 +47,7 @@ jobs:
|
|
|
47
47
|
id: bump_version
|
|
48
48
|
run: |
|
|
49
49
|
BUMP_TYPE=${{ github.event.inputs.bump_type }}
|
|
50
|
-
VERSION=$(python3 tools/bump_version.py $BUMP_TYPE)
|
|
50
|
+
VERSION=$(python3 tools/bump_version.py qbraid_cli $BUMP_TYPE)
|
|
51
51
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
52
52
|
git commit -am "Bump $BUMP_TYPE version to $VERSION"
|
|
53
53
|
git push origin qbraid-bot/${{ github.run_id }}
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
- name: Build binary wheel + source tarball
|
|
25
25
|
id: build-dev
|
|
26
26
|
run: |
|
|
27
|
-
export PRE_RELEASE_VERSION=$(python tools/stamp_pre_release.py)
|
|
27
|
+
export PRE_RELEASE_VERSION=$(python tools/stamp_pre_release.py qbraid_cli)
|
|
28
28
|
[[ "$PRE_RELEASE_VERSION" =~ .*(-a\.|-b\.|-rc\.).* ]] && echo "Deploying pre-release version '$PRE_RELEASE_VERSION'" || (echo "not pre-release version"; exit 0)
|
|
29
29
|
out_dir="${PWD}/dist"
|
|
30
30
|
tools/create_dev_build.sh $PRE_RELEASE_VERSION "${out_dir}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qbraid-cli
|
|
3
|
-
Version: 0.8.
|
|
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
|
|
@@ -29,7 +28,7 @@ Description-Content-Type: text/markdown
|
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
Requires-Dist: typer>=0.12.1
|
|
31
30
|
Requires-Dist: rich>=10.11.0
|
|
32
|
-
Requires-Dist: qbraid-core[environments]>=0.1.
|
|
31
|
+
Requires-Dist: qbraid-core[environments]>=0.1.17
|
|
33
32
|
Provides-Extra: jobs
|
|
34
33
|
Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
|
|
35
34
|
Provides-Extra: dev
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qbraid-cli"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.5-alpha"
|
|
8
8
|
description = "Command Line Interface for interacting with all parts of the qBraid platform."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "qBraid Development Team", email = "contact@qbraid.com" }]
|
|
@@ -29,7 +29,7 @@ classifiers = [
|
|
|
29
29
|
dependencies = [
|
|
30
30
|
"typer>=0.12.1",
|
|
31
31
|
"rich>=10.11.0",
|
|
32
|
-
"qbraid-core[environments]>=0.1.
|
|
32
|
+
"qbraid-core[environments]>=0.1.17",
|
|
33
33
|
]
|
|
34
34
|
requires-python = ">= 3.9"
|
|
35
35
|
|
|
@@ -38,7 +38,6 @@ Homepage = "https://docs.qbraid.com/cli/user-guide/overview"
|
|
|
38
38
|
Documentation = "https://docs.qbraid.com/cli/api-reference/qbraid"
|
|
39
39
|
"Bug Tracker" = "https://github.com/qBraid/community/issues"
|
|
40
40
|
Discord = "https://discord.gg/KugF6Cnncm"
|
|
41
|
-
"Launch on Lab" = "https://account.qbraid.com/?gitHubUrl=https://github.com/qBraid/.git"
|
|
42
41
|
|
|
43
42
|
[project.optional-dependencies]
|
|
44
43
|
jobs = ["amazon-braket-sdk>=1.48.1"]
|
|
@@ -12,5 +12,5 @@ __version__: str
|
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
|
13
13
|
version_tuple: VERSION_TUPLE
|
|
14
14
|
|
|
15
|
-
__version__ = version = '0.1.dev1+
|
|
16
|
-
__version_tuple__ = version_tuple = (0, 1, 'dev1', '
|
|
15
|
+
__version__ = version = '0.1.dev1+gbba28a4'
|
|
16
|
+
__version_tuple__ = version_tuple = (0, 1, 'dev1', 'gbba28a4')
|
|
@@ -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
|
-
|
|
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(
|
|
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.
|
|
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
|
|
@@ -29,7 +28,7 @@ Description-Content-Type: text/markdown
|
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
Requires-Dist: typer>=0.12.1
|
|
31
30
|
Requires-Dist: rich>=10.11.0
|
|
32
|
-
Requires-Dist: qbraid-core[environments]>=0.1.
|
|
31
|
+
Requires-Dist: qbraid-core[environments]>=0.1.17
|
|
33
32
|
Provides-Extra: jobs
|
|
34
33
|
Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
|
|
35
34
|
Provides-Extra: dev
|
|
@@ -12,7 +12,7 @@ from unittest.mock import call, patch
|
|
|
12
12
|
import pytest
|
|
13
13
|
import typer
|
|
14
14
|
|
|
15
|
-
from qbraid_cli.jobs.toggle_braket import enable_braket
|
|
15
|
+
from qbraid_cli.jobs.toggle_braket import enable_braket, fetch_botocore_version
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def test_helper_function_invocations():
|
|
@@ -37,10 +37,12 @@ def test_subprocess_calls():
|
|
|
37
37
|
"""Test the subprocess calls within `enable_braket`."""
|
|
38
38
|
mock_python_path = "/usr/bin/python"
|
|
39
39
|
|
|
40
|
+
version = fetch_botocore_version()
|
|
41
|
+
|
|
40
42
|
with (
|
|
41
43
|
patch(
|
|
42
44
|
"qbraid_cli.jobs.toggle_braket.get_package_data",
|
|
43
|
-
return_value=("1.0.0",
|
|
45
|
+
return_value=("1.0.0", version, "/some/path", mock_python_path),
|
|
44
46
|
),
|
|
45
47
|
patch("qbraid_cli.jobs.toggle_braket.confirm_updates"),
|
|
46
48
|
patch("qbraid_cli.jobs.toggle_braket.aws_configure_dummy"),
|
|
@@ -50,7 +52,18 @@ def test_subprocess_calls():
|
|
|
50
52
|
|
|
51
53
|
# Expected subprocess calls in order
|
|
52
54
|
expected_calls = [
|
|
53
|
-
call(
|
|
55
|
+
call(
|
|
56
|
+
[
|
|
57
|
+
mock_python_path,
|
|
58
|
+
"-m",
|
|
59
|
+
"pip",
|
|
60
|
+
"install",
|
|
61
|
+
"amazon-braket-sdk",
|
|
62
|
+
"--upgrade",
|
|
63
|
+
"--upgrade-strategy eager",
|
|
64
|
+
]
|
|
65
|
+
),
|
|
66
|
+
call([mock_python_path, "-m", "pip", "install", f"boto3=={version}"]),
|
|
54
67
|
call([mock_python_path, "-m", "pip", "uninstall", "botocore", "-y", "--quiet"]),
|
|
55
68
|
call(
|
|
56
69
|
[
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Copyright (c) 2024, qBraid Development Team
|
|
2
2
|
# All rights reserved.
|
|
3
3
|
|
|
4
|
+
# pylint: disable=unused-argument
|
|
5
|
+
|
|
4
6
|
"""
|
|
5
7
|
Unit tests for commands and helper functions in the 'qbraid envs' namespace.
|
|
6
8
|
|
|
@@ -12,6 +14,7 @@ from qbraid_cli.kernels.app import kernels_list
|
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
def mock_is_exe(path):
|
|
17
|
+
"""Mock function checking if given path is a valid executable."""
|
|
15
18
|
return path == "/path/to/bin/python3", "-m", "ipykernel_launcher", "-f", "test"
|
|
16
19
|
|
|
17
20
|
|
|
@@ -70,7 +73,9 @@ def test_kernels_list_multiple_kernels_available(mock_console, mock_list_kernels
|
|
|
70
73
|
|
|
71
74
|
expected_calls = [
|
|
72
75
|
call(
|
|
73
|
-
"# qbraid kernels:\n#\n\npython3
|
|
76
|
+
"# qbraid kernels:\n#\n\npython3 "
|
|
77
|
+
"/path/to/python3/kernel\nanother_kernel "
|
|
78
|
+
"/path/to/another/kernel"
|
|
74
79
|
),
|
|
75
80
|
]
|
|
76
81
|
actual_calls = mock_console.return_value.print.call_args_list
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Copyright (c) 2024, qBraid Development Team
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Script to bump the major, minor, or patch version in pyproject.toml.
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
import pathlib
|
|
9
|
+
import sys
|
|
10
|
+
|
|
11
|
+
from qbraid_core.system.versions import (
|
|
12
|
+
bump_version,
|
|
13
|
+
get_latest_package_version,
|
|
14
|
+
update_version_in_pyproject,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
if __name__ == "__main__":
|
|
18
|
+
|
|
19
|
+
package_name = sys.argv[1]
|
|
20
|
+
bump_type = sys.argv[2]
|
|
21
|
+
|
|
22
|
+
root = pathlib.Path(__file__).parent.parent.resolve()
|
|
23
|
+
pyproject_toml_path = root / "pyproject.toml"
|
|
24
|
+
|
|
25
|
+
current_version = get_latest_package_version(package_name)
|
|
26
|
+
bumped_version = bump_version(current_version, bump_type)
|
|
27
|
+
update_version_in_pyproject(pyproject_toml_path, bumped_version)
|
|
28
|
+
print(bumped_version)
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
Script for getting/bumping the next pre-release version.
|
|
6
6
|
|
|
7
7
|
"""
|
|
8
|
-
|
|
9
8
|
import pathlib
|
|
9
|
+
import sys
|
|
10
10
|
|
|
11
11
|
from qbraid_core.system.versions import get_prelease_version
|
|
12
12
|
|
|
13
13
|
if __name__ == "__main__":
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
package_name = sys.argv[1]
|
|
16
16
|
root = pathlib.Path(__file__).parent.parent.resolve()
|
|
17
|
-
version = get_prelease_version(root,
|
|
17
|
+
version = get_prelease_version(root, package_name)
|
|
18
18
|
print(version)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2024, qBraid Development Team
|
|
2
|
-
# All rights reserved.
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Script to bump the major, minor, or patch version in pyproject.toml.
|
|
6
|
-
|
|
7
|
-
"""
|
|
8
|
-
import pathlib
|
|
9
|
-
import sys
|
|
10
|
-
|
|
11
|
-
from qbraid_core.system.versions import bump_version, extract_version, update_version_in_pyproject
|
|
12
|
-
|
|
13
|
-
if __name__ == "__main__":
|
|
14
|
-
|
|
15
|
-
bump_type = sys.argv[1]
|
|
16
|
-
root = pathlib.Path(__file__).parent.parent.resolve()
|
|
17
|
-
pyproject_toml_path = root / "pyproject.toml"
|
|
18
|
-
old_version = extract_version(pyproject_toml_path)
|
|
19
|
-
new_version = bump_version(old_version, bump_type)
|
|
20
|
-
update_version_in_pyproject(pyproject_toml_path, new_version)
|
|
21
|
-
print(new_version)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qbraid_cli-0.8.4b0 → qbraid_cli-0.8.5a0}/tests/configure/test_configure_prompt_for_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|