diff options
author | Matti Picus <matti.picus@gmail.com> | 2023-02-27 15:22:51 +0200 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2023-02-27 15:22:51 +0200 |
commit | fa1ba686f57d148584ced42c7807b84f96c44221 (patch) | |
tree | 24288c63e12097f461bf8b983d7a727517d86130 | |
parent | fix hash (diff) | |
download | pypy-fa1ba686f57d148584ced42c7807b84f96c44221.tar.gz pypy-fa1ba686f57d148584ced42c7807b84f96c44221.tar.bz2 pypy-fa1ba686f57d148584ced42c7807b84f96c44221.zip |
add py3.10 nightlies to github CI versions.json file, update test
-rw-r--r-- | pypy/tool/release/check_versions.py | 13 | ||||
-rw-r--r-- | pypy/tool/release/versions.json | 50 |
2 files changed, 58 insertions, 5 deletions
diff --git a/pypy/tool/release/check_versions.py b/pypy/tool/release/check_versions.py index 8964d2f378..db1592b308 100644 --- a/pypy/tool/release/check_versions.py +++ b/pypy/tool/release/check_versions.py @@ -100,7 +100,7 @@ pypy_versions = { '7.3.2': {'python_version': ['3.7.9', '3.6.9', '2.7.13'], 'date': '2020-09-25', }, - 'nightly': {'python_version': ['2.7', '3.6', '3.7', '3.8', '3.9']}, + 'nightly': {'python_version': ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10']}, } @@ -179,6 +179,7 @@ def check_versions(data, url, verbose=0, check_times=True, nightly_only=False): assert_in(arch_plat, download_url) else: assert_in(arch_plat, download_url) + py_ver_tuple = [int(s) for s in py_ver.split('.')] if py_ver == "2.7": py_ver = "trunk" elif f['platform'] == "darwin": @@ -198,7 +199,7 @@ def check_versions(data, url, verbose=0, check_times=True, nightly_only=False): except error.HTTPError as e: raise ValueError(f"could not open '{download_url}', got {e}") from None assert_equal(r.getcode(), 200) - if d['pypy_version'] == 'nightly' and py_ver >= '3.8': + if d['pypy_version'] == 'nightly' and (py_ver_tuple >= [3, 9] or py_ver == "trunk"): print('time-check', end='') # nightly builds do not have a date entry, use time.time() target = time.strftime("%Y-%m-%d") @@ -207,9 +208,11 @@ def check_versions(data, url, verbose=0, check_times=True, nightly_only=False): modified_time_str = ' '.join(r.getheader("Last-Modified").split(' ')[1:4]) expected_time = time.mktime(time.strptime(target, "%Y-%m-%d")) modified_time = time.mktime(time.strptime(modified_time_str, "%d %b %Y")) - if abs(expected_time - modified_time) > 60 * 60 * 24 * 7: - print() - raise ValueError(f"expected {modified_time_str} to be within a week of {target}") + if abs(expected_time - modified_time) > 60 * 60 * 24 * 14 and 's390x' not in arch_plat: + raise ValueError(f"expected {modified_time_str} to be within 2 weeks of {target}") + else: + delta_days = abs(expected_time - modified_time) / (60 * 60 * 24) + print(f" {delta_days} days", end='') if verbose > 0: print(f' ok') if verbose > 0: diff --git a/pypy/tool/release/versions.json b/pypy/tool/release/versions.json index 5384dbb4cc..1d9d664645 100644 --- a/pypy/tool/release/versions.json +++ b/pypy/tool/release/versions.json @@ -3039,5 +3039,55 @@ "download_url": "https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-s390x.tar.bz2" } ] + }, + { + "pypy_version": "nightly", + "python_version": "3.10", + "stable": false, + "latest_pypy": false, + "files": [ + { + "filename": "pypy-c-jit-latest-aarch64.tar.bz2", + "arch": "aarch64", + "platform": "linux", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-aarch64.tar.bz2" + }, + { + "filename": "pypy-c-jit-latest-linux.tar.bz2", + "arch": "i686", + "platform": "linux", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-linux.tar.bz2" + }, + { + "filename": "pypy-c-jit-latest-linux64.tar.bz2", + "arch": "x64", + "platform": "linux", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-linux64.tar.bz2" + }, + { + "filename": "pypy-c-jit-latest-macos_x86_64.tar.bz2", + "arch": "x64", + "platform": "darwin", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-macos_x86_64.tar.bz2" + }, + { + "filename": "pypy-c-jit-latest-macos_arm64.tar.bz2", + "arch": "arm64", + "platform": "darwin", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-macos_arm64.tar.bz2" + }, + { + "filename": "pypy-c-jit-latest-win64.zip", + "arch": "x64", + "platform": "win64", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-win64.zip" + }, + { + "filename": "pypy-c-jit-latest-s390x.tar.bz2", + "arch": "s390x", + "platform": "linux", + "download_url": "https://buildbot.pypy.org/nightly/py3.10/pypy-c-jit-latest-s390x.tar.bz2" + } + ] } ] |