Skip to content

Commit 0c29a5a

Browse files
committed
build(pyproject.toml): update dev group spec from poetry style to PEP 735 style
This requires poetry-core >= 2.2.0 https://python-poetry.org/blog/announcing-poetry-2.2.0/
1 parent f4e8fcb commit 0c29a5a

File tree

3 files changed

+33
-35
lines changed

3 files changed

+33
-35
lines changed

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you're a first-time contributor, please check out issues labeled [good first
1616

1717
1. **Python Environment**
1818
- Python `>=3.9`
19-
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.0.0`
19+
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.2.0`
2020
2. **Version Control & Security**
2121
- Git
2222
- Commitizen

docs/contributing_tldr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feel free to send a PR to update this file if you find anything useful. 🙇
33
## Environment
44

55
- Python `>=3.9`
6-
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.0.0`
6+
- [Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) `>=2.2.0`
77

88
## Useful commands
99

pyproject.toml

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,38 @@ pep440 = "commitizen.version_schemes:Pep440"
8484
semver = "commitizen.version_schemes:SemVer"
8585
semver2 = "commitizen.version_schemes:SemVer2"
8686

87+
[project.optional-dependencies]
88+
dev = ["ipython>=8.0,<9.0", "tox>4", "poethepoet>=0.34.0,<1.0.0"]
89+
90+
test = [
91+
"pytest>=7.2,<9.0",
92+
"pytest-cov>=4,<7",
93+
"pytest-mock>=3.10,<4.0",
94+
"pytest-regressions>=2.4.0,<3.0.0",
95+
"pytest-freezer>=0.4.6,<1.0.0",
96+
"pytest-xdist>=3.1.0,<4.0.0",
97+
]
98+
99+
linters = [
100+
"ruff>=0.11.5,<1.0.0",
101+
"pre-commit>=3.2.0,<5.0",
102+
"mypy>=1.16.0,<2.0",
103+
"types-deprecated>=1.2.9.2,<2.0",
104+
"types-python-dateutil>=2.8.19.13,<3.0",
105+
"types-PyYAML>=5.4.3,<7.0.0",
106+
"types-termcolor>=0.1.1,<1.0",
107+
"types-colorama>=0.4.15.20240311,<1.0",
108+
]
109+
110+
documentation = ["mkdocs>=1.4.2,<2.0", "mkdocs-material>=9.1.6,<10.0"]
111+
112+
script = [
113+
# for scripts/gen_cli_help_screenshots.py
114+
"rich>=13.7.1,<14.0",
115+
]
116+
87117
[build-system]
88-
requires = ["poetry-core>=2.0"]
118+
requires = ["poetry-core>=2.2"]
89119
build-backend = "poetry.core.masonry.api"
90120

91121

@@ -106,38 +136,6 @@ packages = [{ include = "commitizen" }, { include = "commitizen/py.typed" }]
106136
[tool.poetry.requires-plugins]
107137
"poethepoet" = ">=0.32.2"
108138

109-
[tool.poetry.group.dev.dependencies]
110-
ipython = "^8.0"
111-
tox = ">4"
112-
poethepoet = "^0.34.0"
113-
114-
[tool.poetry.group.test.dependencies]
115-
pytest = ">=7.2,<9.0"
116-
pytest-cov = ">=4,<7"
117-
pytest-mock = "^3.10"
118-
pytest-regressions = "^2.4.0"
119-
pytest-freezer = "^0.4.6"
120-
pytest-xdist = "^3.1.0"
121-
122-
[tool.poetry.group.linters.dependencies]
123-
ruff = "^0.11.5"
124-
pre-commit = ">=3.2.0,<5.0"
125-
mypy = "^1.16.0"
126-
types-deprecated = "^1.2.9.2"
127-
types-python-dateutil = "^2.8.19.13"
128-
types-PyYAML = ">=5.4.3,<7.0.0"
129-
types-termcolor = "^0.1.1"
130-
types-colorama = "^0.4.15.20240311"
131-
132-
[tool.poetry.group.documentation.dependencies]
133-
mkdocs = "^1.4.2"
134-
mkdocs-material = "^9.1.6"
135-
136-
[tool.poetry.group.script.dependencies]
137-
# for scripts/gen_cli_help_screenshots.py
138-
rich = "^13.7.1"
139-
140-
141139
[tool.coverage]
142140
[tool.coverage.report]
143141
show_missing = true

0 commit comments

Comments
 (0)