Skip to content

Commit 428b250

Browse files
authored
Merge pull request #2118 from IntelPython/permit-cython-3.1.0
Permit Cython 3.1.0 for Python 3.13
2 parents b4e0dca + 6a4eea7 commit 428b250

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

conda-recipe/meta.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ requirements:
4141
- {{ dep }}
4242
{% elif dep.startswith('build>=') %}
4343
- {{ 'python-' ~ dep }}
44-
{% elif dep.startswith('cython') %}
45-
{% if dep.split(';')[1] == "python_version<'3.13'" %}
46-
- {{ dep.split(';')[0] }} # [py<313]
47-
{% else %}
48-
- {{ dep.split(';')[0] }} # [py>=313]
49-
{% endif %}
5044
{% else %}
5145
- {{ dep|replace('_','-') }}
5246
{% endif %}

conda-recipe/run_test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ set -e
44

55
${PYTHON} -c "import dpctl; print(dpctl.__version__)"
66
${PYTHON} -m dpctl -f
7-
${PYTHON} -m pytest -q -ra --disable-warnings --cov dpctl --cov-report term-missing --pyargs dpctl -vv
7+
# don't use coverage for Python 3.13 due to crashes related to
8+
# Cython >= 3.1.0 and Python >= 3.13
9+
# TODO: remove if crash is triaged
10+
if ${PYTHON} --version 2>&1 | grep -q '^Python 3\.13'; then
11+
${PYTHON} -m pytest -q -ra --disable-warnings --pyargs dpctl -vv
12+
else
13+
${PYTHON} -m pytest -q -ra --disable-warnings --cov dpctl --cov-report term-missing --pyargs dpctl -vv
14+
fi

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ requires = [
88
"scikit-build>=0.17.0",
99
"ninja>=1.11.1; platform_system!='Windows'",
1010
"cmake>=3.29.0",
11-
"cython>=3.0.10;python_version<'3.13'",
12-
"cython>=3.0.10,<3.1.0;python_version>='3.13'",
11+
"cython>=3.0.10",
1312
"numpy >=1.23",
1413
# WARNING: check with doc how to upgrade
1514
"versioneer[toml]==0.29"

0 commit comments

Comments
 (0)