Skip to content

Commit

Permalink
Force the C extension to be built unless on pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Apr 10, 2024
1 parent 7666c46 commit 8a21ab0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CBOR2_BUILD_C_EXTENSION: "1"
CIBW_SKIP: pp* cp36* cp37*
CIBW_ARCHS: auto64
CIBW_ARCHS_MACOS: x86_64 arm64
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: pip install -e .[test]
env:
CFLAGS: "-UNDEBUG"
CBOR2_BUILD_C_EXTENSION: "${{ matrix.python-version == 'pypy-3.10' && '0' || '1' }}"
- name: Test with pytest
run: coverage run -m pytest -v
env:
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ minversion = 4.0.0
commands = python -m pytest {posargs}
package = editable
extras = test
setenv =
TZ=America/New_York
CBOR2_BUILD_C_EXTENSION=1
[testenv:pypy3]
setenv =
TZ=America/New_York
Expand Down

0 comments on commit 8a21ab0

Please sign in to comment.