Skip to content

Commit

Permalink
fix: 'mirror source' typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CSWellesSun committed Jun 6, 2024
1 parent 2366b2a commit f08d4ee
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The input variables, with their default values:
| `email` | based on the `organization` | Email for `CODE_OF_CONDUCT.md`, `SECURITY.md` files and to specify the ownership of the project in `pyproject.toml`. |
| `version` | `0.1.0` | Initial version of the package. Make sure it follows the [Semantic Versions](https://semver.org/) specification. |
| `line_length` | 88 | The max length per line (used for codestyle with `black` and `isort`). NOTE: This value must be between 50 and 300. |
| `using_tsinghua_image_source` | false | The tsinghua poetry image source |
| `using_tsinghua_mirror_source` | false | The tsinghua poetry mirror source |
| `create_example_template` | `cli` | If `cli` is chosen generator will create simple CLI application with [`Typer`](https://github.com/tiangolo/typer) and [`Rich`](https://github.com/willmcgugan/rich) libraries. One of `cli`, `none` |

All input values will be saved in the `cookiecutter-config-file.yml` file so that you won't lose them. 😉
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ p3g generate
| `email` | 基于 `organization` | 用于 `CODE_OF_CONDUCT.md``SECURITY.md` 文件和在 `pyproject.toml` 中指定项目所有权的电子邮件。 |
| `version` | `0.1.0` | 包的初始版本。确保它遵循 [Semantic Versions](https://semver.org/) 规范。 |
| `line_length` | 88 | 每行的最大长度(用于 `black``isort` 的代码风格)。注意:此值必须在 50 到 300 之间。 |
| `using_tsinghua_image_source` | false | 清华 poetry 镜像源 |
| `using_tsinghua_mirror_source` | false | 清华 poetry 镜像源 |
| `create_example_template` | `cli` | 如果选择 `cli`,生成器将创建一个简单的 CLI 应用程序,使用 [`Typer`](https://github.com/tiangolo/typer)[`Rich`](https://github.com/willmcgugan/rich) 库。`cli``none` 中的一个 |

所有输入值将保存在 `cookiecutter-config-file.yml` 文件中,这样你就不会丢失它们。😉
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"email": "hello@{{ cookiecutter.organization.lower().replace(' ', '-') }}.com",
"version": "0.1.0",
"line_length": 88,
"using_tsinghua_image_source": false,
"using_tsinghua_mirror_source": false,
"install_ruff": true,
"install_pre_commit": true,
"install_coverage": true,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "p3g"
version = "1.3.1"
version = "1.3.2"
description = "Python Packages Project Generator"
readme = "README.md"
authors = ["Zeeland <[email protected]>"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ classifiers = [ #! Update me
# Entry points for the package https://python-poetry.org/docs/pyproject/#scripts
"{{ cookiecutter.project_name }}" = "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}.__main__:app"{%- endif %}

{% if cookiecutter.using_tsinghua_image_source -%}
{% if cookiecutter.using_tsinghua_mirror_source -%}
[[tool.poetry.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
Expand Down

0 comments on commit f08d4ee

Please sign in to comment.