-
Notifications
You must be signed in to change notification settings - Fork 44
/
pyproject.toml
117 lines (103 loc) · 2.6 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
[project]
name = "rio-cogeo"
description = "Cloud Optimized GeoTIFF (COGEO) creation plugin for rasterio"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Vincent Sarago", email = "[email protected]"},
]
keywords = ["COGEO", "CloudOptimized Geotiff", "rasterio"]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version"]
dependencies = [
"click>=7.0",
"rasterio>=1.3.3",
"morecantile>=5.0,<7.0",
"pydantic~=2.0",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"cogdumper",
]
dev = [
"pre-commit",
]
docs = [
"mkdocs",
"mkdocs-material",
]
[project.urls]
Source = "https://github.com/cogeotiff/rio-cogeo"
Documentation = "https://cogeotiff.github.io/rio-cogeo/"
[project.entry-points."rasterio.rio_plugins"]
cogeo = "rio_cogeo.scripts.cli:cogeo"
[build-system]
requires = ["flit_core>=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "rio_cogeo"
[tool.flit.sdist]
exclude = [
"tests/",
"docs/",
".github/",
"CHANGES.md",
"codecov.yml",
"CONTRIBUTING.md",
"mkdocs.yml",
]
[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 = ["rio_cogeo"]
known_third_party = ["rasterio", "morecantile", "click"]
default_section = "THIRDPARTY"
[tool.mypy]
no_strict_optional = "True"
ignore_missing_imports = "True"
[tool.ruff]
select = [
"D1", # pydocstyle errors
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10
]
[tool.bumpversion]
current_version = "5.4.1"
search = "{current_version}"
replace = "{new_version}"
tag = true
commit = true
tag_name = "{new_version}"
[[tool.bumpversion.files]]
filename = "rio_cogeo/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'