Skip to content

Commit

Permalink
Separate cython constraint for free-threading
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed Feb 17, 2025
1 parent dd07bfd commit 4c8fe2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ test-command = 'pytest -v -m "not hypothesis" --no-cov {project}/tests'
# don't build PyPy wheels, install from source instead
skip = "pp*"

# TODO: Remove this when there's a Cython 3.1 final release
# Remove PIP_CONSTRAINT from the environment
[[tool.cibuildwheel.overrides]]
select = "cp313t-*"
environment = {COLOR="yes", FORCE_COLOR="1", MYPY_FORCE_COLOR="1", PRE_COMMIT_COLOR="always", PY_COLORS="1"}

[tool.cibuildwheel.environment]
COLOR = "yes"
FORCE_COLOR = "1"
Expand All @@ -98,3 +92,11 @@ pure-python = "false"

[tool.cibuildwheel.windows]
before-test = [] # Windows cmd has different syntax and pip chooses wheels

# TODO: Remove this when there's a Cython 3.1 final release
# Remove PIP_CONSTRAINT from the environment
[[tool.cibuildwheel.overrides]]
select = "cp313t-*"

inherit.environment = "append"
environment = {PIP_CONSTRAINT = "requirements/cython-freethreading.txt"}
1 change: 1 addition & 0 deletions requirements/cython-freethreading.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cython==3.1.0a1

0 comments on commit 4c8fe2f

Please sign in to comment.