Skip to content

Commit 3800556

Browse files
fehiepsitensorflower-gardener
authored andcommitted
Skip using bad version string tf-nightly 2.11.0 for testing.
PiperOrigin-RevId: 464117542
1 parent 91f5c3c commit 3800556

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/dependency_install_lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
# TODO(b/191965268): Move this to a proper python script, maybe even test it.
2121
PYTHON_PARSE_PACKAGE_JSON="
22+
import re
2223
import sys
2324
import json
2425
import argparse
@@ -33,10 +34,15 @@ parser.add_argument(
3334
args = parser.parse_args()
3435
3536
pypi_version_str = 'cp' + sysconfig.get_config_var('py_version_nodot')
37+
release_pattern = re.compile('.+dev[0-9]+$')
3638
3739
package_data = json.loads(sys.stdin.read())
3840
releases = []
3941
for release, release_info in package_data['releases'].items():
42+
# Skip bad releases like '2.11.0'.
43+
if not release_pattern.match(release):
44+
continue
45+
4046
# Skip bad dates.
4147
if any(bad_date in release for bad_date in args.bad_dates):
4248
continue

0 commit comments

Comments
 (0)