forked from behave/behave
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
218 lines (194 loc) · 7.97 KB
/
pyproject.toml
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
# =============================================================================
# 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
# =============================================================================
# MAYBE: requires = ["setuptools", "setuptools-scm"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "behave"
authors = [
{name = "Jens Engel", email = "[email protected]"},
{name = "Benno Rice"},
{name = "Richard Jones"},
]
maintainers = [
{name = "Jens Engel", email = "[email protected]"},
{name = "Peter Bittner", email = "[email protected]"},
]
description = "behave is behaviour-driven development, Python style"
readme = "README.rst"
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
keywords = [
"BDD", "behavior-driven-development", "bdd-framework",
"behave", "gherkin", "cucumber-like"
]
license = {text = "BSD-2-Clause"}
# DISABLED: license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: Jython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Testing",
"License :: OSI Approved :: BSD License",
]
dependencies = [
"cucumber-tag-expressions >= 4.1.0",
"cucumber-expressions >= 17.1.0; python_version >= '3.8'",
"enum34; python_version < '3.4'",
"parse >= 1.18.0",
"parse-type >= 0.6.0",
"six >= 1.15.0",
"traceback2; python_version < '3.0'",
# -- PREPARED:
"win_unicode_console; python_version <= '3.9'",
"contextlib2; python_version < '3.5'",
"colorama >= 0.3.7",
# -- SUPPORT: "pyproject.toml" (or: "behave.toml")
"tomli>=1.1.0; python_version >= '3.0' and python_version < '3.11'",
"toml>=0.10.2; python_version < '3.0'", # py27 support
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/behave/behave"
Download = "https://pypi.org/project/behave/"
"Source Code" = "https://github.com/behave/behave"
"Issue Tracker" = "https://github.com/behave/behave/issues/"
[project.scripts]
behave = "behave.__main__:main"
[project.entry-points."distutils.commands"]
behave_test = "setuptools_behave:behave_test"
[project.optional-dependencies]
develop = [
"build >= 0.5.1",
"twine >= 1.13.0",
"coverage >= 5.0",
"pytest >=4.2,<5.0; python_version < '3.0'",
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 1.19.0,<2.0; python_version < '3.0'",
"pytest-html >= 2.0; python_version >= '3.0'",
"mock < 4.0; python_version < '3.6'",
"mock >= 4.0; python_version >= '3.6'",
"PyHamcrest >= 2.0.2; python_version >= '3.0'",
"PyHamcrest < 2.0; python_version < '3.0'",
"pytest-cov",
"tox >= 1.8.1,<4.0", # -- HINT: tox >= 4.0 has breaking changes.
"virtualenv < 20.22.0", # -- SUPPORT FOR: Python 2.7, Python <= 3.6
"invoke >=1.7.0,<2.0; python_version < '3.6'",
"invoke >=1.7.0; python_version >= '3.6'",
# -- HINT, was RENAMED: path.py => path (for python3)
"path >= 13.1.0; python_version >= '3.5'",
"path.py >= 11.5.0; python_version < '3.5'",
"pycmd",
"pathlib; python_version <= '3.4'",
"modernize >= 0.5",
"pylint",
"ruff; python_version >= '3.7'",
]
docs = [
"sphinx >= 7.3.7; python_version >= '3.7'",
"sphinx >=1.6,<4.4; 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'", # >= 4.2
"pytest >= 5.0; python_version >= '3.0'",
"pytest-html >= 1.19.0,<2.0; python_version < '3.0'",
"pytest-html >= 2.0; python_version >= '3.0'",
"mock < 4.0; python_version < '3.6'",
"mock >= 4.0; python_version >= '3.6'",
"PyHamcrest >= 2.0.2; python_version >= '3.0'",
"PyHamcrest < 2.0; python_version < '3.0'",
"assertpy >= 1.1",
# -- HINT: path.py => path (python-install-package was renamed for python3)
"path >= 13.1.0; python_version >= '3.5'",
"path.py >=11.5.0,<13.0; python_version < '3.5'",
# -- PYTHON2 BACKPORTS:
"pathlib; python_version <= '3.4'",
# -- EXTRA PYTHON PACKAGES: Used for some tests
"freezegun >= 1.5.1; python_version > '3.7'",
]
# -- BACKWORD-COMPATIBLE SECTION: Can be removed in the future
# HINT: Package-requirements are now part of "dependencies" parameter above.
toml = [
"tomli>=1.1.0; python_version >= '3.0' and python_version < '3.11'",
"toml>=0.10.2; python_version < '3.0'",
]
[tool.distutils.bdist_wheel]
universal = true
# -----------------------------------------------------------------------------
# PACAKING TOOL SPECIFIC PARTS:
# -----------------------------------------------------------------------------
[tool.setuptools]
platforms = ["any"]
py-modules = ["setuptools_behave"]
zip-safe = true
[tool.setuptools.cmdclass]
behave_test = "setuptools_behave.behave_test"
[tool.setuptools.dynamic]
version = {attr = "behave.version.VERSION"}
[tool.setuptools.packages.find]
where = ["."]
include = ["behave*"]
exclude = ["behave4cmd0*", "tests*"]
namespaces = false
# -----------------------------------------------------------------------------
# PYLINT:
# -----------------------------------------------------------------------------
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = "100"