• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 8100122935
83%

Build:
DEFAULT BRANCH: main
Ran 29 Feb 2024 05:34PM UTC
Jobs 15
Files 184
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Feb 2024 05:27PM UTC coverage: 81.637%. Remained the same
8100122935

push

github

web-flow
Migrate from `pkg_resources` to `importlib.metadata` (#1449)

PR #1347 added `setuptools` to `requirements-dev.txt` in an effort
to make `qiskit-ibm-runtime` work with Python 3.12.  However,
`qiskit_ibm_runtime/api/session.py` actually imports `pkg_resources`,
which is provided by setuptools, so really setuptools should have been
added to [`REQUIREMENTS`](https://github.com/Qiskit/qiskit-ibm-runtime/blob/e152d1227/setup.py#L21)
in `setup.py` so that it is installed automatically for any downstream
users of Qiskit Runtime, too.

Better yet, however, is to drop this explicit dependency on setuptools,
since [`pkg_resources` is deprecated](https://setuptools.pypa.io/en/latest/pkg_resources.html)
in favor of `importlib`.  Hence, this PR migrates from `pkg_resources`
to `importlib.metadata` (there are a few more words about this
[here](https://github.com/googleapis/python-api-core/issues/27#issuecomment-676563754)).

My investigation into this was prompted by us trying to add
Python 3.12 support to the circuit-knitting-toolbox
(https://github.com/Qiskit-Extensions/circuit-knitting-toolbox/pull/429),
and seeing CI errors prompted by `qiskit-ibm-runtime`'s importing
of `pkg_resources`.

Co-authored-by: Kevin Tian <kevin.tian@ibm.com>

5086 of 6230 relevant lines covered (81.64%)

12.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.11-macOS-latest - 8100122935.1 29 Feb 2024 05:35PM UTC 184
81.62
GitHub Action Run
2 unit-tests_python3.10-ubuntu-latest - 8100122935.2 29 Feb 2024 05:34PM UTC 184
81.62
GitHub Action Run
3 unit-tests_python3.12-windows-latest - 8100122935.3 29 Feb 2024 05:37PM UTC 184
79.33
GitHub Action Run
4 unit-tests_python3.11-ubuntu-latest - 8100122935.4 29 Feb 2024 05:34PM UTC 184
81.62
GitHub Action Run
5 unit-tests_python3.9-ubuntu-latest - 8100122935.5 29 Feb 2024 05:34PM UTC 184
81.61
GitHub Action Run
6 unit-tests_python3.8-ubuntu-latest - 8100122935.6 29 Feb 2024 05:34PM UTC 184
81.59
GitHub Action Run
7 unit-tests_python3.12-ubuntu-latest - 8100122935.7 29 Feb 2024 05:34PM UTC 184
81.62
GitHub Action Run
8 unit-tests_python3.8-windows-latest - 8100122935.8 29 Feb 2024 05:36PM UTC 184
79.3
GitHub Action Run
9 unit-tests_python3.10-windows-latest - 8100122935.9 29 Feb 2024 05:35PM UTC 184
79.33
GitHub Action Run
10 unit-tests_python3.10-macOS-latest - 8100122935.10 29 Feb 2024 05:35PM UTC 184
81.62
GitHub Action Run
11 unit-tests_python3.9-macOS-latest - 8100122935.11 29 Feb 2024 05:35PM UTC 184
81.61
GitHub Action Run
12 unit-tests_python3.8-macOS-latest - 8100122935.12 29 Feb 2024 05:35PM UTC 184
81.59
GitHub Action Run
13 unit-tests_python3.9-windows-latest - 8100122935.13 29 Feb 2024 05:36PM UTC 184
79.31
GitHub Action Run
14 unit-tests_python3.11-windows-latest - 8100122935.14 29 Feb 2024 05:36PM UTC 184
79.33
GitHub Action Run
15 unit-tests_python3.12-macOS-latest - 8100122935.15 29 Feb 2024 05:36PM UTC 184
81.62
GitHub Action Run
Source Files on build 8100122935
  • Tree
  • List 184
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8100122935
  • e151d69f on github
  • Prev Build on main (#8099839975)
  • Next Build on main (#8103371306)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc