-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (171 loc) · 6.1 KB
/
Copy pathpyproject.toml
File metadata and controls
189 lines (171 loc) · 6.1 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
# =============================================================================
# PACKAGE: behave4cmd0
# =============================================================================
# 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"
[project]
name = "behave4cmd0"
authors = [
{name = "Jens Engel", email = "jenisys@noreply.github.com"},
]
maintainers = [
{name = "Jens Engel", email = "jenisys@noreply.github.com"},
]
description = "Provides a step-library for `behave <https://pypi.org/project/behave>`_ for testing commands/CLI apps."
dynamic = ["version"]
readme = "README.rst"
requires-python = ">=3.10"
keywords = [
"behave", "behave step-library", "BDD", "console", "CLI", "testing",
]
license = "BSD-2-Clause"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Behave",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: BDD",
"Topic :: Terminals",
]
dependencies = [
# PREPARED: "behave >= 1.3.1; python_version >= '3.10'",
# -- ASSERTION MATCHERS:
"assertpy >= 1.1",
"PyHamcrest >= 2.0.2",
# -- 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/behave4cmd0"
Repository = "https://github.com/behave/behave4cmd0"
Issues = "https://github.com/behave/behave4cmd0/issues/"
Changelog = "https://github.com/behave/behave4cmd0/blob/main/CHANGELOG.rst"
# -- PREPARED:
# Documentation = "https://behave4cmd0.readthedocs.io/en/latest/"
# -- PREPARED:
[project.optional-dependencies]
develop = [
"build >= 0.5.1",
"twine >= 1.13.0",
"coverage >= 5.0",
"pytest >= 8.0",
"pytest-html >= 2.0",
"PyHamcrest >= 2.0.2",
"pytest-cov",
"tox >= 3.28.0,<4.0", # -- HINT: tox >= 4.0 has breaking changes.
"virtualenv >= 20.26.6",
"codespell",
# -- PREPARED:
# "invoke >=2.0.0",
# "path >= 13.1.0",
# "pycmd",
# "modernize >= 0.5",
# "pylint",
# "ruff",
]
docs = [
"sphinx >= 8.0.0",
# -- SPHINX-THEME:
# "furo >= 2024.04.27; python_version >= '3.8'",
# -- SPHINX-EXTENSIONS:
"sphinx-copybutton >= 0.5.2; python_version >= '3.7'",
"codespell",
]
testing = [
"pytest >= 8.0",
"pytest-html >= 2.0",
"PyHamcrest >= 2.0.2",
"assertpy >= 1.1",
]
# -----------------------------------------------------------------------------
# PACAKING TOOL SPECIFIC PARTS:
# -----------------------------------------------------------------------------
[tool.setuptools]
platforms = ["any"]
zip-safe = true
[tool.setuptools.dynamic]
version = {attr = "behave4cmd0.__version__"}
[tool.setuptools.packages.find]
where = ["."]
include = ["behave4cmd0*"]
exclude = ["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 = "behave4cmd0/__init__.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 = [
"./venv/",
"./.venv/",
"./tox/",
]
ignore-words = ".codespell.ignore_words"
# count = true
# quiet-level = 3