Skip to content

Commit dbc6d7b

Browse files
authored
fix(CI): prefer stable versions (#4857)
Remove version `>=a.b.crc0` from dependencies. The stable version should be preferred. This prevents the installation of TensorFlow 2.20.0rc0, which breaks the CI. However, the incompatibility should still be fixed in the future. TensorFlow 2.20.0rc0 removes the version information from the header files. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated version requirements for TensorFlow and myst-nb packages to use stable releases instead of release candidate versions in build and documentation workflows. * Adjusted dependency handling for TensorFlow CPU to ensure stable versions are used during build processes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
1 parent 43504d3 commit dbc6d7b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/package_c.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
tensorflow_version: ""
2323
filename: libdeepmd_c.tar.gz
2424
- tensorflow_build_version: "2.14"
25-
tensorflow_version: ">=2.5.0rc0,<2.15"
25+
tensorflow_version: ">=2.5.0,<2.15"
2626
filename: libdeepmd_c_cu11.tar.gz
2727
steps:
2828
- uses: actions/checkout@v4

backend/find_tensorflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def find_tensorflow() -> tuple[Optional[str], list[str]]:
8888
# CUDA 12.2, cudnn 9
8989
requires.extend(
9090
[
91-
"tensorflow-cpu>=2.18.0rc0; platform_machine=='x86_64' and platform_system == 'Linux'",
91+
"tensorflow-cpu>=2.18.0; platform_machine=='x86_64' and platform_system == 'Linux'",
9292
]
9393
)
9494
elif cuda_version in SpecifierSet(">=11,<12"):
9595
# CUDA 11.8, cudnn 8
9696
requires.extend(
9797
[
98-
"tensorflow-cpu>=2.5.0rc0,<2.15; platform_machine=='x86_64' and platform_system == 'Linux'",
98+
"tensorflow-cpu>=2.5.0,<2.15; platform_machine=='x86_64' and platform_system == 'Linux'",
9999
]
100100
)
101101
tf_version = "2.14.1"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test = [
9090
docs = [
9191
"sphinx>=3.1.1",
9292
"sphinx-book-theme",
93-
"myst-nb>=1.0.0rc0",
93+
"myst-nb>=1.0.0",
9494
"myst-parser>=0.19.2",
9595
"sphinx-design",
9696
"breathe",

0 commit comments

Comments
 (0)