-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
173 lines (150 loc) · 4.39 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
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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool]
[tool.setuptools.packages.find]
include = ["STACpopulator*"]
exclude = [
".deprecated",
".pytest_cache",
"__pycache__",
"__pycache__.*",
"__pycache__*",
"STACpopulator.__pycache__*",
"tests*",
]
[tool.setuptools.package-data]
STACpopulator = ["**/collection_config.yml"]
[tool.pytest.ini_options]
norecursedirs = [
".*",
"build",
"dist",
"{arch}",
"*.egg",
"venv",
"requirements*",
"lib",
]
python_files = "test*.py"
# these break debugger breakpoints
# add them manually with 'make test-cov'
#addopts = [
# "--cov",
# "--cov-report=term",
# "--cov-report=html",
#]
markers = [
"online"
]
[tool.coverage.html]
directory = "reports/coverage/html"
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.bumpversion]
current_version = "0.6.0"
commit = true
commit_args = "--no-verify"
tag = true
tag_name = "{new_version}"
allow_dirty = true
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.dev\\d+)?"
serialize = [
"{major}.{minor}.{patch}.dev{distance_to_latest_tag}",
"{major}.{minor}.{patch}"
]
message = "Version updated from {current_version} to {new_version}"
[[tool.bumpversion.files]]
filename = "STACpopulator/__init__.py"
[[tool.bumpversion.files]]
filename = "README.md"
[[tool.bumpversion.files]]
filename = "Makefile"
search = "APP_VERSION ?= {current_version}"
replace = "APP_VERSION ?= {new_version}"
[[tool.bumpversion.files]]
filename = "docker/Dockerfile"
search = "LABEL version=\"{current_version}\""
replace = "LABEL version=\"{new_version}\""
[[tool.bumpversion.files]]
filename = "CHANGES.md"
search = "## [Unreleased](https://github.com/crim-ca/stac-populator) (latest)"
replace = """
## [Unreleased](https://github.com/crim-ca/stac-populator) (latest)
<!-- insert list items of new changes here -->
## [{new_version}](https://github.com/crim-ca/stac-populator/tree/{new_version}) ({now:%Y-%m-%d})
"""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
# ensure the regex does not match another version by mistake using the package name as guide
regex = true
search = "^name = \"STACpopulator\"\nversion = \"{current_version}\"$"
replace = "name = \"STACpopulator\"\nversion = \"{new_version}\""
[project]
name = "STACpopulator"
version = "0.6.0"
description = "Utility to populate STAC Catalog, Collections and Items from various dataset/catalog sources."
requires-python = ">=3.10"
dependencies = [
"colorlog",
"pyyaml",
"siphon",
"pystac",
"xncml>=0.3.1", # python 3.12 support
"pydantic>=2",
"pyessv",
"requests",
"lxml",
]
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Utilities",
]
authors = [
{ name = "Francis Charette-Migneault", email = "[email protected]" },
{ name = "Deepak Chandan", email = "[email protected]" },
{ name = "David Huard", email = "[email protected]" },
]
maintainers = [
{ name = "Francis Charette-Migneault", email = "[email protected]" },
{ name = "Deepak Chandan", email = "[email protected]" },
{ name = "David Huard", email = "[email protected]" },
]
keywords = [
"STAC",
"SpatioTemporal Asset Catalog",
"Data Ingestion",
"THREDDS",
"CMIP6"
]
[project.scripts]
stac-populator = "STACpopulator.cli:main"
[project.urls]
Repository = "https://github.com/crim-ca/stac-populator"
Changelog = "https://github.com/crim-ca/stac-populator/blob/master/CHANGES.md"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"coverage",
"responses",
"bump-my-version",
"jsonschema",
"pystac[validation]>=1.9.0"
]