mirror of https://github.com/apache/cassandra
CASSANDRA-20997: Skip Cython test matrix for Python 3.12+ in Jenkins pipeline
This commit is contained in:
parent
03c1b6c950
commit
7ef73acb94
|
|
@ -254,6 +254,7 @@ def tasks() {
|
|||
(isStageEnabled(axis['step'])) && // skip disabled steps
|
||||
!(axis['python'] != pythonDefault && 'cqlsh-test' != axis['step']) && // Use only python 3.8 for all tests but cqlsh-test
|
||||
!(axis['cython'] != 'no' && 'cqlsh-test' != axis['step']) && // cython only for cqlsh-test, disable for others
|
||||
!(axis['cython'] == 'yes' && (axis['python'] == '3.12' || axis['python'] == '3.13')) && // Skip cython for Python 3.12+
|
||||
!(axis['jdk'] != javaVersionDefault && ('cqlsh-test' == axis['step'] || 'simulator-dtest' == axis['step'] || axis['step'].contains('dtest-upgrade'))) && // run cqlsh-test, simulator-dtest, *dtest-upgrade only with jdk11
|
||||
// Disable splits for all but proper stages
|
||||
!(axis['split'] > 1 && !stepsMap.findAll { entry -> entry.value.splits >= axis['split'] }.keySet().contains(axis['step'])) &&
|
||||
|
|
|
|||
|
|
@ -20,15 +20,11 @@ from distutils.core import setup
|
|||
|
||||
|
||||
def get_extensions():
|
||||
# Cython < 3.0 is incompatible with Python 3.12+ C-API changes
|
||||
if "--no-compile" in sys.argv or sys.version_info >= (3, 12):
|
||||
if "--no-compile" in sys.argv:
|
||||
return []
|
||||
|
||||
try:
|
||||
from Cython.Build import cythonize
|
||||
return cythonize("cqlshlib/copyutil.py")
|
||||
except ImportError:
|
||||
return []
|
||||
from Cython.Build import cythonize
|
||||
return cythonize("cqlshlib/copyutil.py")
|
||||
|
||||
setup(
|
||||
name="cassandra-pylib",
|
||||
|
|
|
|||
Loading…
Reference in New Issue