-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
117 lines (104 loc) · 3.05 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[project]
authors = [
{ name = "Adrian Dempwolff", email = "[email protected]" },
{ name = "Aurélien Grenotton", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: GIS",
]
dependencies = [
"bs4>=0.0.1",
"colorlog>=6.7.0",
"configargparse>=1.7",
"contourpy>=1.0.7",
"httpx>=0.27.0",
"lxml>=4.9.2",
"matplotlib>=3.4.3",
"numpy>=1.24.2",
"nptyping>=2.5.0",
"npyosmium>=3.6.1",
"phx-class-registry>=4.0.6, <5",
"pybind11-rdp>=0.1.3",
"PyDrive2>=1.20.0",
"scipy>=1.8.0",
"shapely>=2.0.1",
]
description = "Creates OpenStreetMap suitable contour lines from NASA SRTM data"
dynamic = ["version"]
keywords = ["osm", "OpenStreetMap", "countour", "SRTM", "elevation"]
license = "GPL-2.0-or-later"
name = "pyhgtmap"
readme = "README.md"
requires-python = ">=3.9"
[project.optional-dependencies]
geotiff = [
# Do NOT pin GDAL version to ease installing it via OS package manager (due to many dependencies)
"GDAL",
]
[project.scripts]
pyhgtmap = "pyhgtmap.main:main"
[project.urls]
repository = "https://github.com/agrenott/pyhgtmap"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
include = ["/pyhgtmap"]
[tool.hatch.envs.default]
# Use default env for all dev activities
dependencies = [
"pytest~=7.2.1",
"pytest-cov~=4.1.0",
"pytest_httpx>=0.30.0",
"pytest-mpl~=0.16.1",
"pytest-sugar>=0.9.7",
"pytest-xdist>=3.5.0",
"types-beautifulsoup4>=4",
"mypy>=1.0.1",
"mypy-extensions~=1.0.0",
"ruff>=0.6.4",
]
[tool.hatch.envs.default.scripts]
all = ["style", "typing", "test_cov"]
fmt = [
# Sort imports - https://docs.astral.sh/ruff/formatter/#sorting-imports
"ruff check --select I --fix {args:pyhgtmap tests tools}",
"ruff format {args:pyhgtmap tests tools}",
"style",
]
style = [
"ruff check {args:pyhgtmap tests tools}",
"ruff format --check --diff {args:pyhgtmap tests tools}",
]
test = "pytest {args:tests}"
test_cov = ["pytest --mpl --cov --cov-report xml --cov-report term"]
typing = "mypy {args}"
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.geotiff]
# Env for optional geotiff dependencies
# To allow using system's GDAL, which is painful to install
system-packages = true
[tool.mypy]
files = ["tests", "pyhgtmap", "tools"]
ignore_missing_imports = true
install_types = true
non_interactive = true
plugins = "numpy.typing.mypy_plugin"
[tool.pytest.ini_options]
filterwarnings = ["ignore:::nptyping", "ignore:::class_registry"]
testpaths = ["tests/"]
# Enable xdist by default
addopts = "-nauto"
# [tool.coverage.run]
# Configured in .coveragerc as I couldn't find a way to set it here
# without having test hanging when enabling multiprocessing...