|
9 | 9 | driver_name = config['driver_name'] |
10 | 10 | if config['uses_nitclk'] or module_name == 'nitclk': |
11 | 11 | wheel_env_no_py = '{}-wheel_dep'.format(module_name) |
12 | | - wheel_env = 'py3-' + wheel_env_no_py + ',' |
| 12 | + # We only actually need to build it once, but we specify multiple versions here |
| 13 | + # to prevent tox from trying to build the wheel with an unsupported (earlier) Python version |
| 14 | + wheel_env = 'py{39,310,311,312}-' + wheel_env_no_py + ',' |
13 | 15 | uses_other_wheel = True |
14 | 16 | if module_name == 'nitclk': |
15 | 17 | # nitclk system tests use niscope |
|
26 | 28 | # test suite on all supported python versions. To use it, "pip install tox" |
27 | 29 | # and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/${module_name}) |
28 | 30 | [tox] |
29 | | -envlist = ${wheel_env}py{38,39,310,311,312}-${module_name}-system_tests, py312-${module_name}-coverage |
| 31 | +envlist = ${wheel_env}py{39,310,311,312}-${module_name}-system_tests, py312-${module_name}-coverage |
30 | 32 | skip_missing_interpreters=True |
31 | 33 | ignore_basepython_conflict=True |
32 | 34 | # We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo |
|
85 | 87 | ${module_name}-coverage: coverage |
86 | 88 |
|
87 | 89 | depends = |
88 | | - ${module_name}-coverage: py{38,39,310,311,312}-${module_name}-system_tests |
| 90 | + ${module_name}-coverage: py{39,310,311,312}-${module_name}-system_tests |
89 | 91 | % if uses_other_wheel: |
90 | 92 | ${module_name}-system_tests: ${wheel_env} |
91 | 93 | % endif |
|
0 commit comments