22import os
33from platform import architecture , machine
44from setuptools import setup
5- from setuptools .command .test import test as TestCommand
65import sys
76
87# environment variables for cross-platform package creation
3433 package_data = None
3534 zip_safe = True
3635
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 = {}
5837
5938try :
6039 from wheel .bdist_wheel import bdist_wheel
@@ -73,9 +52,11 @@ def get_tag(self):
7352 else :
7453 oses = 'macosx_11_0_arm64'
7554 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' :
7758 oses = 'win32'
78- else :
59+ elif architecture0 == 'x64' or architecture0 == '64bit' :
7960 oses = 'win_amd64'
8061 elif platform == 'linux' :
8162 # using the centos:7 runner with glibc2.17:
@@ -84,7 +65,7 @@ def get_tag(self):
8465 else :
8566 pep600_architecture = architecture0
8667
87- oses = 'manylinux_2_17_ {}' .format (pep600_architecture )
68+ oses = 'manylinux_2_28_ {}' .format (pep600_architecture )
8869 else :
8970 pythons = 'py2.py3'
9071 oses = 'any'
@@ -135,6 +116,5 @@ def get_tag(self):
135116 ],
136117 long_description = open ('README.rst' ).read (),
137118 long_description_content_type = "text/x-rst" ,
138- tests_require = ['pytest' ],
139119 cmdclass = cmdclass ,
140120)
0 commit comments