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