File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 9393
9494 - name : Set version to include mypyc suffix
9595 run : |
96- sed -i 's/version = "0.15.0"/version = "0.15.0+mypyc"/' pyproject.toml
96+ # Extract current version and add mypyc suffix
97+ CURRENT_VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
98+ if [[ "${{ runner.os }}" == "macOS" ]]; then
99+ sed -i '' "s/version = \"$CURRENT_VERSION\"/version = \"$CURRENT_VERSION+mypyc\"/" pyproject.toml
100+ else
101+ sed -i "s/version = \"$CURRENT_VERSION\"/version = \"$CURRENT_VERSION+mypyc\"/" pyproject.toml
102+ fi
97103 shell : bash
98104
99105 - name : Install dependencies with mypyc extras
Original file line number Diff line number Diff line change @@ -104,7 +104,13 @@ jobs:
104104
105105 - name : Set version to include mypyc suffix
106106 run : |
107- sed -i 's/version = "0.15.0"/version = "0.15.0+mypyc"/' pyproject.toml
107+ # Extract current version and add mypyc suffix
108+ CURRENT_VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
109+ if [[ "${{ runner.os }}" == "macOS" ]]; then
110+ sed -i '' "s/version = \"$CURRENT_VERSION\"/version = \"$CURRENT_VERSION+mypyc\"/" pyproject.toml
111+ else
112+ sed -i "s/version = \"$CURRENT_VERSION\"/version = \"$CURRENT_VERSION+mypyc\"/" pyproject.toml
113+ fi
108114 shell : bash
109115
110116 - name : Install dependencies with mypyc extras
Original file line number Diff line number Diff line change 1414try :
1515 import uvloop # pyright: ignore[reportMissingImports]
1616except ImportError :
17- uvloop = None
17+ uvloop = None # type: ignore[assignment]
1818
1919
2020ReturnT = TypeVar ("ReturnT" )
You can’t perform that action at this time.
0 commit comments