qbraid-cli 0.8.2__tar.gz → 0.8.3__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.

Files changed (127) hide show
  1. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/ISSUE_TEMPLATE/bug_report.yml +1 -8
  2. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -9
  3. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/workflows/docs.yml +3 -3
  4. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/workflows/format.yml +3 -3
  5. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/workflows/main.yml +9 -13
  6. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/workflows/pre-release.yml +2 -2
  7. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/workflows/publish.yml +2 -2
  8. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/CONTRIBUTING.md +5 -0
  9. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/PKG-INFO +4 -3
  10. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/README.md +1 -1
  11. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/pyproject.toml +7 -10
  12. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/_version.py +2 -2
  13. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/envs/app.py +10 -6
  14. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/kernels/app.py +9 -5
  15. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/PKG-INFO +4 -3
  16. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/requires.txt +2 -1
  17. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/kernels/test_kernels_list.py +6 -14
  18. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.env.example +0 -0
  19. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  20. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.gitignore +0 -0
  21. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/.readthedocs.yml +0 -0
  22. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/LICENSE +0 -0
  23. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/MANIFEST.IN +0 -0
  24. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/Makefile +0 -0
  25. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/Makefile +0 -0
  26. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/api-key.png +0 -0
  27. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/cards/jupyter.png +0 -0
  28. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/cards/python.png +0 -0
  29. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/cards/terminal.png +0 -0
  30. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/favicon.ico +0 -0
  31. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/logo.png +0 -0
  32. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/style/custom.css +0 -0
  33. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/_static/style/s4defs-roles.css +0 -0
  34. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/configure.rst +0 -0
  35. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/credits.rst +0 -0
  36. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/devices-list.rst +0 -0
  37. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/devices.rst +0 -0
  38. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/envs-activate.rst +0 -0
  39. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/envs-list.rst +0 -0
  40. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/envs-uninstall.rst +0 -0
  41. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/envs.rst +0 -0
  42. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/jobs-add.rst +0 -0
  43. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/jobs-disable.rst +0 -0
  44. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/jobs-enable.rst +0 -0
  45. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/jobs-list.rst +0 -0
  46. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/jobs.rst +0 -0
  47. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/kernels.rst +0 -0
  48. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/cli/qbraid.rst +0 -0
  49. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/conf.py +0 -0
  50. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/guide/overview.rst +0 -0
  51. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/index.rst +0 -0
  52. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/make.bat +0 -0
  53. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/docs/requirements.txt +0 -0
  54. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/__init__.py +0 -0
  55. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/admin/__init__.py +0 -0
  56. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/admin/app.py +0 -0
  57. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/admin/buildlogs.py +0 -0
  58. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/admin/headers.py +0 -0
  59. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/admin/validation.py +0 -0
  60. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/configure/__init__.py +0 -0
  61. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/configure/actions.py +0 -0
  62. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/configure/app.py +0 -0
  63. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/credits/__init__.py +0 -0
  64. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/credits/app.py +0 -0
  65. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/devices/__init__.py +0 -0
  66. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/devices/app.py +0 -0
  67. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/devices/validation.py +0 -0
  68. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/envs/__init__.py +0 -0
  69. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/envs/activate.py +0 -0
  70. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/envs/create.py +0 -0
  71. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/envs/data_handling.py +0 -0
  72. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/exceptions.py +0 -0
  73. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/handlers.py +0 -0
  74. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/jobs/__init__.py +0 -0
  75. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/jobs/app.py +0 -0
  76. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/jobs/toggle_braket.py +0 -0
  77. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/jobs/validation.py +0 -0
  78. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/kernels/__init__.py +0 -0
  79. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/main.py +0 -0
  80. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/pip/__init__.py +0 -0
  81. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/pip/app.py +0 -0
  82. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/pip/hooks.py +0 -0
  83. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli/py.typed +0 -0
  84. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/SOURCES.txt +0 -0
  85. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/dependency_links.txt +0 -0
  86. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/entry_points.txt +0 -0
  87. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/qbraid_cli.egg-info/top_level.txt +0 -0
  88. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/ruff.toml +0 -0
  89. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/setup.cfg +0 -0
  90. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/__init__.py +0 -0
  91. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/configure/__init__.py +0 -0
  92. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/configure/test_configure_prompt_for_config.py +0 -0
  93. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/configure/test_configure_set.py +0 -0
  94. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/configure/test_configure_validate_input.py +0 -0
  95. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/credits/__init__.py +0 -0
  96. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/credits/test_credits_value.py +0 -0
  97. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/devices/__init__.py +0 -0
  98. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/devices/test_devices_list.py +0 -0
  99. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/devices/test_devices_validations.py +0 -0
  100. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/__init__.py +0 -0
  101. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_activate.py +0 -0
  102. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_activate_find_shell_rc.py +0 -0
  103. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_activate_print_command.py +0 -0
  104. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_activate_pyenv.py +0 -0
  105. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_create.py +0 -0
  106. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_create_qbraid_env_assets.py +0 -0
  107. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_create_validate_env_name.py +0 -0
  108. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_list.py +0 -0
  109. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/envs/test_envs_remove.py +0 -0
  110. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/__init__.py +0 -0
  111. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_disable.py +0 -0
  112. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_enable.py +0 -0
  113. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_list.py +0 -0
  114. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_state.py +0 -0
  115. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_toggle_braket_confirm.py +0 -0
  116. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_toggle_braket_disable.py +0 -0
  117. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_toggle_braket_enable.py +0 -0
  118. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_toggle_braket_get_data.py +0 -0
  119. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_validate_get_state.py +0 -0
  120. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_validate_handle_state.py +0 -0
  121. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/jobs/test_jobs_validate_library.py +0 -0
  122. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tests/kernels/__init__.py +0 -0
  123. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tools/create_dev_build.sh +0 -0
  124. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tools/install_wheel_extras.sh +0 -0
  125. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tools/split_md.py +0 -0
  126. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tools/split_rst.py +0 -0
  127. {qbraid_cli-0.8.2 → qbraid_cli-0.8.3}/tools/stamp_pre_release.py +0 -0
