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

Qiskit / qiskit / 7733162349 / 1
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: protect-github-ref
DEFAULT BRANCH: main
Ran 31 Jan 2024 10:39PM UTC
Files 908
Run time 28s
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

31 Jan 2024 10:23PM UTC coverage: 89.497% (+0.03%) from 89.464%
7733162349.1

push

github

web-flow
Poison import if `qiskit-terra` detected (#11618)

* Poison import if `qiskit-terra` detected

This uses `importlib.metadata` to search for installations of
`qiskit-terra` at runtime, and poison the import if one is detected.
The two packages are incompatible in a way that we cannot express to
`pip` without having poisoned the `qiskit-terra` package as a whole,
which is something we're less willing to do in order to keep it easier
to install old versions of Qiskit-dependent software, and to keep the
Qiskit 1.0 packaging story clean for the coming years.

`qiskit>=1.0` and `qiskit-terra<1.0` both attempt to install files in
the same directories, so we can't do the detection by looking at the
Qiskit version; we'll likely get whichever was installed second if
they've both been installed to `site-packages`, or otherwise, whichever
comes first on the search path.  This uses the distribution component of
`importlib.metadata` to detect installed _distributions_ rather than
imported files, allowing us to distinguish `qiskit` from `qiskit-terra`.

* Add shortlink to migration guide

* Do not error on dirty build directory

* Match 0.45 error message

59393 of 66363 relevant lines covered (89.5%)

218913.98 hits per line

Source Files on job 7733162349.1
  • Tree
  • List 0
  • Changed 30
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7733162349
  • 151fb799 on github
  • Prev Job for on gh-readonly-queue/main/pr-11618-1c76bc83f49870242b175182de5642f54de0ab39 (#7733048298.1)
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

© 2026 Coveralls, Inc