forked from Qiskit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make notebook tester into package (Qiskit#1208)
Makes the notebook tester into an installable package so we can re-use it in other repos. Main changes are: * Adding `pyproject.toml` and moving script to `qiskit_docs_notebook_tester/__init__.py` * Moving the lists of notebooks to a config file * Splitting the requirements needed for running the code in the notebooks form those neeed by the testing script itself The interface via `tox` should be unaffected. --------- Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
- Loading branch information
1 parent
ee69a31
commit 0290bfb
Showing
7 changed files
with
101 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,3 @@ tsconfig.tsbuildinfo | |
/.out/ | ||
/.sphinx-artifacts/ | ||
poetry.lock | ||
pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Used to find all notebooks in the repo | ||
all_notebooks = "[!.]*/**/*.ipynb" | ||
|
||
# Always exclude notebooks matching the following patterns | ||
notebooks_exclude = [ | ||
"scripts/ibm-quantum-learning-uploader/test/template.ipynb", | ||
"**/.ipynb_checkpoints/**", | ||
] | ||
|
||
# The following notebooks submit jobs to IBM Quantum | ||
notebooks_that_submit_jobs = [ | ||
"docs/start/hello-world.ipynb", | ||
"tutorials/build-repitition-codes/build-repitition-codes.ipynb", | ||
"tutorials/chsh-inequality/chsh-inequality.ipynb", | ||
"tutorials/grovers-algorithm/grovers.ipynb", | ||
"tutorials/quantum-approximate-optimization-algorithm/qaoa.ipynb", | ||
"tutorials/repeat-until-success/repeat-until-success.ipynb", | ||
"tutorials/submitting-transpiled-circuits/submitting-transpiled-circuits.ipynb", | ||
"tutorials/variational-quantum-eigensolver/vqe.ipynb", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[build-system] | ||
requires = [ "hatchling",] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "qiskit-docs-notebook-tester" | ||
version = "0.0.1" | ||
description = "Tool for the Qiskit docs team to test their notebooks" | ||
requires-python = ">=3.9" | ||
license = "Apache-2.0" | ||
dependencies = [ | ||
"nbconvert~=7.16.0", | ||
"nbformat~=5.9.2", | ||
"ipykernel~=6.29.2", | ||
"squeaky==0.7.0", | ||
"tomli==2.0.1", | ||
] | ||
|
||
[[project.authors]] | ||
name = "Qiskit docs team" | ||
|
||
[project.scripts] | ||
test-docs-notebooks = "qiskit_docs_notebook_tester:main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
# We pin to exact versions for a more reproducible and | ||
# stable build. | ||
nbconvert~=7.16.0 | ||
nbformat~=5.9.2 | ||
ipykernel~=6.29.2 | ||
qiskit[all]~=1.0 | ||
qiskit-aer~=0.14.0.1 | ||
qiskit-ibm-runtime~=0.23.0 | ||
qiskit-ibm-provider~=0.11.0 | ||
squeaky==0.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters