Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59bdc2b

Browse files
committed
fix: update pyproject
1 parent 77d4d30 commit 59bdc2b

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

‎README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
cz template for [commitizen](https://github.com/Woile/commitizen) v3
44

55
## Prerequiste
6-
* Python 3.x
7-
* [cookiecutter](https://cookiecutter.readthedocs.io/en/latest/)
8-
* `python -m pip install cookiecutter`
6+
7+
- Python 3.x
8+
- Poetry 1.2.x
9+
- [cookiecutter](https://cookiecutter.readthedocs.io/en/latest/)
10+
- `python -m pip install cookiecutter`
911

1012
## Usage
1113

1214
1. Initialize project through cookiecutter
1315

14-
```sh
15-
cookiecutter gh:commitizen-tools/commitizen_cz_template
16-
```
16+
```sh
17+
cookiecutter gh:commitizen-tools/commitizen_cz_template
18+
```
1719

18-
Note that you don't need to add cz prefix in your project name and package name.
20+
Note that you don't need to add cz prefix in your project name and package name.
1921

2022
2. Implement the `questions` and `message` function in your `cz_[cz_name].py`
2123
3. Publish it to [pypi](https://pypi.org/) or install locally through `pip install .`

‎pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ authors = ["Wei Lee <weilee.rx@gmail.com>"]
66
license = "MIT"
77

88
[tool.poetry.dependencies]
9-
python = "^3.7"
9+
python = "^3.11"
1010

11-
[tool.poetry.dev-dependencies]
12-
commitizen = "^1.11.0"
11+
[tool.poetry.group.dev.dependencies]
12+
commitizen = "^3"
1313

1414
[tool.commitizen]
1515
version = "0.1.0"
16+
1617
[build-system]
17-
requires = ["poetry>=0.12"]
18-
build-backend = "poetry.masonry.api"
18+
requires = ["poetry_core>=1.0.0"]
19+
build-backend = "poetry.core.masonry.api"
1920

2021
[tool.poetry.plugins."commitizen.plugin"]
2122
cz_{{cookiecutter.cz_name}} = "{{cookiecutter.cz_name}}.cz_{{cookiecutter.cz_name}}:{{cookiecutter.cz_name | capitalize}}Cz"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /