Skip to content

Commit 5b42e59

Browse files
authored
Add Aliyun mirror to PyPI index in pyproject.toml (#541)
* Add Aliyun mirror to PyPI index in pyproject.toml * Update uv.lock * fix end of files * Remove UV_INDEX environment variable from Dockerfile
1 parent 1882467 commit 5b42e59

File tree

3 files changed

+1296
-1293
lines changed

3 files changed

+1296
-1293
lines changed

backend/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debi
1515
ENV UV_COMPILE_BYTECODE=1 \
1616
UV_NO_CACHE=1 \
1717
UV_LINK_MODE=copy \
18-
UV_PROJECT_ENVIRONMENT=/usr/local \
19-
UV_INDEX=https://mirrors.aliyun.com/pypi/simple
18+
UV_PROJECT_ENVIRONMENT=/usr/local
2019

2120
# Install dependencies with cache
2221
RUN --mount=type=cache,target=/root/.cache/uv \

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ server = [
7070
package = false
7171
python-downloads = "manual"
7272
default-groups = ["dev", "lint"]
73+
74+
[[tool.uv.index]]
75+
name = "aliyun"
76+
url = "https://mirrors.aliyun.com/pypi/simple"

0 commit comments

Comments
 (0)