Skip to content

Update slow optional import list to include additional packages#5798

Merged
mergify[bot] merged 1 commit into
Qiskit:masterfrom
mtreinish:update-exclude-list
Feb 5, 2021
Merged

Update slow optional import list to include additional packages#5798
mergify[bot] merged 1 commit into
Qiskit:masterfrom
mtreinish:update-exclude-list

Conversation

@mtreinish
Copy link
Copy Markdown
Member

Summary

In #5582 we added a script that is used to ensure we don't import
slow optional dependencies in the default 'import qiskit' path. Since
that PR merged we've managed to remove a few more packages from the
default import path (see #5619, #5485, and #5620) which we should add
the same checks to to ensure we don't regress and accidently start
importing them again in the default path. This commit adds all these
packages to the list of imports not allowed as part of 'import qiskit'.

Details and comments

In Qiskit#5582 we added a script that is used to ensure we don't import
slow optional dependencies in the default 'import qiskit' path. Since
that PR merged we've managed to remove a few more packages from the
default import path (see Qiskit#5619, Qiskit#5485, and Qiskit#5620) which we should add
the same checks to to ensure we don't regress and accidently start
importing them again in the default path. This commit adds all these
packages to the list of imports not allowed as part of 'import qiskit'.
@mtreinish mtreinish requested a review from a team as a code owner February 5, 2021 19:10
@kdk kdk added the automerge label Feb 5, 2021
@mergify mergify Bot merged commit 6165a06 into Qiskit:master Feb 5, 2021
@mtreinish mtreinish deleted the update-exclude-list branch February 5, 2021 23:06
@kdk kdk added the Changelog: None Do not include in the GitHub Release changelog. label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants