Skip to content

[P10] Cap the Qiskit major version in the qiskit requirement #42

Open

Description

@1ucian0

Hi! quprep is a Qiskit Ecosystem member, and one of the weekly check ups is currently failing for it:

[P10] Have a cap on the major version for the qiskit dependency

Python package quprep declared itself compatible to a not-yet-released major version of Qiskit

The qiskit requirement (qiskit>=1.0) has no upper bound. Qiskit follows semantic versioning, so nothing guarantees the package still works after the next major release, and pip is free to resolve to it the day it lands. Qiskit 3 is not planned yet, but the compatibility claim is already there.

Suggested fix, in pyproject.toml:

 [project.optional-dependencies]
-qiskit = ["qiskit>=1.0"]
+qiskit = ["qiskit>=1.0,<3"]
 pennylane = ["pennylane>=0.35"]

The repository declares qiskit in more than one place; the cap belongs
on each of them.

That keeps every Qiskit version you support today; bump the cap once you have tested against the next major release. The check up reads the metadata of the package published on PyPI, so it clears on its own after a release that carries the cap.

Thanks for being part of the ecosystem!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions