From f95752e9fdc1fa727e52e310057afe5c68004a04 Mon Sep 17 00:00:00 2001 From: Ioannis Tziakos Date: Thu, 29 Jun 2023 15:58:43 +0100 Subject: [PATCH] Add cp311 dummy eggs (#453) * Add dummy eggs for cp311 * Update test code to check the dummy cp311 eggs * Add new cp311 eggs into the package --- okonomiyaki/utils/test_data/__init__.py | 32 ++++++++++++++++++ .../eggs/osx_x86_64/cp311/MKL-10.3-1.egg | Bin 0 -> 812 bytes .../eggs/osx_x86_64/cp311/nose-1.3.4-1.egg | Bin 0 -> 1582 bytes .../eggs/osx_x86_64/cp311/numpy-1.9.2-1.egg | Bin 0 -> 1387 bytes .../eggs/rh8_x86_64/cp311/MKL-10.3-1.egg | Bin 0 -> 917 bytes .../eggs/rh8_x86_64/cp311/nose-1.3.4-1.egg | Bin 0 -> 1581 bytes .../eggs/rh8_x86_64/cp311/numpy-1.9.2-1.egg | Bin 0 -> 1385 bytes .../eggs/win_x86_64/cp311/MKL-10.3-1.egg | Bin 0 -> 809 bytes .../eggs/win_x86_64/cp311/nose-1.3.4-1.egg | Bin 0 -> 1576 bytes .../eggs/win_x86_64/cp311/numpy-1.9.2-1.egg | Bin 0 -> 1382 bytes okonomiyaki/utils/tests/test_eggs.py | 25 +++++++++++++- .../{test_test_data.py => test_runtimes.py} | 0 setup.cfg | 4 +++ 13 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/MKL-10.3-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/nose-1.3.4-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/numpy-1.9.2-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/MKL-10.3-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/nose-1.3.4-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/numpy-1.9.2-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/MKL-10.3-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/nose-1.3.4-1.egg create mode 100644 okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/numpy-1.9.2-1.egg rename okonomiyaki/utils/tests/{test_test_data.py => test_runtimes.py} (100%) diff --git a/okonomiyaki/utils/test_data/__init__.py b/okonomiyaki/utils/test_data/__init__.py index d1e5b9e4..d8209b52 100644 --- a/okonomiyaki/utils/test_data/__init__.py +++ b/okonomiyaki/utils/test_data/__init__.py @@ -241,3 +241,35 @@ NOSE_1_3_4_OSX_X86_64_cp38, MKL_10_3_OSX_X86_64_cp38, NUMPY_1_9_2_OSX_X86_64_cp38] + +# cp38 eggs for testing + +_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") + +_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") + +_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") + + +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_WIN_X86_64_cp311, + MKL_10_3_WIN_X86_64_cp311, + NUMPY_1_9_2_WIN_X86_64_cp311, + NOSE_1_3_4_OSX_X86_64_cp311, + MKL_10_3_OSX_X86_64_cp311, + NUMPY_1_9_2_OSX_X86_64_cp311] diff --git a/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..c7debf11e6982d9f86b1e8613a6e266dd72417e3 GIT binary patch literal 812 zcmWIWW@Zs#U|`^2ka5v>*J?7Xxdi0tGBPj-0%=!wcU@0EH-G&AZwMo_|Fj>oA&=|# ze_a0$q;%a#Wfk&Ru_I`X)^%sw7-u+{IXx-her3)YSb)U?e zc7MwGYoa`vYvxVd|14xjjL^fRxf?xZ7N$IomY0?~++H7lS$j3Z^`^z@nfF z?BV^u8~_i1lht>_7Q75Bzu730`ms3S{UUBjJ zt45O+c>I`Xr;)uX_~@-)2M$b_Cb{l8ce7E>E8FIOYt<%hU{yGOTxNn;?5mxfk1kiu zovQFZw5^fXsddJgvr?Sz#E++DFBCPrv_bP#Xy@%muV$#_9qxI{Cq1WMcG~(GyPg_b zJkpm+@%Z$w!5-m5P!!uOStFnV^c@I`0x>*_!9FZ5&CN|Ls{DLL+w*MT2Vb3&0U!Ky zPcd(*HJaQd)U73I(&hEp%cwZmbSFcAHzSh>Gw!qlG#d;WfN2TI8dypKX_td)#|(K1 zuvU=HZH1lcD|(@MdKLDPso0J3!is3B&^c DJ|h|~ literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..f500e2d7d9a740c4e0cad82878b182547161879f GIT binary patch literal 1582 zcmWIWW@Zs#U|`^2&~?#wH~a4}Wi>Mc!)A5{20@^xtGm0dr=Od@et zC3!6i?`pHQz1u#2o5jA=*R#I&^S|$tz7(tPo_&k==-hQT*Z2PU( zhH0YQw-hGKoK(0qAsjck+hvu`f8seI?w@{#@kzQa>I?C$#2pweY_u|uruwSf9z4VS6A_yX^*xaxfV!-qTK zt7Gmv-t1(19$5Tzsf6M#$NE6g4@vK1U;T<%+TwFv?}6Lof`}Uz{%x`7&bq+7(Z2NX zi@THERys+!KTm$vySk`oaT%{ZZ-M`t!qY~^OSVNCUy-W2cF5!C3savbrAwLkPMwv% zQLyeo7Ngm2^VwBG+;gRWHPjcdPIdH@TIqFX+Bxy|^vHs=MOi1;PhF>!vS9VmDLNmk z>a{0bYEU~@q5bM+@y-)}-mm<)UUYYEW>II=*CQ>n8-&lav_^1#<@$T2ae4ie_J;0n zXU=;4GFR7FwYTcj;sZZf*A%p07M3hs)gq%*)qm>PpKTA-&GJNig*1gl7CE#0ujk?p zxVG@g%1NBlzOG?3(C$7Jerm?s1ry%wf4uJZOPP&pLUhCh*B9o@5O(!E#>iv;NbE=PyU8GCRQ9al`acXxwp zv-GXyryNdO{-1j0=XLHEb7O*B?rGju-6?e7&)G7!_Bz3G{vfUIZxfsLAMWH1F|q05 zw4WK)uyW+_;>i_?5IDy0q~r? zwfb(@qO85;Gk`hz2M~)e$RKidaY1UbeoAUVYFAY59(&A`a=0$3P; ziP&?#e1{YSSReeIv&g!vwev^@EyAJas{VpX zxMlTn#XX;XXbS5-=h@dVv#rahW7U<}_K~y0x2e=dO?Y3}etP5Kx1~C-Z}Tfm*mHS7 z@WIof_Yl4Wm0w4n#a;9S`Y;fPMS&Pzet~^iT$-DkSX3!`awBhp0T0UoyWl@YUrcxe z61yX~@~2ohY;%vPJ}vF_vSU$1x`?`2RLi#mFO60`+Ng0tN$lAf(WJZIqi?$`Tflp% zLS_HIcQ2U(ycwB9m~oe$KnH+910#rny9HL3g0#y)wPQw+1XwFb=eEXMz*vB5M~N_2 pNQ9w97P`aGg9U6fkZ52$z=CcvG>`(kS=m6!n1S#PkhWn3@c^{CpydDn literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/numpy-1.9.2-1.egg b/okonomiyaki/utils/test_data/eggs/osx_x86_64/cp311/numpy-1.9.2-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..3ec8ceb3b3cf90180930bc63d52c8540d9da18f1 GIT binary patch literal 1387 zcmWIWW@Zs#U|`^25OdLYk6yi;<31AuLmV3egCJ1U)!kj!)6dOcKfoKpm>S}nf7^g( z@9*#r>{kqTCARO5hx7W0FFZYE-3VpeF<$v9jw`qL07Dnq$e0u!&araBt zMK&C4_{m=sCl!0>=PR4t2j_WR*tp$!TgAu9uZpXa?k|@1+R^#9@Bal$nFChJC#qLk zXY_hcG;N>T$lv$=#{&mL|PnV0=@Rr(S7?e3Q;(Qhnn+Ob579er33(OVgQtn{W; z+up)ry&X%`gN_+}{G+s7Zt1MnXT4vPel7XhEnbv%!^82G@&D_ujCPx_ujMiO`S4#Z5R7Jr+jI+Fj1{tYx~8>$C*Z| z@iUSFZHi`Im@s|rGPb6Z3I76bdntOdn>zGI-CAKFppoKw!Ch2k`n6)wIigpOygj(3 zW>spzogU?@Z;WJAZVNM4r0ndRtICo*!}ra>=p@FKzWdyl#x1wF2Z#zY`rb(tOxqI@0MN+kPox3j; zmtWubuuy!;AuU6>?&wc3Yi{h9-}r+|XXEEZ>PNQiYTEkrZS|sOEQfztwb#zK+Ut1t z=$1(`1t0xa+&$pE^gr_~KY9NT<;RMWgKsY5Z8y>2HvZovW6zt}*`2@Z@x%pRTx}2L zy|rLlvrwvLfn95?_rsp&Ixiol3f<$rwXvB0{h~PDBeQ=7=B$2W9sth`d#mq;_0>kY zuL9-*E=C3h5e6AVZYVBDP1a9IElABv2@T<7U{0MnHwA=CE4UdLSza(RFo22JbKZPS z1|qB%enz{d&(+wN(7_keIGRCuHD;vCoMQ!op;aubORIfr{!<{Y7hHKC*bx2(l>+|+l=~fk{&oRkQ6Pqw0$_g^m*(as7FDtyJji=M zfrn*7{qhq`XAa6-7uq_}$w9ngL+#sD3tOh|v~*wfz18g*qXkcVxK{pv1HUZwOzyg$kff)$z0O?AgLIwr^_f0mQ literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..4d5d9fb1961787d263003444d8395ccdeb54fa28 GIT binary patch literal 917 zcmWIWW@Zs#U|`^2Xsf;(mVTV`(|I6Ig^__lkU@sQ)!kj!)6dOcKfoKp2o2$6VE!{@ zZVCvOR&X;gvbt!?n3a*?0at6wAHB zS}t>=abc?tj!nRQin!zP)?J(&Rvnb$xpf*dl%1*ysU zDX9gic`4w)$(TGh1%%N8$G7)1Uz34=>-W#1Z+0m!YTHnlzi3B6wvX`zuHM=iWmzBI z=ZXqV`+jFu^hxniYvZ|2{-HCb8v z{++t4wY|Al$8%%-BL!!r?bbDnAYXC;{lvh~35M*}Q6<=$ zj8o^PfH0ajJ@ZOZa}<0NOEMI^Q;YI|Y@f`eBA_M(jiS=LlFZyxO|AfMMkYCCT!~Hs zRSYzMfdK%NVK#&S literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/rh8_x86_64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..9014169188044ce89622facb862e22fb8f390e60 GIT binary patch literal 1581 zcmWIWW@Zs#U|`^22y@nVH~a4}Wi>Mc!)A5{20@^xtGm0dr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Dnq$e0u!&araBt zMK&C4_{m=sCl!0>=PR4t2j_WR*tp$!TgAu9uZpXa?k|@1+R^#9@Bal$nFChJC#qLk zXY_hcG;N>T$lv$=#{&mL|PnV0=@Rr(S7?e3Q;(Qhnn+Ob579er33(OVgQtn{W; z+up)ry&X%`gN_+}{G+s7Zt1MnXT4vPel7XhEnbv%!^82G@&D_ujCPx_ujMiO`S4#Z5R7Jr+jI+Fj1{tYx~8>$C*Z| z@iUSFZHi`Im@s|rGPb6Z3I76bdntOdn>zGI-CAKFppoKw!Ch2k`n6)wIigpOygj(3 zW>spzogU?@Z;WJAZVNM4r0ndRtICo*!}ra>=p@FKzWdyl#x1wF2Z#zY`rb(tOxqI@0MN+kPox3j; zmtWubuuy!;AuU6>?&wc3Yi{h9-}r+|XXEEZ>PNQiYTEkrZS|sOEQfztwb#zK+Ut1t z=$1(`1t0xa+&$pE^gr_~KY9NT<;RMWgKsY5Z8y>2HvZovW6zt}*`2@Z@x%pRTx}2L zy|rLlvrwvLfn95?_rsp&Ixiol3f<$rwXvB0{h~PDBeQ=7=B$2W9sth`Q>yQVaq6yH zxB{39*cllZL>OccxuLiqHCaC;wIDSwB{YPSfmvee+!PQlt>9*0WO>2NzyKy`~=gPgEH5JwoY_%5UZ7zekAHL zx$kS|ZQlzdL$>niXo78IjDBbn34c%1?k+@$OnuJR3E_N ujTI7aXmN(_F!ay>8x15H7+F}*O@@X|fHy0!_+(&U2Esc)x*VvGfdK$|mpBUm literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/MKL-10.3-1.egg b/okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/MKL-10.3-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..e01d45943a536a6949647b0f21db6d7074a3ef26 GIT binary patch literal 809 zcmWIWW@Zs#U|`^2xaF+xuGM5%a|y`PWn^Fw1k$eV?z*0SZvOfK-VjD;|7kyFLmt=f z|G54iNa?zf$|~fsVB2M{J=0E{s+iSbn|SFy!*%a(7L-_OBX)u>pqz` z?f#VW*Fzrb2oa-EKGSEEiWx~xV=99vi53*>rIQ*Gw-wZ>K`t% z*u(pQIRG92+%m2z39^6*O`rc>g4 zRulKxKVV0A4-~(4OV$Xe0KEpnqCgCfU$FOzOLKD*iz+{#(e^wW_`z4_WWWbM-BZk) zYKe(;LXS+!i+oN0L=!224F%$vIdrnK-%S?+A)J&0<0CJ zb6X=LkV17OED~5Dk$@Hf=ng~oG1zDz(ZKis!(^!c1H4(;K+2eb@D7kRX9Dp6UEdk` literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/nose-1.3.4-1.egg b/okonomiyaki/utils/test_data/eggs/win_x86_64/cp311/nose-1.3.4-1.egg new file mode 100644 index 0000000000000000000000000000000000000000..9df8cc98dc4bdc312931449cae6c01e97d58efed GIT binary patch literal 1576 zcmWIWW@Zs#U|`^2*yOD5ZuZ|{%4%i?hRy5@41z#WS9f<^Pd_(*{Qz$WV``{x{v9)c zy|2T0?szx7V{h6b&dB=8to8M=Nc|0d#XK6BDjS!1G|Iv% zOY&M4-qmJpd$)c5Hj90!uV;Pl=YQWPeJNJoJ^L2#(YfnxvdNTe{_Rn2{(JW$+4ftn z4bw!qZz)WeIjL}!;I30yOv}^dY*gknd>^2#3I}xDzdgbx3XFvDU<)ifn&ww?>Uc|zP{LV zq2}a_7dNHd~pvYm)LhmY=T_*N3R6?&J;SV_$HN`%1W*{kh2b$?FemZuQ+J zmOu69o+H1nu4tH{<*E_=X}8g?QwP_Zt1NsHBqO+-nbkI9@uuk;*%!9{Zd&S7kj|Od z7_~Z3>smkuFT?o-Ys;CpzThuZ+1>T4L8Z&=Vux7QYXSAc8ZJ|J@de&ranN|!S6ojNOj zqhQ^GEJm~4=CiAWxaUg$YN#(@o$BZ*wbJX(v~%L^>5&C#i?U9xpSn&dWx?vBQ*=I7 z)oV|>)Sz~*Li^Rt;+-e{ykGfoz3A@T%%aY!uSZ&DHwd3;X^r6g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UpsI6 zeu%LT@MdHZVa8qR0PO{X24J`&IRRD%fwap(wPQw;1XwFb=e9;ZU`(L;02XPikVr#| oFm#8ZhX&YaAko0c$bxP%G;9LAS%GCI0|PS<-T~4jK!pqp0NZphfdBvi literal 0 HcmV?d00001 diff --git a/okonomiyaki/utils/tests/test_eggs.py b/okonomiyaki/utils/tests/test_eggs.py index 4d6415af..293c5a9b 100644 --- a/okonomiyaki/utils/tests/test_eggs.py +++ b/okonomiyaki/utils/tests/test_eggs.py @@ -6,7 +6,7 @@ from okonomiyaki.file_formats import EggMetadata from okonomiyaki.platforms import PlatformABI -from ..test_data import CP38_EGGS, CP27_EGGS +from ..test_data import CP38_EGGS, CP27_EGGS, CP311_EGGS class TestDummyEggs(unittest.TestCase): @@ -34,6 +34,29 @@ def test_cp38_egg_metadata_valid(self, filepath): self.assertEqual(metadata.platform_tag, 'linux_x86_64') self.assertEqual(metadata.platform_abi, PlatformABI(u'gnu')) + @given(sampled_from(CP311_EGGS)) + def test_cp311_egg_metadata_valid(self, filepath): + # when + metadata = EggMetadata.from_egg(filepath) + filepath = filepath.lower() + + # then + if 'mkl' in metadata.name: + self.assertEqual(metadata.python_tag, None) + self.assertEqual(metadata.abi_tag, None) + else: + self.assertEqual(metadata.python_tag, 'cp311') + self.assertEqual(metadata.abi_tag, 'cp311') + if 'osx_x86_64' in filepath: + self.assertEqual(metadata.platform_tag, 'macosx_12_0_x86_64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'darwin')) + elif 'win_x86_64' in filepath: + self.assertEqual(metadata.platform_tag, 'win_amd64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'msvc2022')) + else: + self.assertEqual(metadata.platform_tag, 'linux_x86_64') + self.assertEqual(metadata.platform_abi, PlatformABI(u'gnu')) + @given(sampled_from(CP27_EGGS)) def test_cp27_egg_metadata_valid(self, filepath): # when diff --git a/okonomiyaki/utils/tests/test_test_data.py b/okonomiyaki/utils/tests/test_runtimes.py similarity index 100% rename from okonomiyaki/utils/tests/test_test_data.py rename to okonomiyaki/utils/tests/test_runtimes.py diff --git a/setup.cfg b/setup.cfg index 897d35db..01cd727e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -58,12 +58,16 @@ okonomiyaki.utils.test_data = eggs/rh5_x86_64/*.egg eggs/rh6_x86_64/*.egg eggs/rh7_x86_64/*.egg + eggs/rh8_x86_64/*.egg eggs/win_x86_64/*.egg eggs/osx_x86_64/cp38/*.egg + eggs/osx_x86_64/cp311/*.egg eggs/rh5_x86_64/cp38/*.egg eggs/rh6_x86_64/cp38/*.egg eggs/rh7_x86_64/cp38/*.egg + eggs/rh8_x86_64/cp311/*.egg eggs/win_x86_64/cp38/*.egg + eggs/win_x86_64/cp311/*.egg wheels/*.whl [options.extras_require]