2
2
import os
3
3
from platform import architecture , machine
4
4
from setuptools import setup
5
- from setuptools .command .test import test as TestCommand
6
5
import sys
7
6
8
7
# environment variables for cross-platform package creation
34
33
package_data = None
35
34
zip_safe = True
36
35
37
-
38
- class PyTest (TestCommand ):
39
-
40
- user_options = [('pytest-args=' , 'a' , "Arguments to pass to py.test" )]
41
-
42
- def initialize_options (self ):
43
- TestCommand .initialize_options (self )
44
- self .pytest_args = []
45
-
46
- def finalize_options (self ):
47
- TestCommand .finalize_options (self )
48
- self .test_args = []
49
- self .test_suite = True
50
-
51
- def run_tests (self ):
52
- # import here, cause outside the eggs aren't loaded
53
- import pytest
54
- errno = pytest .main (self .pytest_args )
55
- sys .exit (errno )
56
-
57
- cmdclass = {'test' : PyTest }
36
+ cmdclass = {}
58
37
59
38
try :
60
39
from wheel .bdist_wheel import bdist_wheel
@@ -73,9 +52,11 @@ def get_tag(self):
73
52
else :
74
53
oses = 'macosx_11_0_arm64'
75
54
elif platform == 'win32' :
76
- if architecture0 == '32bit' :
55
+ if architecture0 .lower () == 'arm64' or machine () == 'ARM64' :
56
+ oses = 'win_arm64'
57
+ elif architecture0 == 'x86' or architecture0 == '32bit' :
77
58
oses = 'win32'
78
- else :
59
+ elif architecture0 == 'x64' or architecture0 == '64bit' :
79
60
oses = 'win_amd64'
80
61
elif platform == 'linux' :
81
62
# using the centos:7 runner with glibc2.17:
@@ -84,7 +65,7 @@ def get_tag(self):
84
65
else :
85
66
pep600_architecture = architecture0
86
67
87
- oses = 'manylinux_2_17_ {}' .format (pep600_architecture )
68
+ oses = 'manylinux_2_28_ {}' .format (pep600_architecture )
88
69
else :
89
70
pythons = 'py2.py3'
90
71
oses = 'any'
@@ -135,6 +116,5 @@ def get_tag(self):
135
116
],
136
117
long_description = open ('README.rst' ).read (),
137
118
long_description_content_type = "text/x-rst" ,
138
- tests_require = ['pytest' ],
139
119
cmdclass = cmdclass ,
140
120
)
0 commit comments