Commit 0ab5bf3f by baiquan

修改依赖下载方式

parent 9dbcf762
...@@ -10,16 +10,16 @@ ...@@ -10,16 +10,16 @@
```bash ```bash
uv venv uv venv
``` ```
### 激活虚拟环境
```bash
.venv\Scripts\activate
```
### 使用该命令安装依赖 ### 使用该命令安装依赖
```bash ```bash
uv pip install . uv pip install -r requirements.txt
``` ```
## 启动命令 ## 启动命令
### 激活虚拟环境
```bash
.venv\Scripts\activate
```
### 启动Celery Worker ### 启动Celery Worker
```bash ```bash
celery -A celery_app worker -l info -P gevent celery -A celery_app worker -l info -P gevent
......
[build-system]
requires = ["setuptools>=64.0.0"]
build-backend = "setuptools.build_meta"
[project] [project]
name = "doudian-py" name = "doudian-py"
version = "0.1.0" version = "0.1.0"
...@@ -10,42 +6,3 @@ readme = "README.md" ...@@ -10,42 +6,3 @@ readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11"
[[tool.uv.index]] [[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple" url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
dependencies = [
"requests~=2.32.3",
"PyExecJS~=1.5.1",
"loguru~=0.7.3",
"celery~=5.5.0",
"fastapi~=0.115.11",
"pydantic~=2.10.6",
"curl_cffi~=0.10.0",
"DrissionPage~=4.1.0.18",
"dynaconf~=3.2.10",
"ddddocr~=1.5.6",
"playwright~=1.50.0",
"opencv-python~=4.11.0.86",
"tenacity~=9.1.2",
"tqdm~=4.67.1",
"gevent~=25.5.1",
"redis",
"uvicorn",
"pandas~=2.2.3",
"PyYAML~=6.0.2",
"PyMySQL~=1.1.1",
"mysql~=0.0.3",
"mysql-connector-python~=9.3.0",
"retrying~=1.4.0"
]
[tool.setuptools]
# 明确指定项目中的所有包
packages = [
"dao",
"js",
"logs",
"service",
"video"
]
# 指定包目录结构(根目录)
package-dir = {"" = "."}
\ No newline at end of file
requests~=2.32.3
PyExecJS~=1.5.1
loguru~=0.7.3
celery~=5.5.0
fastapi~=0.115.11
pydantic~=2.10.6
curl_cffi~=0.10.0
DrissionPage~=4.1.0.18
urllib3~=2.3.0
dynaconf~=3.2.10
ddddocr~=1.5.6
playwright~=1.50.0
opencv-python~=4.11.0.86
tenacity~=9.1.2
tqdm~=4.67.1
gevent~=25.5.1
redis
uvicorn
pandas~=2.2.3
PyYAML~=6.0.2
PyMySQL~=1.1.1
mysql~=0.0.3
mysql-connector-python~=9.3.0
retrying~=1.4.0
[development]
HUB_APP_ID = "password"
[production]
DEBUG = true
# HUB
DOUDIAN_COOKIE_DOMAINS = "fxg.jinritemai.com,.fxg.jinritemai.com,.compass.jinritemai.com,.buyin.jinritemai.com,.jinritemai.com"
HUB_DOMAIN = "http://127.0.0.1:6873"
HUB_EXE_PATH = "D://hubstudio//Hubstudio.exe"
HUB_GROUP_ID = "doudian"
HUB_APP_SECRET = "password"
# celery
CELERY_BROKER_URL = "redis://localhost:6379/0"
CELERY_RESULT_BACKEND = "redis://localhost:6379/1"
# 系统域名
SYSTEM_DOMAINS = "https://sheinss.top"
SYSTEM_APP_NAME = "admin"
SYSTEM_TASK_QUEUE = "task-queue"
SYSTEM_TASK_QUEUE_NUMBER = 10
SYSTEM_MIN_TASK_QUEUE_NUMBER = 5
SYSTEM_PROCESS_NUMBER = 5
# mysql
DB_HOST = "127.0.0.1"
DB_PORT = 3306
DB_USER = "root"
DB_PASSWORD = "123456"
DB_NAME = "doudian"
DB_CHARSET = "utf8mb4"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment