-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathpyproject.toml
More file actions
181 lines (164 loc) · 4.45 KB
/
Copy pathpyproject.toml
File metadata and controls
181 lines (164 loc) · 4.45 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[project]
name = "stac-fastapi-pgstac"
description = "An implementation of STAC API based on the FastAPI framework and using the pgstac backend."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name = "David Bitner", email = "david@developmentseed.org" },
]
maintainers = [
{ name = "David Bitner", email = "david@developmentseed.org" },
{ name = "Vincent Sarago", email = "vincent@developmentseed.org" },
{ name = "Pete Gadomski", email = "pete.gadomski@gmail.com" },
{ name = "Henry Rodman", email = "henry@developmentseed.org" },
{ name = "Jeff Albrecht", email = "geospatialjeff@gmail.com" },
]
keywords = [
"STAC",
"STAC-API",
"FastAPI",
"PgSTAC",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
dynamic = ["version"]
dependencies = [
"attrs",
"orjson",
"pydantic>=2.4,<3.0",
"pydantic-settings>=2.7,<3.0",
"stac-fastapi-api>=6.3,<7.0",
"stac-fastapi-extensions>=6.3,<7.0",
"stac-fastapi-types>=6.3,<7.0",
"asyncpg",
"buildpg",
"brotli_asgi",
"cql2>=0.3.6",
"hydraters>=0.1.3",
"jsonpatch>=1.33.0",
"json-merge-patch>=0.3.0",
]
[project.optional-dependencies]
validation = [
"stac_pydantic[validation]",
]
server = [
"uvicorn[standard]==0.38.0"
]
catalogs = [
"stac-fastapi-catalogs-extension==0.4.0",
]
[dependency-groups]
dev = [
"pystac[validation]",
"pytest-postgresql>=7.0",
# ref: https://github.com/dbfixtures/pytest-postgresql/issues/1210
"mirakuru>=2.0,<3.0",
"pytest",
"pytest-cov",
"pytest-asyncio>=0.17,<1.3",
"pypgstac>=0.9,<0.10",
"requests",
"shapely",
"stac-fastapi-catalogs-extension==0.4.0",
"httpx",
"psycopg[pool,binary]==3.2.*",
"pre-commit",
]
docs = [
"black>=23.10.1",
"mkdocs>=1.4.3",
"mkdocs-jupyter>=0.24.5",
"mkdocs-material[imaging]>=9.5",
"griffe-inherited-docstrings>=1.0.0",
"mkdocstrings[python]>=0.25.1",
]
[project.urls]
Homepage = 'https://github.com/stac-utils/stac-fastapi-pgstac'
[tool.hatch.version]
path = "stac_fastapi/pgstac/version.py"
[tool.hatch.build.targets.sdist]
only-include = ["stac_fastapi"]
[tool.hatch.build.targets.wheel]
only-include = ["stac_fastapi"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.pytest.ini_options]
addopts = "-sv"
testpaths = [
"tests"
]
asyncio_mode = "auto"
[tool.isort]
profile = "black"
known_first_party = "stac_fastapi.pgstac"
known_third_party = ["stac-pydantic", "sqlalchemy", "geoalchemy2", "fastapi", "stac_fastapi"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.mypy]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
exclude = ["tests", ".venv"]
[tool.ruff]
line-length = 90
[tool.ruff.lint]
select = [
"C",
"E",
"F",
"W",
"B",
]
ignore = [
"E203", # line too long, handled by black
"E501", # do not perform function calls in argument defaults
"B028", # No explicit `stacklevel` keyword argument found
]
[tool.bumpversion]
current_version = "6.3.1"
parse = """(?x)
(?P<major>\\d+)\\.
(?P<minor>\\d+)\\.
(?P<patch>\\d+)
(?:
(?P<pre_l>a|b|rc) # pre-release label
(?P<pre_n>\\d+) # pre-release version number
)? # pre-release section is optional
(?:
\\.post
(?P<post_n>\\d+) # post-release version number
)? # post-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}.post{post_n}",
"{major}.{minor}.{patch}{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
tag = false
commit = true
[[tool.bumpversion.files]]
filename = "VERSION"
search = "{current_version}"
replace = "{new_version}"
[[tool.bumpversion.files]]
filename = "stac_fastapi/pgstac/version.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'