@@ -12,6 +12,7 @@ body:
12
12
  attributes:
13
13
  label: Environment
14
14
  value: |
15
+ - **qBraid-CORE version**:
15
16
  - **qBraid-CLI version**:
16
17
  - **Python version**:
17
18
  - **Operating system**:
@@ -31,11 +32,3 @@ body:
31
32
  description: We warmly welcome any recommendations on potential fixes, insights, or considerations that contributors should keep in mind when working to resolve this issue.
32
33
  validations:
33
34
  required: false
34
-
35
- - type: checkboxes
36
- id: agreement
37
- attributes:
38
- label: 'Please confirm the following:'
39
- options:
40
- - label: 'I have searched the existing issues and confirm this is a new bug report.'
41
- required: true
@@ -23,12 +23,3 @@ body:
23
23
  description: "Do you have an idea for how this could be implemented? Please include those details here."
24
24
  validations:
25
25
  required: false
26
-
27
- - type: checkboxes
28
- id: agreement
29
- attributes:
30
- label: 'Please confirm the following:'
31
- description: 'Understanding that feature requests are evaluated for their applicability and benefit to the community, and not all requests may be implemented.'
32
- options:
33
- - label: 'I have searched the existing issues and confirm this is a new feature request.'
34
- required: true
@@ -12,11 +12,11 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
 
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
16
16
  - name: Set up Python
17
- uses: actions/setup-python@v4
17
+ uses: actions/setup-python@v5
18
18
  with:
19
- python-version: '3.10'
19
+ python-version: '3.11'
20
20
  cache: pip
21
21
  - name: Install dependencies
22
22
  run: |
@@ -10,11 +10,11 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
 
12
12
  steps:
13
- - uses: actions/checkout@v3
13
+ - uses: actions/checkout@v4
14
14
  - name: Set up Python
15
- uses: actions/setup-python@v4
15
+ uses: actions/setup-python@v5
16
16
  with:
17
- python-version: '3.10'
17
+ python-version: '3.11'
18
18
  - name: Install dependencies
19
19
  run: |
20
20
  pip install --upgrade pip
@@ -15,9 +15,9 @@ jobs:
15
15
  python-version: ['3.11']
