-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use eval_type_backport on Python 3.9 if it's installed to resolve `in…
…t | None` etc. (#773) * Use eval_type_backport on Python 3.9 if it's installed to resolve `int | None` etc. This uses the same module that pydantic does, and it allows people to use the new pipe syntax if they have to support Python3.9 too -- very useful for libraries. (Also it works better with many type checkers which seem to mistakenly think that with `from __future__ import annotations` means `int| None` will work, but it doesn't out of the box.) --------- Co-authored-by: Jim Crist-Harif <[email protected]>
- Loading branch information
Showing
5 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
|
||
- name: Build msgspec and install dependencies | ||
run: | | ||
pip install coverage -e ".[test]" | ||
pip install -e ".[dev]" | ||
- name: Run pre-commit hooks | ||
uses: pre-commit/[email protected] | ||
|
@@ -78,7 +78,7 @@ jobs: | |
os: [ubuntu-latest, macos-13, windows-latest] | ||
|
||
env: | ||
CIBW_TEST_REQUIRES: "pytest msgpack pyyaml tomli tomli_w" | ||
CIBW_TEST_EXTRAS: "test" | ||
CIBW_TEST_COMMAND: "pytest {project}/tests" | ||
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*" | ||
CIBW_SKIP: "*-win32 *_i686 *_s390x *_ppc64le" | ||
|
@@ -102,7 +102,7 @@ jobs: | |
echo "CIBW_SKIP=${CIBW_SKIP} *-musllinux_* cp39-*_aarch64 cp311-*_aarch64 cp312-*_aarch64 cp313-*_aarch64" >> $GITHUB_ENV | ||
- name: Build & Test Wheels | ||
uses: pypa/cibuildwheel@v2.21.3 | ||
uses: pypa/cibuildwheel@v2.22.0 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters