surplus/pyproject.toml

86 lines
1.9 KiB
TOML
Raw Normal View History

2024-03-26 18:44:41 +00:00
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
2023-06-02 19:39:25 +00:00
name = "surplus"
2024-03-26 18:44:41 +00:00
dynamic = ["version"]
description = 'convert Plus Codes, coordinates or location strings to shareable text'
2023-06-02 19:39:25 +00:00
readme = "README.md"
2024-03-26 18:44:41 +00:00
requires-python = ">=3.11"
license = "Unlicense"
keywords = ["pluscodes", "openlocationcode"]
2024-03-26 18:44:41 +00:00
authors = [
{ name = "Mark Joshwel", email = "mark@joshwel.co" },
]
2024-03-26 18:44:41 +00:00
classifiers = [
"Development Status :: 6 - Mature",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pluscodes~=2022.1.3",
"geopy~=2.4.1",
]
[project.scripts]
surplus = "surplus:cli"
"s+" = "surplus:cli"
2023-06-02 19:39:25 +00:00
2024-03-26 18:44:41 +00:00
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.devbox",
]
2023-06-02 19:39:25 +00:00
2024-03-26 18:44:41 +00:00
[tool.hatch.build.targets.wheel]
packages = ["surplus"]
2023-06-02 19:39:25 +00:00
2024-03-26 18:44:41 +00:00
[project.urls]
Documentation = "https://github.com/markjoshwel/surplus#readme"
Issues = "https://github.com/markjoshwel/surplus/issues"
Source = "https://github.com/markjoshwel/surplus"
Changelog = "https://github.com/markjoshwel/surplus/releases"
2023-06-02 19:39:25 +00:00
2024-03-26 18:44:41 +00:00
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.isort]
2024-03-26 18:44:41 +00:00
line_length = 100
profile = "black"
2024-03-26 18:44:41 +00:00
[tool.hatch.version]
path = "surplus/surplus.py"
[[tool.hatch.envs.all.matrix]]
python = ["3.11", "3.12"]
[tool.hatch.envs.default]
description = "default development environment"
dependencies = ["mypy", "isort"]
[tool.hatch.envs.default.scripts]
2024-03-26 18:52:23 +00:00
check = [
"mypy *.py",
"hatch fmt --check",
"isort --check surplus"
]
format = [
"hatch fmt -f",
"isort surplus"
]
2024-03-26 18:44:41 +00:00
[tool.hatch.envs.docs]
detached = true
description = "env for generator documentation"
dependencies = [
"mkdocs"
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict"
serve = "mkdocs serve --dev-addr localhost:8000"