16
16
 
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  - name: Set up Python ${{ matrix.python-version }}
20
- uses: actions/setup-python@v4
20
+ uses: actions/setup-python@v5
21
21
  with:
22
22
  python-version: ${{ matrix.python-version }}
23
23
  cache: pip
@@ -29,7 +29,7 @@ jobs:
29
29
  run: |
30
30
  python -m build
31
31
  - name: Upload built package
32
- uses: actions/upload-artifact@v3
32
+ uses: actions/upload-artifact@v4
33
33
  with:
34
34
  name: built-package
35
35
  path: dist/*.whl
@@ -43,14 +43,14 @@ jobs:
43
43
  python-version: ['3.9', '3.10', '3.11', '3.12']
44
44
 
45
45
  steps:
46
- - uses: actions/checkout@v3
46
+ - uses: actions/checkout@v4
47
47
  - name: Set up Python ${{ matrix.python-version }}
48
- uses: actions/setup-python@v4
48
+ uses: actions/setup-python@v5
49
49
  with:
50
50
  python-version: ${{ matrix.python-version }}
51
51
  cache: pip
52
52
  - name: Download built package
53
- uses: actions/download-artifact@v3
53
+ uses: actions/download-artifact@v4
54
54
  with:
55
55
  name: built-package
56
56
  path: dist
@@ -64,19 +64,15 @@ jobs:
64
64
  shell: pwsh
65
65
  - name: Install testing dependencies
66
66
  run: |
67
- pip install pytest coverage
67
+ pip install pytest pytest-cov
68
68
  - name: Run tests with pytest
69
69
  run: |
70
- coverage run -m pytest -x tests
71
- coverage combine
72
- coverage report
73
- coverage html
74
- coverage xml
70
+ pytest --cov=qbraid_cli tests/ --cov-report=html --cov-report=xml --cov-report=term --cov-config=pyproject.toml
75
71
  env:
76
72
  QBRAID_API_KEY: ${{ secrets.QBRAID_API_KEY }}
77
73
  - name: Upload coverage to Codecov
78
74
  if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
79
- uses: codecov/codecov-action@v3
75
+ uses: codecov/codecov-action@v4.0.1
80
76
  with:
81
77
  token: ${{ secrets.CODECOV_TOKEN }}
82
78
  fail_ci_if_error: false
@@ -9,12 +9,12 @@ jobs:
9
9
  environment: publish
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v3
12
+ - uses: actions/checkout@v4
13
13
  with:
14
14
  fetch-depth: 1
15
15
 
16
16
  - name: Set up Python
17
- uses: actions/setup-python@v4
17
+ uses: actions/setup-python@v5
18
18
  with:
19
19
  python-version: '3.11'
20
20
 
@@ -9,12 +9,12 @@ jobs:
9
9
  environment: publish
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v3
12
+ - uses: actions/checkout@v4
13
13
  with:
14
14
  fetch-depth: 1
15
15
 
16
16
  - name: Set up Python
17
- uses: actions/setup-python@v4
17
+ uses: actions/setup-python@v5
18
18
  with:
19
19
  python-version: '3.11'
20
20
 
@@ -1,5 +1,10 @@
1
1
  # Contributing
2
2
 
3
+ [![CI](https://github.com/qBraid/qBraid-CLI/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/qBraid/qBraid-CLI/actions/workflows/main.yml)
4
+ [![Documentation Status](https://readthedocs.com/projects/qbraid-qbraid-cli/badge/?version=latest)](https://docs.qbraid.com/projects/cli/en/latest/?badge=latest)
5
+ [![codecov](https://codecov.io/gh/qBraid/qBraid-CLI/graph/badge.svg?token=wVNrLILy9c)](https://codecov.io/gh/qBraid/qBraid-CLI)
6
+
7
+
3
8
  Welcome! We're delighted that you're interested in contributing. Your help is essential for keeping the project great.
4
9
 
5
10
  ## Getting Started
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qbraid-cli
3
- Version: 0.8.2
3
+ Version: 0.8.3
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
@@ -31,7 +31,7 @@ Requires-Dist: typer>=0.12.1
31
31
  Requires-Dist: rich>=10.11.0
32
32
  Requires-Dist: jupyter_client<9.0.0,>=7.0.0
33
33
  Requires-Dist: ipykernel
34
- Requires-Dist: qbraid-core>=0.1.13
34
+ Requires-Dist: qbraid-core>=0.1.16
35
35
  Provides-Extra: jobs
36
36
  Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
37
37
  Provides-Extra: dev
@@ -39,6 +39,7 @@ Requires-Dist: ruff; extra == "dev"
39
39
  Requires-Dist: isort; extra == "dev"
40
40
  Requires-Dist: black; extra == "dev"
41
41
  Requires-Dist: pytest; extra == "dev"
42
+ Requires-Dist: pytest-cov; extra == "dev"
42
43
 
43
44
  <img width="full" alt="qbraid_cli" src="https://qbraid-static.s3.amazonaws.com/logos/qbraid-cli-banner.png">
44
45
 
@@ -50,7 +51,7 @@ Requires-Dist: pytest; extra == "dev"
50
51
 
51
52
  Command Line Interface for interacting with all parts of the qBraid platform.
52
53
 
53
- The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, and Rigetti, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
54
+ The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, Rigetti, and IQM, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
54
55
 
55
56
  ## Getting Started
56
57
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  Command Line Interface for interacting with all parts of the qBraid platform.
10
10
 
11
- The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, and Rigetti, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
11
+ The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, Rigetti, and IQM, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
12
12
 
13
13
  ## Getting Started
14
14
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qbraid-cli"
7
- version = "0.8.2"
7
+ version = "0.8.3"
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" }]
@@ -31,7 +31,7 @@ dependencies = [
31
31
  "rich>=10.11.0",
32
32
  "jupyter_client>=7.0.0,<9.0.0",
33
33
  "ipykernel",
34
- "qbraid-core>=0.1.13",
34
+ "qbraid-core>=0.1.16",
35
35
  ]
36
36
  requires-python = ">= 3.9"
37
37
 
@@ -44,7 +44,7 @@ Discord = "https://discord.gg/KugF6Cnncm"
44
44
 
45
45
  [project.optional-dependencies]
46
46
  jobs = ["amazon-braket-sdk>=1.48.1"]
47
- dev = ["ruff", "isort", "black", "pytest"]
47
+ dev = ["ruff", "isort", "black", "pytest", "pytest-cov"]
48
48
 
49
49
  [project.scripts]
50
50
  qbraid = "qbraid_cli.main:app"
@@ -54,7 +54,7 @@ write_to = "qbraid_cli/_version.py"
54
54
 
55
55
  [tool.black]
56
56
  line-length = 100
57
- target-version = ["py39", "py310", "py311", "py312"]
57
+ target-version = ["py39", "py310", "py311"]
58
58
 
59
59
  [tool.isort]
60
60
  profile = "black"
@@ -80,6 +80,9 @@ testpaths = ["tests"]
80
80
  [tool.coverage.run]
81
81
  parallel = true
82
82
  source = ["qbraid_cli"]
83
+ omit = [
84
+ "**/qbraid_cli/admin/buildlogs.py"
85
+ ]
83
86
 
