Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (49 loc) · 1.75 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (49 loc) · 1.75 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "earthaccess-harmony"
version = "0.1.0"
description = "Subset and transform Earthdata granules with NASA Harmony from earthaccess."
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [{ name = "earthaccess contributors" }]
dependencies = [
"earthaccess-plugin-spec @ git+https://github.com/earthaccess-dev/earthaccess-plugin-spec.git@v0.3.0",
# TODO: switch to earthaccess>=1.0 once the upstream `plugins` branch is published.
"earthaccess @ git+https://github.com/earthaccess-dev/earthaccess.git@plugins",
"harmony-py >=0.6", # VERIFY: minimum version with Client(status/result_urls/cancel/...)
]
[project.entry-points."earthaccess.plugins"]
harmony = "earthaccess_harmony:HarmonyPlugin"
[project.optional-dependencies]
test = ["pytest >=8.0", "mypy >=1.11", "ruff >=0.6"]
[project.urls]
Repository = "https://github.com/earthaccess-dev/earthaccess-plugin-harmony"
# The contract lives on GitHub until it is published to PyPI. A direct URL in
# [project.dependencies] is honored by both pip and uv (pip ignores
# [tool.uv.sources]); hatchling requires opting in.
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/earthaccess_harmony"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.ruff]
line-length = 88
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP", "B"]
[tool.mypy]
python_version = "3.12"
files = ["src", "tests"]
disallow_untyped_defs = true
pretty = true
[[tool.mypy.overrides]]
module = ["harmony", "harmony.*", "pytest", "pytest.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false