Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
41093bd
Add additional version constraints to requirements file
mhucka Dec 15, 2025
b967eba
Remove python_version constraints
mhucka Dec 15, 2025
911dd9d
Update requirements.txt based on requiremets.in
mhucka Dec 15, 2025
ca41ab5
Update requirements.in to work for Python 3.9
mhucka Dec 23, 2025
90a13c1
Improve scripts/generate_requirements.txt
mhucka Dec 23, 2025
605b5e5
Update requirements.txt based on latest requirements.in
mhucka Dec 23, 2025
216cab0
Merge branch 'master' into mh-update-requirements
mhucka Dec 24, 2025
d92dc5e
Merge branch 'master' into mh-update-requirements
mhucka Dec 27, 2025
a77adca
Merge branch 'master' into mh-update-requirements
mhucka Dec 30, 2025
e0852a9
Merge branch 'master' into mh-update-requirements
mhucka Jan 12, 2026
2e5188f
Undo the "set -eu" change because it's not needed
mhucka Jan 15, 2026
04f1c69
Merge branch 'master' into mh-update-requirements
mhucka Jan 15, 2026
e80ef3c
chore: merge branch
mhucka Jan 22, 2026
28a11a0
Work around a problem with pyyaml
mhucka Jan 31, 2026
d37f19d
Reduce requirements as much as possible & add dev requirements
mhucka Jan 31, 2026
84e1608
Latest version produced by generate_requirements.sh
mhucka Jan 31, 2026
8684193
Update installation requirements in setup.py
mhucka Jan 31, 2026
acac2dd
Merge branch 'master' into mh-update-requirements
mhucka Jan 31, 2026
945597d
Merge branch 'master' into mh-update-requirements
mhucka Feb 5, 2026
7bdbbea
Further reduce the list of dependency constraints
mhucka Jan 31, 2026
fc798e8
Fix mistake in TF version
mhucka Feb 5, 2026
6eed54e
Clarify a confusing comment.
mhucka Feb 5, 2026
d1074ad
Merge branch 'master' into mh-update-requirements
mhucka Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions release/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,17 @@ def finalize_options(self):
REQUIRED_PACKAGES = [
"cirq-core==1.3.0",
"cirq-google==1.3.0",
"numpy<2.0",
"scipy~=1.15.3",
"sympy==1.14",
"tf-keras~=2.17.0",
# The following are transitive dependencies that need to be constrained to
# avoid incompatible versions or because some (e.g., contourpy 1.3.3)
# require Python 3.11+ and we want to maintain Python 3.9 compatibility.
# TODO: revisit after we reach compatibility with TensorFlow 2.19+.
"contourpy<=1.3.2",
"h5py==3.10.0",
"importlib_metadata<5",
"jax<=0.5",
"matplotlib<3.10",
"numpy<2.0",
"scipy<=1.12.0",
# The following makes it easier to get the right version on Colab. Once
# TFQ works with the latest version of TF, this may become unnecessary.
"protobuf==4.25.8",

# The reset of these constraints are on transitive dependencies to avoid
# installation conflicts, which can happen if pip finds a newer version of a
# package & that newer version requires, e.g., NumPy 2.x or Python 3.11+.
# Ideally these can be removed once TFQ is compatible with recent TFs.
"jax<0.5",
"contourpy<1.3.3",
]

# TF requirement is placed as an extras to avoid overwriting existing nightly TF
Expand All @@ -73,8 +68,6 @@ def finalize_options(self):
EXTRA_PACKAGES["and-tensorflow"] = ["tensorflow>=2.17,<2.18"]
# "extras" was used before 0.7.4. Prefer "and-tensorflow" in 0.7.4+.
EXTRA_PACKAGES["extras"] = EXTRA_PACKAGES["and-tensorflow"]
# Add an alias in case people type an underscore instead of a dash.
EXTRA_PACKAGES["and_tensorflow"] = EXTRA_PACKAGES["and-tensorflow"]


class BinaryDistribution(Distribution):
Expand Down Expand Up @@ -106,7 +99,7 @@ def has_ext_modules(self):
author_email="tensorflow-quantum-team@google.com",
url="https://github.com/tensorflow/quantum/",
packages=find_packages(),
python_requires='>=3.9',
python_requires='>=3.10',
install_requires=REQUIRED_PACKAGES,
extras_require=EXTRA_PACKAGES,
include_package_data=True,
Expand Down
11 changes: 5 additions & 6 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
# Core development requirements for TensorFlow Quantum. This file is processed
# by pip-compile (from pip-tools) to produce requirements.txt using the script
# scripts/generate_requirements.sh.

cirq-core~=1.3.0
cirq-google~=1.3.0
jax<0.5
numpy<2.0
scipy~=1.15.3
sympy==1.14
tensorflow>=2.17,<2.18
keras==3.12.0
tf-keras~=2.17.0
setuptools==75.0.0
wheel==0.46.2
contourpy<=1.3.2
networkx<=3.4.2
scipy==1.15.3

# TODO: the next ones are not truly core requirements. A better place should be
# found for them (long with others needed by scripts/*). They're here as a
Expand Down
Loading
Loading