84
87
  [tool.coverage.report]
85
88
  show_missing = true
@@ -93,9 +96,3 @@ exclude_lines = [
93
96
  "if TYPE_CHECKING:",
94
97
  "logger.debug"
95
98
  ]
96
-
97
- [tool.coverage.html]
98
- directory = "build/coverage"
99
-
100
- [tool.coverage.xml]
101
- output = "build/coverage/coverage.xml"
@@ -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+ga972fd5'
16
- __version_tuple__ = version_tuple = (0, 1, 'dev1', 'ga972fd5')
15
+ __version__ = version = '0.1.dev1+gd2e0183'
16
+ __version_tuple__ = version_tuple = (0, 1, 'dev1', 'gd2e0183')
@@ -224,15 +224,19 @@ def envs_list():
224
224
  else 0
225
225
  )
226
226
 
227
- print("# qbraid environments:")
228
- print("#")
229
- print("")
227
+ output_lines = []
228
+ output_lines.append("# qbraid environments:")
229
+ output_lines.append("#")
230
+ output_lines.append("")
230
231
 
231
232
  for alias, path in sorted_alias_path_pairs:
232
233
  mark = "*" if path == current_env_path else " "
233
- # Format each line with spacing based on the longest alias for alignment
234
- line = f"{alias.ljust(max_alias_length+3)}{mark} {path}" # fix the most optimal spacing
235
- console.print(line)
234
+ line = f"{alias.ljust(max_alias_length + 3)}{mark} {path}"
235
+ output_lines.append(line)
236
+
237
+ final_output = "\n".join(output_lines)
238
+
239
+ console.print(final_output)
236
240
 
