Skip to content

Commit

Permalink
debug! cibuildwheel color
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 25, 2023
1 parent 3247e27 commit 914bd16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/reusable-build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ jobs:
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_ENVIRONMENT: >- # Cython line tracing for coverage collection
COLOR="yes"
FORCE_COLOR="1"
MYPY_FORCE_COLOR="1"
PIP_CONSTRAINT="requirements/cython.txt"
PRE_COMMIT_COLOR="always"
PY_COLORS="1"
YARL_CYTHON_TRACING="${{ inputs.cython-tracing }}"
- name: Upload built artifacts for testing and publishing
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ linetrace = "True" # Implies `profile=True`

[tool.cibuildwheel]
build-frontend = "build"
environment = { PIP_CONSTRAINT="requirements/cython.txt" }
before-test = [
# NOTE: Attempt to have pip pre-compile PyYAML wheel with our build
# NOTE: constraints unset. The hope is that pip will cache that wheel
Expand All @@ -79,6 +78,14 @@ test-command = "pytest -v --no-cov {project}/tests"
# don't build PyPy wheels, install from source instead
skip = "pp*"

[tool.cibuildwheel.environment]
COLOR = "yes"
FORCE_COLOR = "1"
MYPY_FORCE_COLOR = "1"
PIP_CONSTRAINT = "requirements/cython.txt"
PRE_COMMIT_COLOR = "always"
PY_COLORS = "1"

[tool.cibuildwheel.config-settings]
--pure-python = "false"

Expand Down

0 comments on commit 914bd16

Please sign in to comment.