Skip to content

Commit

Permalink
Freshen-up cirq dependencies (#6616)
Browse files Browse the repository at this point in the history
- allow latest scipy because quimb>=1.18 works with scipy-1.13
  (context in #6543)
- allow latest rstcheck
- fix dependency specification for tensorflow-docs so it works with
  `uv pip compile`
- Enable the current latest versions of notebook, ipykernel, papermill
  which are only used for notebook tests
- Add temporary specifications for notebook-related transitive dependencies
  to help pip dependency resolver (should be redundant after #6281) 

Partially fixes #6464
  • Loading branch information
pavoljuhas authored May 29, 2024
1 parent e4b6ab2 commit 778e9e9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Install requirements
run: pip install -r dev_tools/requirements/dev.env.txt
- name: RST check
run: find . -type f -name "*.rst" | xargs rstcheck --report warning --ignore-directives autoclass,automodule
run: find . -type f -name "*.rst" | xargs rstcheck
- name: Doc check
run: check/doctest -q
nbformat:
Expand Down
2 changes: 1 addition & 1 deletion cirq-core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ networkx>=2.4
numpy~=1.22
pandas
sortedcontainers~=2.0
scipy<1.13.0
scipy~=1.0
sympy
typing_extensions>=4.2
tqdm
2 changes: 1 addition & 1 deletion dev_tools/requirements/deps/dev-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ asv
qiskit-aer~=0.12.0

# For verifying rst
rstcheck~=3.3.1
rstcheck
13 changes: 8 additions & 5 deletions dev_tools/requirements/deps/notebook.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
-r ipython.txt

# Notebook >=6.4.8 + coverage > 6.2 hangs CI: https://github.com/quantumlib/Cirq/issues/4897
notebook>=6.4.1,<=6.4.7
notebook~=7.0

# https://github.com/nteract/papermill/issues/519
ipykernel==5.3.4
ipykernel~=6.29

# for executing notebooks in tests
papermill~=2.3.2
papermill~=2.6

# for notebooks that do `pip install cirq-core[contrib]`
-r ../../../cirq-core/cirq/contrib/requirements.txt

# assumed to be part of colab
seaborn~=0.12

# TODO(#6281) - remove below after the merge of #6281
jupyterlab~=4.0.13
jupyterlab-server~=2.24.0
nbformat~=5.10.4
2 changes: 1 addition & 1 deletion dev_tools/requirements/deps/tensorflow-docs.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensorflow-docs@https://github.com/tensorflow/docs/tarball/3a6a7a3322de8620f0031ae3a0a4b62e40d1d7f2
tensorflow-docs@https://github.com/tensorflow/docs/archive/3a6a7a3322de8620f0031ae3a0a4b62e40d1d7f2/master.tar.gz

0 comments on commit 778e9e9

Please sign in to comment.