237
241
 
238
242
  @envs_app.command(name="activate")
@@ -53,17 +53,21 @@ def kernels_list():
53
53
  longest_kernel_name = max(len(kernel_name) for kernel_name in kernelspecs)
54
54
  spacing = longest_kernel_name + 10
55
55
 
56
- console.print("# qbraid kernels:\n#\n")
56
+ output_lines = ["# qbraid kernels:\n#\n"]
57
57
 
58
- # Ensure 'python3' kernel is printed first if it exists
59
58
  default_kernel_name = "python3"
60
59
  python3_kernel_info = kernelspecs.pop(default_kernel_name, None)
61
60
  if python3_kernel_info:
62
- console.print(f"{default_kernel_name.ljust(spacing)}{python3_kernel_info['resource_dir']}")
61
+ python3_line = f"{default_kernel_name.ljust(spacing)}{python3_kernel_info['resource_dir']}"
62
+ output_lines.append(python3_line)
63
63
 
64
- # Print the rest of the kernels
65
64
  for kernel_name, kernel_info in sorted(kernelspecs.items()):
66
- console.print(f"{kernel_name.ljust(spacing)}{kernel_info['resource_dir']}")
65
+ line = f"{kernel_name.ljust(spacing)}{kernel_info['resource_dir']}"
66
+ output_lines.append(line)
67
+
68
+ final_output = "\n".join(output_lines)
69
+
70
+ console.print(final_output)
67
71
 
68
72
 
69
73
  @kernels_app.command(name="add")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qbraid-cli
3
- Version: 0.8.2
3
+ Version: 0.8.3
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
@@ -31,7 +31,7 @@ Requires-Dist: typer>=0.12.1
31
31
  Requires-Dist: rich>=10.11.0
32
32
  Requires-Dist: jupyter_client<9.0.0,>=7.0.0
33
33
  Requires-Dist: ipykernel
34
- Requires-Dist: qbraid-core>=0.1.13
34
+ Requires-Dist: qbraid-core>=0.1.16
35
35
  Provides-Extra: jobs
36
36
  Requires-Dist: amazon-braket-sdk>=1.48.1; extra == "jobs"
37
37
  Provides-Extra: dev
@@ -39,6 +39,7 @@ Requires-Dist: ruff; extra == "dev"
39
39
  Requires-Dist: isort; extra == "dev"
40
40
  Requires-Dist: black; extra == "dev"
41
41
  Requires-Dist: pytest; extra == "dev"
42
+ Requires-Dist: pytest-cov; extra == "dev"
42
43
 
43
44
  <img width="full" alt="qbraid_cli" src="https://qbraid-static.s3.amazonaws.com/logos/qbraid-cli-banner.png">
44
45
 
@@ -50,7 +51,7 @@ Requires-Dist: pytest; extra == "dev"
50
51
 
51
52
  Command Line Interface for interacting with all parts of the qBraid platform.
52
53
 
53
- The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, and Rigetti, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
54
+ The **qBraid CLI** is a versatile command-line interface tool designed for seamless interaction with qBraid cloud services and quantum software management tools. Initially exclusive to the [qBraid Lab](https://docs.qbraid.com/projects/lab/en/latest/lab/overview.html) platform, the CLI now supports local installations as well. This enhancement broadens access to features like [qBraid Quantum Jobs](https://docs.qbraid.com/projects/lab/en/latest/lab/quantum_jobs.html), enabling direct acess to QPU devices from leading providers like IonQ, Oxford Quantum Circuits, QuEra, Rigetti, and IQM, as well as on-demand simulators from AWS, all using qBraid credits, with no additional access keys required.
54
55
 
55
56
  ## Getting Started
56
57
 
@@ -2,13 +2,14 @@ typer>=0.12.1
2
2
  rich>=10.11.0
3
3
  jupyter_client<9.0.0,>=7.0.0
4
4
  ipykernel
5
- qbraid-core>=0.1.13
5
+ qbraid-core>=0.1.16
6
6
 
7
7
  [dev]
8
8
  ruff
9
9
  isort
10
10
  black
11
11
  pytest
12
+ pytest-cov
12
13
 
13
14
  [jobs]
14
15
  amazon-braket-sdk>=1.48.1
@@ -15,17 +15,14 @@ from qbraid_cli.kernels.app import kernels_list
15
15
  @patch("qbraid_cli.kernels.app.Console")
16
16
  def test_kernels_list_no_active_kernels(mock_console, mock_kernel_spec_manager):
17
17
  """Test listing kernels when no kernels are active."""
18
- # Setup the mock for KernelSpecManager to return an empty dict
19
18
  mock_kernel_spec_manager.return_value.get_all_specs.return_value = {}
20
19
 
21
- # Run the function under test
22
20
  kernels_list()
23
21
 
24
22
  expected_calls = [
25
23
  call("No qBraid kernels are active."),
26
24
  call("\nUse 'qbraid kernels add' to add a new kernel."),
27
25
  ]
28
- # Check that the appropriate message was printed to the console
29
26
  actual_calls = mock_console.return_value.print.call_args_list
30
27
  assert actual_calls == expected_calls
31
28
 
@@ -34,18 +31,14 @@ def test_kernels_list_no_active_kernels(mock_console, mock_kernel_spec_manager):
34
31
  @patch("qbraid_cli.kernels.app.Console")
35
32
  def test_kernels_list_default_python3_kernel_present(mock_console, mock_kernel_spec_manager):
36
33
  """Test listing kernels when the default python3 kernel is present."""
37
- # Setup mock to return a dict with python3 kernel info
38
34
  mock_kernel_spec_manager.return_value.get_all_specs.return_value = {
39
35
  "python3": {"resource_dir": "/path/to/python3/kernel"}
40
36
  }
41
37
 
42
- # Run the function under test
43
38
  kernels_list()
44
39
 
45
- # Check calls to console.print to verify output correctness
46
40
  expected_calls = [
47
- call("# qbraid kernels:\n#\n"),
48
- call("python3 /path/to/python3/kernel"),
41
+ call("# qbraid kernels:\n#\n\n" "python3 /path/to/python3/kernel"),
49
42
  ]
50
43
  actual_calls = mock_console.return_value.print.call_args_list
51
44
  assert actual_calls == expected_calls
@@ -55,20 +48,19 @@ def test_kernels_list_default_python3_kernel_present(mock_console, mock_kernel_s
55
48
  @patch("qbraid_cli.kernels.app.Console")
56
49
  def test_kernels_list_multiple_kernels_available(mock_console, mock_kernel_spec_manager):
57
50
  """Test listing multiple kernels when multiple kernels are available."""
58
- # Setup mock to return multiple kernels, including python3
59
51
  mock_kernel_spec_manager.return_value.get_all_specs.return_value = {
60
52
  "python3": {"resource_dir": "/path/to/python3/kernel"},
61
53
  "another_kernel": {"resource_dir": "/path/to/another/kernel"},
62
54
  }
63
55
 
64
- # Run the function under test
65
56
  kernels_list()
66
57
 
67
- # Check calls to console.print to verify output correctness
68
58
  expected_calls = [
69
- call("# qbraid kernels:\n#\n"),
70
- call("python3 /path/to/python3/kernel"),
71
- call("another_kernel /path/to/another/kernel"),
59
+ call(
60
+ "# qbraid kernels:\n#\n\n"
61
+ "python3 /path/to/python3/kernel\n"
62
+ "another_kernel /path/to/another/kernel"
63
+ ),
72
64
  ]
73
65
  actual_calls = mock_console.return_value.print.call_args_list
74
66
  assert actual_calls == expected_calls
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