Skip to content

Commit

Permalink
Add sample eggs for arm systems (#462)
Browse files Browse the repository at this point in the history
Co-authored-by: Build Team <[email protected]>
  • Loading branch information
itziakos and Build Team authored May 10, 2024
1 parent 1dae8ec commit 9802f34
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 7 deletions.
41 changes: 34 additions & 7 deletions okonomiyaki/utils/test_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,30 +256,57 @@

_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')

NOSE_1_3_4_WIN_X86_64_cp311 = os.path.join(_WIN_X86_64_cp311, 'nose-1.3.4-1.egg')
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]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions okonomiyaki/utils/tests/test_eggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 9802f34

Please sign in to comment.