Fix rust unit test and pypi token (#2001)
This commit is contained in:
4
.github/workflows/release-pypi-router.yml
vendored
4
.github/workflows/release-pypi-router.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
- name: Build package
|
- name: Build package
|
||||||
uses: pypa/cibuildwheel@v2.21.3
|
uses: pypa/cibuildwheel@v2.21.3
|
||||||
env:
|
env:
|
||||||
CIBW_BUILD: "cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
|
CIBW_BUILD: "cp38-manylinux_x86_64" # cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
|
||||||
CIBW_BEFORE_ALL: |
|
CIBW_BEFORE_ALL: |
|
||||||
yum update && yum install -y openssl-devel && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
yum update && yum install -y openssl-devel && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
CIBW_ENVIRONMENT: "PATH=$HOME/.cargo/bin:$PATH"
|
CIBW_ENVIRONMENT: "PATH=$HOME/.cargo/bin:$PATH"
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
- name: Upload to PyPI
|
- name: Upload to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_ROUTER }}
|
||||||
run: |
|
run: |
|
||||||
pip install twine
|
pip install twine
|
||||||
twine upload dist/* --verbose
|
twine upload dist/* --verbose
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use sglang_router::tree::RadixTree;
|
use sglang_router_rs::tree::RadixTree;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_new_tree() {
|
fn test_new_tree() {
|
||||||
|
|||||||
Reference in New Issue
Block a user