diff --git a/okonomiyaki/utils/test_data/__init__.py b/okonomiyaki/utils/test_data/__init__.py index c12f5a1..0263ad0 100644 --- a/okonomiyaki/utils/test_data/__init__.py +++ b/okonomiyaki/utils/test_data/__init__.py @@ -256,9 +256,15 @@ _RH8_X86_64_cp311 = os.path.join(_HERE, 'eggs', 'rh8_x86_64', 'cp311') -NOSE_1_3_4_RH7_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'nose-1.3.4-1.egg') -MKL_10_3_RH7_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'MKL-10.3-1.egg') -NUMPY_1_9_2_RH7_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'numpy-1.9.2-1.egg') +NOSE_1_3_4_RH8_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'nose-1.3.4-1.egg') +MKL_10_3_RH8_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'MKL-10.3-1.egg') +NUMPY_1_9_2_RH8_X86_64_cp311 = os.path.join(_RH8_X86_64_cp311, 'numpy-1.9.2-1.egg') + +_RH8_ARM64_cp311 = os.path.join(_HERE, 'eggs', 'rh8_arm64', 'cp311') + +NOSE_1_3_4_RH8_ARM64_cp311 = os.path.join(_RH8_ARM64_cp311, 'nose-1.3.4-1.egg') +MKL_10_3_RH8_ARM64_cp311 = os.path.join(_RH8_ARM64_cp311, 'MKL-10.3-1.egg') +NUMPY_1_9_2_RH8_ARM64_cp311 = os.path.join(_RH8_ARM64_cp311, 'numpy-1.9.2-1.egg') _WIN_X86_64_cp311 = os.path.join(_HERE, 'eggs', 'win_x86_64', 'cp311') @@ -266,20 +272,41 @@ MKL_10_3_WIN_X86_64_cp311 = os.path.join(_WIN_X86_64_cp311, 'MKL-10.3-1.egg') NUMPY_1_9_2_WIN_X86_64_cp311 = os.path.join(_WIN_X86_64_cp311, 'numpy-1.9.2-1.egg') +_WIN_ARM64_cp311 = os.path.join(_HERE, 'eggs', 'win_arm64', 'cp311') + +NOSE_1_3_4_WIN_ARM64_cp311 = os.path.join(_WIN_ARM64_cp311, 'nose-1.3.4-1.egg') +MKL_10_3_WIN_ARM64_cp311 = os.path.join(_WIN_ARM64_cp311, 'MKL-10.3-1.egg') +NUMPY_1_9_2_WIN_ARM64_cp311 = os.path.join(_WIN_ARM64_cp311, 'numpy-1.9.2-1.egg') + _OSX_X86_64_cp311 = os.path.join(_HERE, 'eggs', 'osx_x86_64', 'cp311') NOSE_1_3_4_OSX_X86_64_cp311 = os.path.join(_OSX_X86_64_cp311, 'nose-1.3.4-1.egg') MKL_10_3_OSX_X86_64_cp311 = os.path.join(_OSX_X86_64_cp311, 'MKL-10.3-1.egg') NUMPY_1_9_2_OSX_X86_64_cp311 = os.path.join(_OSX_X86_64_cp311, 'numpy-1.9.2-1.egg') +_OSX_arm64_cp311 = os.path.join(_HERE, 'eggs', 'osx_arm64', 'cp311') + +NOSE_1_3_4_OSX_ARM64_cp311 = os.path.join(_OSX_arm64_cp311, 'nose-1.3.4-1.egg') +MKL_10_3_OSX_ARM64_cp311 = os.path.join(_OSX_arm64_cp311, 'MKL-10.3-1.egg') +NUMPY_1_9_2_OSX_ARM64_cp311 = os.path.join(_OSX_arm64_cp311, 'numpy-1.9.2-1.egg') + CP311_EGGS = [ - NOSE_1_3_4_RH7_X86_64_cp311, - MKL_10_3_RH7_X86_64_cp311, - NUMPY_1_9_2_RH7_X86_64_cp311, + NOSE_1_3_4_RH8_X86_64_cp311, + MKL_10_3_RH8_X86_64_cp311, + NUMPY_1_9_2_RH8_X86_64_cp311, + NOSE_1_3_4_RH8_ARM64_cp311, + MKL_10_3_RH8_ARM64_cp311, + NUMPY_1_9_2_RH8_ARM64_cp311, NOSE_1_3_4_WIN_X86_64_cp311, MKL_10_3_WIN_X86_64_cp311, NUMPY_1_9_2_WIN_X86_64_cp311, + NOSE_1_3_4_WIN_ARM64_cp311, + MKL_10_3_WIN_ARM64_cp311, + NUMPY_1_9_2_WIN_ARM64_cp311, NOSE_1_3_4_OSX_X86_64_cp311, MKL_10_3_OSX_X86_64_cp311, - NUMPY_1_9_2_OSX_X86_64_cp311] + NUMPY_1_9_2_OSX_ARM64_cp311, + NOSE_1_3_4_OSX_ARM64_cp311, + MKL_10_3_OSX_ARM64_cp311, + NUMPY_1_9_2_OSX_ARM64_cp311] diff --git a/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000..e5de9b2 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/MKL-10.3-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000..2ca78a8 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/nose-1.3.4-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/numpy-1.9.2-1.egg b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/numpy-1.9.2-1.egg new file mode 100644 index 0000000..db7b971 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/osx_arm64/cp311/numpy-1.9.2-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000..b6db880 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/MKL-10.3-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000..f1d5c08 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/nose-1.3.4-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/numpy-1.9.2-1.egg b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/numpy-1.9.2-1.egg new file mode 100644 index 0000000..89e365b Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/rh8_arm64/cp311/numpy-1.9.2-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000..6e8446e Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/MKL-10.3-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000..1b036b6 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/nose-1.3.4-1.egg differ diff --git a/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/numpy-1.9.2-1.egg b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/numpy-1.9.2-1.egg new file mode 100644 index 0000000..7b89453 Binary files /dev/null and b/okonomiyaki/utils/test_data/eggs/win_arm64/cp311/numpy-1.9.2-1.egg differ diff --git a/okonomiyaki/utils/tests/test_eggs.py b/okonomiyaki/utils/tests/test_eggs.py index 293c5a9..c64d5c8 100644 --- a/okonomiyaki/utils/tests/test_eggs.py +++ b/okonomiyaki/utils/tests/test_eggs.py @@ -53,6 +53,15 @@ def test_cp311_egg_metadata_valid(self, filepath): elif 'win_x86_64' in filepath: self.assertEqual(metadata.platform_tag, 'win_amd64') self.assertEqual(metadata.platform_abi, PlatformABI(u'msvc2022')) + elif 'osx_arm64' in filepath: + self.assertEqual(metadata.platform_tag, 'macosx_12_0_arm64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'darwin')) + elif 'win_arm64' in filepath: + self.assertEqual(metadata.platform_tag, 'win_arm64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'msvc2022')) + elif 'rh8_arm64' in filepath: + self.assertEqual(metadata.platform_tag, 'linux_aarch64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'gnu')) else: self.assertEqual(metadata.platform_tag, 'linux_x86_64') self.assertEqual(metadata.platform_abi, PlatformABI(u'gnu'))