Skip to content

python3Packages.qiskit: 0.14.0 -> 0.17.0 #78772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 8, 2020

Conversation

drewrisinger
Copy link
Contributor

Motivation for this change

pythonPackages.qiskit build was broken because upstream refactored the package into several smaller packages.

This PR fully refactors the Qiskit library into the subpackages, which are all tested as much as possible, and includes new dependency packages as necessary (or updates to existing packages).

Things done

My apologies, I know this is a pretty big PR to review. Every new dependency added was necessary for build & tests to pass, minus stestr which is primarily for faster testing.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip". No diff detected
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Note: most of these packages are missing maintainers. I'm not sure how that process works, and will update when told.

Sorry, something went wrong.

@ofborg ofborg bot added 6.topic: python 8.has: documentation This PR adds or changes documentation labels Jan 29, 2020
@drewrisinger
Copy link
Contributor Author

The failing check seems to be related to removing obsolete IBMQuantumExperience package.

@drewrisinger drewrisinger changed the title pythonPackages.qiskit: fix broken & 0.14.0 -> 0.14.1 pythonPackages.qiskit: refactor Jan 29, 2020
@drewrisinger drewrisinger changed the title pythonPackages.qiskit: refactor pythonPackages.qiskit: fix broken Jan 29, 2020
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

If you want to split this into many PRs, that would probably be a good idea

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

If you want to split this into many PRs, that would probably be a good idea

@drewrisinger
Copy link
Contributor Author

If you want to split this into many PRs, that would probably be a good idea

I can do that. We're just looking at ~20 PRs, which is a pain to submit. Any tips on resolving dependency issues b/c the later PRs won't build w/o the previous PRs being approved?

@jonringer
Copy link
Contributor

honestly, a package for each PR isn't a terrible idea: limits scope, makes edits easy, faster to review

@drewrisinger
Copy link
Contributor Author

Splitting into multiple PRs, one per package. Most issues addressed. My apologies in advance for the deluge of PRs @jonringer

@drewrisinger
Copy link
Contributor Author

@GrahamcOfBorg eval

@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit branch from 4722acf to b92abe3 Compare April 7, 2020 12:51
@drewrisinger
Copy link
Contributor Author

@GrahamcOfBorg build python37Packages.qiskit-aqua
@GrahamcOfBorg build python38Packages.qiskit-aqua
@GrahamcOfBorg build python37Packages.qiskit
@GrahamcOfBorg build python38Packages.qiskit

@ofborg ofborg bot added 8.has: clean-up 8.has: package (new) This PR adds a new package labels Apr 7, 2020
@ofborg ofborg bot requested a review from pandaman64 April 7, 2020 13:04
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100 labels Apr 7, 2020
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

otherwise LGTM

@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit branch 2 times, most recently from a235dc0 to f21ba3b Compare April 7, 2020 19:07
Package was deprecated, and effectively replaced by
pythonPackages.qiskit-ibmq-provider.
Updates the qiskit package to follow new Git structure, where
subcomponents are broken into separate packages (terra, aer, etc).

Refactor/cleanup
Arbitrarily disable any tests > 10s on my machine to lighten the build
load (both for borg CI & Hydra builds). All disabled slow tests pass
locally.
@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit branch from f21ba3b to cb2e60f Compare April 7, 2020 19:38
@drewrisinger
Copy link
Contributor Author

Ok. Apologies. Built locally with nixpkgs-review pr 78772.
@GrahamcOfBorg eval
Updated in this PR:
@GrahamcOfBorg build python37Packages.qiskit python37Packages.qiskit-ibmq-provider
Added in this PR:
@GrahamcOfBorg build python37Packages.ipyvue python38Packages.ipyvue python37Packages.ipyvuetify python38Packages.ipyvuetify
Dependent of qiskit (enabled now that not broken):
@GrahamcOfBorg build python37Packages.qasm2image

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

diff LGTM
commits LGTM

https://github.com/NixOS/nixpkgs/pull/78772
9 package built:
python37Packages.ipyvue python37Packages.ipyvuetify python37Packages.qasm2image python37Packages.qiskit python37Packages.qiskit-aqua python37Packages.qiskit-ibmq-provider python38Packages.ipyvue python38Packages.ipyvuetify python38Packages.qiskit-aqua

@jonringer jonringer merged commit 09cd8b6 into NixOS:master Apr 8, 2020
@jonringer
Copy link
Contributor

it only took two months, but we did it :)

@drewrisinger
Copy link
Contributor Author

drewrisinger commented Apr 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants