release-gitter/pyproject.toml

70 lines
1.5 KiB
TOML
Raw Normal View History

2023-10-27 00:32:28 +00:00
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "release-gitter"
dynamic = ["version"]
2023-10-27 00:32:28 +00:00
description = "Easily download releases from sites like Github and Gitea"
readme = "README.md"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
authors = [
{ name = "Ian Fijolek", email = "iamthefij@gmail.com" }
]
maintainers = [
{ name = "Ian Fijolek", email = "iamthefij@gmail.com" }
]
2023-10-27 22:27:04 +00:00
requires-python = ">=3.7"
2023-10-27 00:32:28 +00:00
dependencies = ["requests"]
[project.optional-dependencies]
builder = [
"toml",
"wheel",
]
[project.scripts]
release-gitter = "release_gitter:main"
[project.urls]
Homepage = "https://git.iamthefij.com/iamthefij/release-gitter"
[tool.hatch.version]
path = "release_gitter.py"
2023-10-27 00:32:28 +00:00
[tool.hatch.build]
include = ["release_gitter.py", "pseudo_builder.py"]
2023-10-27 20:36:48 +00:00
[tool.hatch.envs.test]
dependencies = [
"coverage",
]
[tool.hatch.envs.test.scripts]
run = [
"coverage erase",
2024-11-07 00:13:58 +00:00
"coverage run --source=release_gitter -m unittest discover -p '*_test.py'",
2023-10-27 20:36:48 +00:00
"coverage report -m # --fail-under 70",
]
[[tool.hatch.envs.test.matrix]]
python = ["3", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
2023-10-27 20:36:48 +00:00
[tool.hatch.envs.lint]
detached = true
dependencies = ["pre-commit"]
[tool.hatch.envs.lint.scripts]
all = "pre-commit run --all-files"
install-hooks = "pre-commit install --install-hooks"
[tool.isort]
add_imports = ["from __future__ import annotations"]
force_single_line = true
profile = "black"