|
@@ -1,4 +1,5 @@
|
|
|
# poetry
|
|
|
+依赖管理工具,集成pip, virturlenv
|
|
|
|
|
|
|
|
|
```
|
|
@@ -14,7 +15,10 @@ poetry config --list
|
|
|
poetry config virtualenvs.in-project true
|
|
|
|
|
|
# 国内镜像
|
|
|
-poetry source add --priority=default mirrors https://mirrors.aliyun.com/pypi/simple/
|
|
|
+poetry source add --priority=primary mirrors https://mirrors.aliyun.com/pypi/simple/
|
|
|
+poetry install
|
|
|
+poetry shell
|
|
|
+
|
|
|
|
|
|
pyenv local 3.9.10
|
|
|
poetry env use $(pyenv which python)
|
|
@@ -24,10 +28,6 @@ poetry add httpx
|
|
|
poetry export -f requirements.txt --output requirements.txt --without-hashes
|
|
|
|
|
|
|
|
|
-
|
|
|
-poetry install
|
|
|
-poetry shell
|
|
|
-
|
|
|
# 增加dev测试依赖
|
|
|
poetry add --dev pre-commit
|
|
|
poetry add --group=dev pre-commit pytest pytest-asyncio
|