liuyuqi-cnb 5 days ago
parent
commit
6a6189ae24
2 changed files with 17 additions and 2 deletions
  1. 10 2
      README.md
  2. 7 0
      pyproject.toml

+ 10 - 2
README.md

@@ -15,17 +15,25 @@ uv venv
 uv init demo
 uv init demo
 uv add requests
 uv add requests
 
 
+# 同步依赖 
+uv sync
+
 uv pip install flask  
 uv pip install flask  
 uv pip install -r requirements.txt
 uv pip install -r requirements.txt
 
 
+# 运行
 uv run main.py
 uv run main.py
 
 
 # 格式化代码
 # 格式化代码
 uv format
 uv format
 
 
-uv python 
+# 设置版本
+uv python list
+uv python install cpython-3.12.1-linux-x86_64-gnu
+uv python install cpython-3.14.2-linux-x86_64-gnu
 
 
-uv build 
+# 构建二进制
+uv build --wheel
 
 
 uv publish
 uv publish
 
 

+ 7 - 0
pyproject.toml

@@ -0,0 +1,7 @@
+[project]
+name = "uv"
+version = "0.1.0"
+description = "Add your description here"
+readme = "README.md"
+requires-python = ">=3.12"
+dependencies = []