Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Fix ignis without optional requirements installed #533

Merged
merged 5 commits into from
Nov 10, 2020

Conversation

mtreinish
Copy link
Collaborator

Summary

In #500 type hints were added for the plotting functions using the
optional matplotlib dependencies. This breaks ignis installations
without matplotlib present since it's an optional dependency. Since type
hints are really just for documentation and not necessary this commit
just removes those problematic hints and uses the docstring to document
the types.

At the same time the testing job verifying ignis works without any
optional dependencies that was lost in the migration from travis to
github actions is restored to verify that everything works moving
forward.

Details and comments

Fixes #532

@mtreinish mtreinish added stable-backport-potential Changelog: Bugfix Include in the Fixed section of the changelog labels Nov 4, 2020
@mtreinish mtreinish changed the title Fix ignis on no optional requirements Fix ignis without optional requirements installed Nov 4, 2020
In qiskit-community#500 type hints were added for the plotting functions using the
optional matplotlib dependencies. This breaks ignis installations
without matplotlib present since it's an optional dependency. Since type
hints are really just for documentation and not necessary this commit
just removes those problematic hints and uses the docstring to document
the types.

At the same time the testing job verifying ignis works without any
optional dependencies that was lost in the migration from travis to
github actions is restored to verify that everything works moving
forward.

Fixes qiskit-community#532
@@ -37,6 +37,32 @@ jobs:
QISKIT_IN_PARALLEL: TRUE
run: tox -e py
if: runner.os == 'macOS'
tests-no-opt:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really should break the GHA into separate scripts at some point

@chriseclectic chriseclectic merged commit d9fe8f9 into qiskit-community:master Nov 10, 2020
mtreinish added a commit to mtreinish/qiskit-ignis that referenced this pull request Nov 12, 2020
* Fix ignis without optional requirements installed

In qiskit-community#500 type hints were added for the plotting functions using the
optional matplotlib dependencies. This breaks ignis installations
without matplotlib present since it's an optional dependency. Since type
hints are really just for documentation and not necessary this commit
just removes those problematic hints and uses the docstring to document
the types.

At the same time the testing job verifying ignis works without any
optional dependencies that was lost in the migration from travis to
github actions is restored to verify that everything works moving
forward.

(cherry picked from commit d9fe8f9)
@mtreinish mtreinish deleted the fix-no-opt branch November 12, 2020 16:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qiskit Ignis fails if optional matplotlib not installed
3 participants