From 3ed0a547b233eaf1153409ba4e59a21da0aa3883 Mon Sep 17 00:00:00 2001 From: Byron Hsu Date: Thu, 23 Jan 2025 21:01:01 -0800 Subject: [PATCH] [router] Fix twine uploading (#3095) --- .github/workflows/release-pypi-router.yml | 1 + sgl-router/pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/release-pypi-router.yml b/.github/workflows/release-pypi-router.yml index bba0c0fca..547522e8a 100644 --- a/.github/workflows/release-pypi-router.yml +++ b/.github/workflows/release-pypi-router.yml @@ -84,6 +84,7 @@ jobs: - name: Build SDist run: | pip install build + python -m pip install -U packaging python -m build --sdist - uses: actions/upload-artifact@v4 diff --git a/sgl-router/pyproject.toml b/sgl-router/pyproject.toml index 9bd602706..da5c44a11 100644 --- a/sgl-router/pyproject.toml +++ b/sgl-router/pyproject.toml @@ -20,6 +20,10 @@ classifiers = [ [tool.setuptools.packages] find = { where = ["py_src"] } +# workaround for https://github.com/pypa/twine/issues/1216 +[tool.setuptools] +license-files = [] + [[tool.setuptools-rust.ext-modules]] target = "sglang_router_rs" path = "Cargo.toml"