Skip to content

pythonPackages.qiskit-terra: init at 0.12.0#80464

Merged
jonringer merged 1 commit intoNixOS:masterfrom
drewrisinger:dr-pr-python-qiskit-terra
Feb 25, 2020
Merged

pythonPackages.qiskit-terra: init at 0.12.0#80464
jonringer merged 1 commit intoNixOS:masterfrom
drewrisinger:dr-pr-python-qiskit-terra

Conversation

@drewrisinger
Copy link
Contributor

Motivation for this change

Update qiskit according to new upstream package structure (collection of subpackages). This is broken out of #78772. Would like to get it into 20.03 if at all possible. Has one out-of-tree dependency: pythonPackages.pylatexenc (#78878). Will rebase & remove that commit when #78878 is approved.

Things done
  • 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"
  • 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.

@ofborg ofborg bot added 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 18, 2020
@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit-terra branch from 0144593 to 29269ec Compare February 18, 2020 19:29
@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit-terra branch from 29269ec to 07ee8d1 Compare February 19, 2020 18:41
@drewrisinger
Copy link
Contributor Author

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

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-terra branch from 07ee8d1 to d1b9cbf Compare February 20, 2020 18:34
@drewrisinger
Copy link
Contributor Author

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

@drewrisinger
Copy link
Contributor Author

@GrahamcOfBorg build python37Packages.qiskit-terra python38Packages.qiskit-terra
(fixed commit naming outdated qiskit version)

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.

I guess the tests aren't too damaging to the huge size of the closure already:

[nix-shell:/home/jon/.cache/nixpkgs-review/pr-80464-1]$ nix path-info -Sh ./results/python37Packages.qiskit-terra
/nix/store/rrwx7l0gq49cc9zb3y49zkx8vy7j4y5m-python3.7-qiskit-terra-0.12.0	 388.2M
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-80464-1]$ du -hd0 ./results/python37Packages.qiskit-terra/lib/python3.7/site-packages/test/
4.5M	./results/python37Packages.qiskit-terra/lib/python3.7/site-packages/test/
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-80464-1]$ du -hd0 ./results/python37Packages.qiskit-terra/lib/python3.7/site-packages/examples/
96K	./results/python37Packages.qiskit-terra/lib/python3.7/site-packages/examples/

@jonringer
Copy link
Contributor

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

Qiskit is a quantum information toolkit from IBM. This commit
follows the new Qiskit scheme of breaking from one large package into
smaller packages (terra, aer, etc), and then having a single
meta-package "qiskit" that comprises them.
@drewrisinger drewrisinger force-pushed the dr-pr-python-qiskit-terra branch from ea81c30 to d3cdcb6 Compare February 24, 2020 14:18
@drewrisinger
Copy link
Contributor Author

@GrahamcOfBorg build python37Packages.qiskit-terra python38Packages.qiskit-terra
Removed test & example dirs in postCheck. Clarified a few comments. Should be good now.

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
commit LGTM

[3 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/80464
2 package built:
python37Packages.qiskit-terra python38Packages.qiskit-terra

@jonringer
Copy link
Contributor

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

@drewrisinger drewrisinger deleted the dr-pr-python-qiskit-terra branch February 25, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants