|
@@ -310,13 +310,17 @@ For downstream applications, please refer to our document about [API Details](./
|
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
### Development
|
|
### Development
|
|
|
|
|
+根据 pyproject.toml 字段 [build-system] 得知,作者是用 hatch 开发本项目, https://github.com/pypa/hatch
|
|
|
|
|
+
|
|
|
|
|
+不过为了使用习惯,我使用 poetry 开发本项目。
|
|
|
```shell
|
|
```shell
|
|
|
# 安装 python 环境
|
|
# 安装 python 环境
|
|
|
pyenv install 3.12.0
|
|
pyenv install 3.12.0
|
|
|
# 或者使用 mamba 安装
|
|
# 或者使用 mamba 安装
|
|
|
mamba create -n pdf python=3.12 -y
|
|
mamba create -n pdf python=3.12 -y
|
|
|
mamba activate pdf
|
|
mamba activate pdf
|
|
|
-# 如果系统没有 poetry ,请先安装 poetry
|
|
|
|
|
|
|
+# 如果系统没有 poetry ,请先安装 poetry 。推荐全局安装 https://python-poetry.org/docs/#installing-with-the-official-installer
|
|
|
|
|
+# 或者使用 pip 安装,仅在当前环境生效
|
|
|
pip install poetry
|
|
pip install poetry
|
|
|
# 根据 pyproject.toml 安装依赖
|
|
# 根据 pyproject.toml 安装依赖
|
|
|
poetry install
|
|
poetry install
|