modify: build/serve command
This commit is contained in:
parent
00e22bcb71
commit
f58181fbd3
@ -13,8 +13,7 @@ uv 环境
|
||||
```shell
|
||||
uv sync
|
||||
uv pip install -e .
|
||||
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
|
||||
cm_main
|
||||
uv run serve
|
||||
```
|
||||
|
||||
纯 python 环境
|
||||
@ -24,13 +23,23 @@ python -m venv .venv
|
||||
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
cm_main
|
||||
serve
|
||||
```
|
||||
|
||||
## 打包项目
|
||||
|
||||
uv 环境
|
||||
|
||||
```shell
|
||||
cm_build
|
||||
uv run build
|
||||
```
|
||||
|
||||
纯 python 环境
|
||||
```shell
|
||||
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
|
||||
build
|
||||
```
|
||||
|
||||
打包出来的文件在 build 目录下
|
||||
|
||||
```text
|
||||
|
||||
@ -38,5 +38,5 @@ dev = [
|
||||
packages = ["src/{{ cookiecutter.project_name }}"]
|
||||
|
||||
[project.scripts]
|
||||
cm_build = "{{ cookiecutter.project_name }}.scripts.build:main"
|
||||
cm_main = "{{ cookiecutter.project_name }}:main"
|
||||
build = "{{ cookiecutter.project_name }}.scripts.build:main"
|
||||
serve = "{{ cookiecutter.project_name }}:main"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user