Skip to content

Commit 5ef6038

Browse files
authored
Skip mypy on PyPy to avoid librt compilation issues (#1086)
* Skip mypy on PyPy to avoid librt compilation issues mypy's mypyc-compiled dependencies (librt) use CPython internal structures that don't exist in PyPy, causing compilation failures. Fixes test environment installation on PyPy. * Fix CI: unset HATCH_ENV for check_release, use direct version-cmd Two issues: 1. Global HATCH_ENV=cov caused 'hatch version' to fail with 'Environment cov is not a builder environment' in check_release 2. Added explicit version-cmd to .jupyter-releaser.toml for robustness * Remove version-cmd, use default hatch version version-cmd is for bumping, not reading. With HATCH_ENV unset, hatch version works correctly for both reading and bumping.
1 parent 275ffac commit 5ef6038

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ env:
1919
jobs:
2020
check_release:
2121
runs-on: ubuntu-latest
22+
env:
23+
HATCH_ENV: ""
2224
steps:
2325
- uses: actions/checkout@v4
2426
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test = [
4848
"anyio",
4949
"coverage",
5050
"ipykernel>=6.14",
51-
"mypy",
51+
"mypy; platform_python_implementation != 'PyPy'",
5252
"paramiko; sys_platform == 'win32'",
5353
"pre-commit",
5454
"pytest",

0 commit comments

Comments
 (0)