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"
|
2023-09-02 17:03:23 +00:00
|
|
|
keywords = ["pluscodes", "openlocationcode"]
|
2024-03-26 18:44:41 +00:00
|
|
|
authors = [
|
|
|
|
{ name = "Mark Joshwel", email = "mark@joshwel.co" },
|
2023-09-02 17:03:23 +00:00
|
|
|
]
|
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",
|
2024-06-18 10:53:38 +00:00
|
|
|
"/src/surplus-on-wheels",
|
|
|
|
"/src/spow*",
|
2024-03-26 18:44:41 +00:00
|
|
|
]
|
2023-06-02 19:39:25 +00:00
|
|
|
|
2024-03-26 18:44:41 +00:00
|
|
|
[tool.hatch.build.targets.wheel]
|
2024-06-18 10:53:38 +00:00
|
|
|
packages = ["src.surplus"]
|
2023-06-02 19:39:25 +00:00
|
|
|
|
2024-03-26 18:44:41 +00:00
|
|
|
[project.urls]
|
2024-06-18 10:55:15 +00:00
|
|
|
Documentation = "https://surplus.joshwel.co"
|
|
|
|
Issues = "https://surplus.joshwel.co/issues"
|
2024-03-26 18:44:41 +00:00
|
|
|
Source = "https://github.com/markjoshwel/surplus"
|
2024-06-18 10:55:15 +00:00
|
|
|
Changelog = "https://surplus.joshwel.co/changelog"
|
2023-06-02 19:39:25 +00:00
|
|
|
|
2024-03-26 18:44:41 +00:00
|
|
|
[tool.ruff]
|
|
|
|
line-length = 100
|
|
|
|
target-version = "py311"
|
2023-08-31 20:28:44 +00:00
|
|
|
|
|
|
|
[tool.isort]
|
2024-03-26 18:44:41 +00:00
|
|
|
line_length = 100
|
2023-08-31 20:28:44 +00:00
|
|
|
profile = "black"
|
|
|
|
|
2024-03-26 18:44:41 +00:00
|
|
|
[tool.hatch.version]
|
2024-06-18 10:53:38 +00:00
|
|
|
path = "src/surplus/surplus.py"
|
2024-03-26 18:44:41 +00:00
|
|
|
|
|
|
|
[[tool.hatch.envs.all.matrix]]
|
|
|
|
python = ["3.11", "3.12"]
|
|
|
|
|
|
|
|
[tool.hatch.envs.default]
|
|
|
|
description = "default development environment"
|
2024-06-18 10:55:15 +00:00
|
|
|
dependencies = ["mypy", "ruff", "isort"]
|
2024-03-26 18:44:41 +00:00
|
|
|
|
|
|
|
[tool.hatch.envs.default.scripts]
|
2024-03-26 18:52:23 +00:00
|
|
|
check = [
|
2024-06-18 10:55:15 +00:00
|
|
|
"mypy src",
|
2024-03-26 18:52:23 +00:00
|
|
|
"hatch fmt --check",
|
2024-06-18 10:55:15 +00:00
|
|
|
"isort --check src"
|
2024-03-26 18:52:23 +00:00
|
|
|
]
|
|
|
|
format = [
|
|
|
|
"hatch fmt -f",
|
2024-06-18 10:55:15 +00:00
|
|
|
"isort src"
|
2024-03-26 18:52:23 +00:00
|
|
|
]
|
2024-03-26 18:44:41 +00:00
|
|
|
|
2024-03-26 19:11:42 +00:00
|
|
|
[tool.hatch.envs.hatch-static-analysis]
|
|
|
|
dependencies = ["ruff>=0.3.2"]
|
|
|
|
|
2024-03-26 18:44:41 +00:00
|
|
|
[tool.hatch.envs.docs]
|
|
|
|
detached = true
|
|
|
|
description = "env for generator documentation"
|
|
|
|
dependencies = [
|
2024-06-18 10:55:15 +00:00
|
|
|
"mkdocs",
|
|
|
|
"mkdocs-material",
|
|
|
|
"mkdocs-git-revision-date-localized-plugin",
|
|
|
|
"mkdocs-exporter",
|
|
|
|
"playwright",
|
2024-03-26 18:44:41 +00:00
|
|
|
]
|
|
|
|
[tool.hatch.envs.docs.scripts]
|
2024-06-18 10:55:15 +00:00
|
|
|
build = [
|
|
|
|
"python src/tools/docs-prebuild.py",
|
|
|
|
"mkdocs build --clean --strict",
|
|
|
|
]
|
2024-03-26 18:44:41 +00:00
|
|
|
serve = "mkdocs serve --dev-addr localhost:8000"
|