convert tooling to pyproject.toml based
still has dynamic versioning and etc. Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
55
pyproject.toml
Normal file
55
pyproject.toml
Normal file
@@ -0,0 +1,55 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "incorporeal-cms"
|
||||
description = "A CMS for serving Markdown files with a bit of dynamicism."
|
||||
readme = "README.md"
|
||||
license = {text = "AGPL-3.0-or-later"}
|
||||
authors = [
|
||||
{name = "Brian S. Stephan", email = "bss@incorporeal.org"},
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
dependencies = ["Flask", "Markdown"]
|
||||
dynamic = ["version"]
|
||||
classifiers = [
|
||||
"Framework :: Flask",
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: Text Processing :: Markup :: Markdown",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "https://git.incorporeal.org/bss/incorporeal-cms"
|
||||
"Changelog" = "https://git.incorporeal.org/bss/incorporeal-cms/releases"
|
||||
"Bug Tracker" = "https://git.incorporeal.org/bss/incorporeal-cms/issues"
|
||||
|
||||
|
||||
# tox pinned to <4 to not conflict with safety
|
||||
[project.optional-dependencies]
|
||||
dev = ["bandit", "dlint", "flake8", "flake8-blind-except", "flake8-builtins", "flake8-docstrings",
|
||||
"flake8-executable", "flake8-fixme", "flake8-isort", "flake8-logging-format", "flake8-mutable",
|
||||
"flake8-pyproject", "mypy", "pip-tools", "pydot", "pytest", "pytest-cov", "safety",
|
||||
"setuptools-scm", "tox<4"]
|
||||
dot = ["pydot"]
|
||||
|
||||
[tool.flake8]
|
||||
enable-extensions = "G,M"
|
||||
exclude = [".tox/", "venv/", "_version.py"]
|
||||
extend-ignore = "T101"
|
||||
max-complexity = 10
|
||||
max-line-length = 120
|
||||
|
||||
[tool.isort]
|
||||
line_length = 120
|
||||
|
||||
[tool.mypy]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
python_files = ["*_tests.py", "tests.py", "test_*.py"]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
write_to = "incorporealcms/_version.py"
|
||||
Reference in New Issue
Block a user