-
Notifications
You must be signed in to change notification settings - Fork 660
Expand file tree
/
Copy pathpyproject.toml
More file actions
220 lines (201 loc) · 7.93 KB
/
pyproject.toml
File metadata and controls
220 lines (201 loc) · 7.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# =============================================================================
# PACKAGE: behave
# =============================================================================
# SPDX-License-Identifier: BSD-2-Clause
# DESCRIPTION:
# Provides a "pyproject.toml" for packaging usecases of this package.
#
# REASONS:
# * Python project will need a "pyproject.toml" soon to be installable with "pip".
# * Currently, duplicates information from "setup.py" here.
# * "setup.py" is kept until Python 2.7 support is dropped
# * "setup.py" is sometimes needed in some weird cases (old pip version, ...)
#
# SEE ALSO:
# * https://packaging.python.org/en/latest/tutorials/packaging-projects/
# * https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
# * https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
#
# RELATED: Project-Metadata Schema
# * https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
# * https://packaging.python.org/en/latest/specifications/core-metadata/
# * https://pypi.org/classifiers/
# * https://spdx.org/licenses/preview/
#
# PEPs: https://peps.python.org/pep-XXXX/
# * PEP 508 – Dependency specification for Python Software Packages
# * PEP 621 – Storing project metadata in pyproject.toml => CURRENT-SPEC: declaring-project-metadata
# * PEP 631 – Dependency specification in pyproject.toml based on PEP 508
# * PEP 639 – Improving License Clarity with Better Package Metadata
# =============================================================================
# PREPARED-FOR: setuptools-scm
# * BUT: v1.2.7.devX causes problems with setuptools-scm
#
# SEE ALSO:
# * https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
# * https://pypi.org/classifiers/
#
# PREPARED:
# * https://setuptools-scm.readthedocs.io/en/latest/usage/
# =============================================================================
# PYTHON3: requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"]
# PREPARED: requires = ["setuptools", "setuptools_scm", "wheel"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
# -- PREPARED: Due to Python 2.7 support and setuptools features
[project]
name = "behave"
authors = [
{name = "Benno Rice"},
{name = "Richard Jones"},
]
maintainers = [
]
description = "behave is behaviour-driven development, Python style"
dynamic = ["version"]
readme = "README.rst"
requires-python = ">=3.10"
keywords = [
"BDD", "behavior-driven-development", "bdd-framework",
"behave", "gherkin", "cucumber-like"
]
license = "BSD-2-Clause"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Testing",
]
dependencies = [
"cucumber-tag-expressions >= 6.2.0",
"cucumber-expressions >= 17.1.0; python_version >= '3.8'",
"parse >= 1.18.0",
"parse-type >= 0.6.0",
# -- XXX_JE_CLEANUP_CANDIDATE:
"six >= 1.15.0",
# -- DISABLED: "win_unicode_console; python_version <= '3.9'",
"colorama >= 0.3.7",
# -- SUPPORT: "pyproject.toml" (or: "behave.toml")
"tomli>=1.1.0; python_version >= '3.0' and python_version < '3.11'",
]
[project.urls]
Homepage = "https://github.com/behave/behave"
Documentation = "https://behave.readthedocs.io/en/latest/"
Repository = "https://github.com/behave/behave"
Issues = "https://github.com/behave/behave/issues/"
Changelog = "https://github.com/behave/behave/blob/main/CHANGES.rst"
[project.scripts]
behave = "behave.__main__:main"
# -- PREPARED:
[project.optional-dependencies]
develop = [
"build >= 0.5.1",
"twine >= 1.13.0",
"coverage >= 5.0",
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 2.0; python_version >= '3.0'",
"PyHamcrest >= 2.0.2; python_version >= '3.0'",
"pytest-cov",
"tox >= 3.28.0,<4.0", # -- HINT: tox >= 4.0 has breaking changes.
"virtualenv >= 20.26.6; python_version >= '3.7'",
"invoke >=1.7.0; python_version >= '3.6'",
"path >= 13.1.0; python_version >= '3.5'",
"pycmd",
"modernize >= 0.5",
"pylint",
"ruff; python_version >= '3.7'",
]
docs = [
"sphinx >= 7.4.0; python_version >= '3.7'",
"furo >= 2024.04.27; python_version >= '3.8'",
# -- CONSTRAINTS UNTIL: sphinx > 5.0 is usable -- 2024-01
# PROBLEM: sphinxcontrib-applehelp v1.0.8 requires sphinx > 5.0
# SEE: https://stackoverflow.com/questions/77848565/sphinxcontrib-applehelp-breaking-sphinx-builds-with-sphinx-version-less-than-5-0
"sphinxcontrib-applehelp >= 1.0.8; python_version >= '3.7'",
"sphinxcontrib-htmlhelp >= 2.0.5; python_version >= '3.7'",
# -- SPHINX-EXTENSIONS:
"sphinx-copybutton >= 0.5.2; python_version >= '3.7'",
]
formatters = [
"behave-html-formatter >= 0.9.10; python_version >= '3.6'",
"behave-html-pretty-formatter >= 1.9.1; python_version >= '3.6'"
]
testing = [
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 2.0; python_version >= '3.0'",
"PyHamcrest >= 2.0.2; python_version >= '3.0'",
"chardet",
"charset-normalizer",
# -- HINT: path.py => path (python-install-package was renamed for python3)
"path >= 13.1.0; python_version >= '3.5'",
# -- EXTRA PYTHON PACKAGES: Used for some tests
"freezegun >= 1.5.1; python_version > '3.7'",
]
# -----------------------------------------------------------------------------
# PACAKING TOOL SPECIFIC PARTS:
# -----------------------------------------------------------------------------
[tool.setuptools]
platforms = ["any"]
zip-safe = true
[tool.setuptools.dynamic]
version = {attr = "behave.version.VERSION"}
[tool.setuptools.packages.find]
where = ["."]
include = ["behave*"]
exclude = ["behave4cmd0*", "tests*"]
namespaces = false
# -- PREPARED: SETUPTOOLS-SCM: Generate version info from git-tag(s).
# # GIT-TAG MATCHER: Only use git-tags that start with "v", like: "v1.3.0"
# [tool.setuptools_scm]
# git_describe_command = "git describe --match 'v[0-9]*'"
# version_file = "behave/version.py"
# -----------------------------------------------------------------------------
# PYLINT:
# -----------------------------------------------------------------------------
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = "100"
# -----------------------------------------------------------------------------
# RUFF: https://docs.astral.sh/ruff/tutorial/#configuration
# -----------------------------------------------------------------------------
# ruff: noqa: E731
[tool.ruff]
line-length = 100
# [tool.ruff.lint]
# extend-select = ["E501"]
# [tool.ruff.lint.pydocstyle]
# convention = "google"
# -----------------------------------------------------------------------------
# CODESPELL
# -----------------------------------------------------------------------------
# SEE: https://github.com/codespell-project/codespell
[tool.codespell]
skip = [
"./build/behave.reports",
"./build/testing",
"./bin/github-workflow.json_schema",
"./etc/gherkin/gherkin-languages.json",
"./features/i18n.unicode_problems.feature",
"./features/cmdline.lang_list.feature",
"./issue.features/issue0152.feature",
"./issue.features/issue0300.feature",
"./issue.features/issue0361.feature",
"./issue.features/issue0606.feature",
]
ignore-words = ".codespell.ignore_words"
# count = true
# quiet-level = 3