forked from developmentseed/cogeo-mosaic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (108 loc) · 2.77 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
118
119
120
121
[project]
name = "cogeo-mosaic"
description = 'CLI and Backends to work with MosaicJSON.'
requires-python = ">=3.8"
license = "MIT"
authors = [
{ name = "Vincent Sarago", email = "[email protected]" },
]
keywords = ["COG", "MosaicJSON"]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version", "readme"]
dependencies = [
"attrs",
"morecantile>=3.1,<4.0",
"pygeos>=0.10",
"pydantic",
"httpx",
"rasterio",
"rio-tiler>=4.0.0a0,<5.0",
"cachetools",
"supermercado",
]
[project.optional-dependencies]
aws = [
"boto3",
]
az = [
"azure-identity", "azure-storage-blob",
]
gcp = [
"google-cloud-storage"
]
test = [
"pytest", "pytest-cov"
]
dev = [
"pytest", "pytest-cov", "pre-commit"
]
docs = [
"mkdocs", "mkdocs-material", "pygments", "mkdocs-jupyter"
]
[project.urls]
Homepage = 'https://github.com/developmentseed/cogeo-mosaic'
Documentation = "https://developmentseed.org/cogeo-mosaic/"
Issues = "https://github.com/developmentseed/cogeo-mosaic/issues"
Source = "https://github.com/developmentseed/cogeo-mosaic"
Changelog = "https://developmentseed.org/cogeo-mosaic/release-notes/"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = 'text/markdown'
# construct the PyPI readme from README.md and HISTORY.md
fragments = [
{path = "README.md"},
{text = "\n## Changelog\n\n"},
{path = "CHANGES.md"},
]
# convert GitHUB issue/PR numbers and handles to links
substitutions = [
{pattern = '(\s+)#(\d+)', replacement = '\1[#\2](https://github.com/developmentseed/cogeo-mosaic/issues/\2)'},
{pattern = '(\s+)@([\w\-]+)', replacement = '\1[@\2](https://github.com/\2)'},
{pattern = '@@', replacement = '@'},
]
[tool.hatch.version]
path = "cogeo_mosaic/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/tests",
"/docs",
]
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme>=22.5.0"]
build-backend = "hatchling.build"
[tool.coverage.run]
branch = true
parallel = true
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.isort]
profile = "black"
known_first_party = ["cogeo_mosaic"]
known_third_party = [
"rasterio",
"rio_tiler",
"morecantile",
"supermercatdo",
"pygeos",
]
default_section = "THIRDPARTY"
[tool.mypy]
no_strict_optional = "True"
[tool.pydocstyle]
select = "D1"
match = "(?!test).*.py"
[project.scripts]
cogeo-mosaic = "cogeo_mosaic.scripts.cli:cogeo_cli"