mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 19:09:56 +03:00
Instead of automatic python package discovery that for some reason still picks up the test module even though it should be excluded, specify the "pmb" module manually to be installed. Follow-up to MR 2551. Fixes: issue 2541
58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "pmbootstrap"
|
|
dynamic = ["version"]
|
|
authors = [
|
|
{name = "postmarketOS Developers", email="info@postmarketos.org"}
|
|
]
|
|
description = "A sophisticated chroot / build / flash tool to develop and install postmarketOS'"
|
|
readme = "README.md"
|
|
license = {text = "GPL-3.0-or-later"}
|
|
|
|
[project.scripts]
|
|
pmbootstrap = "pmb:main"
|
|
|
|
[project.optional-dependencies]
|
|
test = ["pytest"]
|
|
completion = ["argcomplete"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://www.postmarketos.org"
|
|
|
|
[tool.setuptools.dynamic]
|
|
version = {attr = "pmb.__version__"}
|
|
|
|
[tool.setuptools.package-dir]
|
|
pmb = "pmb"
|
|
|
|
[tool.ruff]
|
|
line-length=100
|
|
# Assume Python 3.10
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
# RUF021: Could be fixed if someone cares about this.
|
|
# RUF052: Needs a lot of changes, feel free to fix and then remove this ignore.
|
|
extend-ignore = ["RUF021", "RUF052"]
|
|
extend-select = ["CPY001", "N", "PIE", "RUF", "UP"]
|
|
preview = true
|
|
|
|
[tool.ruff.format]
|
|
# Enable auto-formatting of code examples in docstrings.
|
|
docstring-code-format = true
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = [
|
|
"--import-mode=importlib",
|
|
"--basetemp=.pytest_tmp"
|
|
]
|
|
|
|
[tool.mypy]
|
|
check_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
disallow_untyped_calls = true
|
|
disallow_untyped_decorators = true
|
|
disallow_untyped_defs = true
|