Renaming test 04_skip to 04_build_skip and amending it to test CIBW_BUILD as well

This commit is contained in:
Yannick Jadoul
2018-09-23 13:07:28 +02:00
parent 05a054245a
commit c108807e16
5 changed files with 7 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
from setuptools import setup, Extension
import sys
if sys.argv[-1] != '--name':
# explode if run on Python 2.7 or Python 3.3 (these should be skipped)
if sys.version_info[0:2] == (2, 7):
raise Exception('Python 2.7 should not be built')
if sys.version_info[0:2] == (3, 3):
raise Exception('Python 3.3 should be skipped')
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],
version="0.1.0",
)