13
13
# limitations under the License.
14
14
15
15
import os
16
+ import platform
16
17
import unittest
17
18
import zipfile
18
19
@@ -89,9 +90,24 @@ def test_customized_wheel(self):
89
90
"example_customized-0.0.1.dist-info/entry_points.txt"
90
91
)
91
92
# The entries are guaranteed to be sorted.
92
- self .assertEquals (
93
- record_contents ,
94
- b"""\
93
+ if platform .system () == "Windows" :
94
+ self .assertEquals (
95
+ record_contents ,
96
+ b"""\
97
+ example_customized-0.0.1.dist-info/METADATA,sha256=pzE96o3Sp63TDzxAZgl0F42EFevm8x15vpDLqDVp_EQ,378
98
+ example_customized-0.0.1.dist-info/RECORD,,
99
+ example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
100
+ example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
101
+ examples/wheel/lib/data.txt,sha256=9vJKEdfLu8bZRArKLroPZJh1XKkK3qFMXiM79MBL2Sg,12
102
+ examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
103
+ examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
104
+ examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
105
+ """ ,
106
+ )
107
+ else :
108
+ self .assertEquals (
109
+ record_contents ,
110
+ b"""\
95
111
example_customized-0.0.1.dist-info/METADATA,sha256=TeeEmokHE2NWjkaMcVJuSAq4_AXUoIad2-SLuquRmbg,372
96
112
example_customized-0.0.1.dist-info/RECORD,,
97
113
example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
@@ -101,7 +117,7 @@ def test_customized_wheel(self):
101
117
examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
102
118
examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
103
119
""" ,
104
- )
120
+ )
105
121
self .assertEquals (
106
122
wheel_contents ,
107
123
b"""\
@@ -111,9 +127,28 @@ def test_customized_wheel(self):
111
127
Tag: py3-none-any
112
128
""" ,
113
129
)
114
- self .assertEquals (
115
- metadata_contents ,
116
- b"""\
130
+ if platform .system () == "Windows" :
131
+ self .assertEquals (
132
+ metadata_contents ,
133
+ b"""\
134
+ Metadata-Version: 2.1
135
+ Name: example_customized
136
+ Version: 0.0.1
137
+ Author: Example Author with non-ascii characters: \xc3 \x85 \xc2 \xbc \xc3 \x83 \xc2 \xb3 \xc3 \x85 \xc2 \x82 w
138
+
139
+ Home-page: www.example.com
140
+ License: Apache 2.0
141
+ Classifier: License :: OSI Approved :: Apache Software License
142
+ Classifier: Intended Audience :: Developers
143
+ Requires-Dist: pytest
144
+
145
+ This is a sample description of a wheel.
146
+ """ ,
147
+ )
148
+ else :
149
+ self .assertEquals (
150
+ metadata_contents ,
151
+ b"""\
117
152
Metadata-Version: 2.1
118
153
Name: example_customized
119
154
Version: 0.0.1
@@ -127,7 +162,7 @@ def test_customized_wheel(self):
127
162
128
163
This is a sample description of a wheel.
129
164
""" ,
130
- )
165
+ )
131
166
self .assertEquals (
132
167
entry_point_contents ,
133
168
b"""\
0 commit comments