| 1 |
[build-system] |
| 2 |
requires = ["setuptools>=61.0"] |
| 3 |
build-backend = "setuptools.build_meta" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "cdsetool" |
| 7 |
version = "0.3.2" |
| 8 |
authors = [ |
| 9 |
{ name="Jacob Vejby", email="[email protected]" }, |
| 10 |
] |
| 11 |
description = "Tools & CLI for interacting with CDSE product APIs" |
| 12 |
readme = "README.md" |
| 13 |
requires-python = ">=3.9" |
| 14 |
classifiers = [ |
| 15 |
"Programming Language :: Python :: 3", |
| 16 |
"Operating System :: OS Independent", |
| 17 |
] |
| 18 |
dependencies = [ |
| 19 |
"typer >= 0.9,< 1", |
| 20 |
"rich >= 13.6,< 16", |
| 21 |
"requests >= 2.28.1,< 3", |
| 22 |
"pyjwt[crypto] >= 2.8,< 2.15", |
| 23 |
"geopandas >= 0.13.2", |
| 24 |
] |
| 25 |
[dependency-groups] |
| 26 |
dev = [ |
| 27 |
"ruff==0.16.7", |
| 28 |
] |
| 29 |
# (Jan 30 2025) Pip does not support dependency-groups yet, so |
| 30 |
# leave the optional dependencies for everything except Ruff. |
| 31 |
[project.optional-dependencies] |
| 32 |
test = [ |
| 33 |
"pylint==3.3.9", |
| 34 |
"pytest==8.4.2", |
| 35 |
"pytest-cov==7.1.0", |
| 36 |
"requests-mock==1.12.1", |
| 37 |
"pytest-mock==3.15.1", |
| 38 |
] |
| 39 |
|
| 40 |
[project.urls] |
| 41 |
"Homepage" = "https://github.com/CDSETool/CDSETool" |
| 42 |
"Bug Tracker" = "https://github.com/CDSETool/CDSETool/issues" |
| 43 |
|
| 44 |
[project.scripts] |
| 45 |
cdsetool = "cdsetool:cli.main" |
| 46 |
|
| 47 |
[tool.pylint.design] |
| 48 |
max-locals = 20 |
| 49 |
|
| 50 |
[tool.pylint.format] |
| 51 |
max-line-length = "88" |
| 52 |
disable="fixme" |
| 53 |
|
| 54 |
[tool.pylint.imports] |
| 55 |
disable="wrong-import-order" |
| 56 |
|
| 57 |
[tool.pyright] |
| 58 |
exclude = ["**/__pycache__", ".venv"] |
| 59 |
|
| 60 |
# Can be strict too, see more fine-grained settings at: |
| 61 |
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#diagnostic-settings-defaults |
| 62 |
# reportMissingParameterType = true |
| 63 |
typeCheckingMode = "standard" |
| 64 |
|
| 65 |
executionEnvironments = [ |
| 66 |
{ root = "./" } |
| 67 |
] |
| 68 |
|
| 69 |
[tool.pytest.ini_options] |
| 70 |
addopts = [ |
| 71 |
"--import-mode=importlib", |
| 72 |
] |
| 73 |
|
| 74 |
[tool.ruff.lint] |
| 75 |
select = [ |
| 76 |
"I", # isort |
| 77 |
] |