Skip to content

Commit

Permalink
fix(pyo3): module name wasn't modified in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowee committed Nov 27, 2024
1 parent fad958c commit aa1e347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pyo3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
run: |
sed -i 's/name = "zhconv-rs"/name = "zhconv-rs-opencc"/' pyo3/pyproject.toml
sed -i 's/name = "zhconv_rs"/name = "zhconv_rs_opencc"/' pyo3/Cargo.toml
sed -i 's/fn zhconv_rs/fn zhconv_rs_opencc/' pyo3/src/lib.rs
sed -i 's/\(description = ".*\)"$/\1 (with OpenCC dicts)"/' pyo3/Cargo.toml
- name: Build wheels - OpenCC
uses: PyO3/maturin-action@v1
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
run: |
sed -i 's/name = "zhconv-rs"/name = "zhconv-rs-opencc"/' pyo3/pyproject.toml
sed -i 's/name = "zhconv_rs"/name = "zhconv_rs_opencc"/' pyo3/Cargo.toml
sed -i 's/fn zhconv_rs/fn zhconv_rs_opencc/' pyo3/src/lib.rs
- name: Build wheels - OpenCC
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -145,6 +147,7 @@ jobs:
run: |
sed -i 's/name = "zhconv-rs"/name = "zhconv-rs-opencc"/' pyo3/pyproject.toml
sed -i 's/name = "zhconv_rs"/name = "zhconv_rs_opencc"/' pyo3/Cargo.toml
sed -i 's/fn zhconv_rs/fn zhconv_rs_opencc/' pyo3/src/lib.rs
- name: Build wheels - OpenCC
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -185,6 +188,7 @@ jobs:
run: |
sed -i'' -e 's/name = "zhconv-rs"/name = "zhconv-rs-opencc"/' pyo3/pyproject.toml
sed -i'' -e 's/name = "zhconv_rs"/name = "zhconv_rs_opencc"/' pyo3/Cargo.toml
sed -i'' -e 's/fn zhconv_rs/fn zhconv_rs_opencc/' pyo3/src/lib.rs
- name: Build wheels - OpenCC
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit aa1e347

Please sign in to comment.