Skip to content

Commit

Permalink
Add windows samples (#465)
Browse files Browse the repository at this point in the history
* Add sample runtime for windows arm64
* Update tests and fix win_arm64 runtime sample
  • Loading branch information
itziakos authored May 15, 2024
1 parent 3521126 commit 10aac13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion okonomiyaki/runtimes/tests/test_runtime_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
PYTHON_CPYTHON_3_8_8_RH7_X86_64, PYTHON_CPYTHON_3_8_8_OSX_X86_64,
PYTHON_CPYTHON_3_8_8_WIN_X86_64, PYTHON_CPYTHON_3_8_8_WIN_X86,
PYTHON_CPYTHON_3_11_2_RH8_X86_64, PYTHON_CPYTHON_3_11_2_OSX_X86_64,
PYTHON_CPYTHON_3_11_2_WIN_X86_64)
PYTHON_CPYTHON_3_11_2_WIN_X86_64, PYTHON_CPYTHON_3_11_2_WIN_ARM64)
from okonomiyaki.versions import MetadataVersion
from okonomiyaki.platforms import (
Platform, OSKind, FamilyKind, NameKind, X86_64, X86, ARM64)
Expand Down Expand Up @@ -192,6 +192,7 @@ def test_cpython_darwin(self, path, release, os_release, arch):

@parameterized.expand([
(PYTHON_CPYTHON_3_11_2_WIN_X86_64, '3.11.2+2', '10', X86_64),
(PYTHON_CPYTHON_3_11_2_WIN_ARM64, '3.11.2+2', '11', ARM64),
(PYTHON_CPYTHON_3_8_8_WIN_X86_64, '3.8.8+1', '10', X86_64),
(PYTHON_CPYTHON_3_8_8_WIN_X86, '3.8.8+1', '10', X86)])
def test_cpython_windows(self, path, release, os_release, arch):
Expand Down
5 changes: 4 additions & 1 deletion okonomiyaki/utils/test_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,16 @@
_HERE, 'cpython-3.11.2+2-osx_arm64-darwin.runtime',)
PYTHON_CPYTHON_3_11_2_RH8_ARM64 = os.path.join(
_HERE, 'cpython-3.11.2+2-rh8_arm64-gnu.runtime',)
PYTHON_CPYTHON_3_11_2_WIN_ARM64 = os.path.join(
_HERE, 'cpython-3.11.2+2-win_arm64-msvc2022.runtime',)

PYTHON_CP311_RUNTIMES = [
PYTHON_CPYTHON_3_11_2_RH8_X86_64,
PYTHON_CPYTHON_3_11_2_OSX_X86_64,
PYTHON_CPYTHON_3_11_2_WIN_X86_64,
PYTHON_CPYTHON_3_11_2_OSX_ARM64,
PYTHON_CPYTHON_3_11_2_RH8_ARM64]
PYTHON_CPYTHON_3_11_2_RH8_ARM64,
PYTHON_CPYTHON_3_11_2_WIN_ARM64]

# Misc
PYTHON_CPYTHON_2_7_10_RH5_X86_64_INVALID = os.path.join(
Expand Down
Binary file not shown.

0 comments on commit 10aac13

Please sign in to comment.