-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
111 lines (101 loc) 路 2.87 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
[tool.poetry]
name = "cartes"
version = "0.8.0"
description = "A generic toolbox for building maps in Python"
authors = ["Xavier Olive <[email protected]>"]
license = "MIT"
readme = "readme.md"
include = [
"license.txt",
"py.typed",
"*.json"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
[tool.poetry.scripts]
cartes = 'cartes.tiles.fastapi:main'
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
numpy = ">=1.21"
matplotlib = ">=3.5"
scipy = ">=1.7"
pandas = ">=2.0"
geopandas = ">=0.10"
httpx = { version="^0.27.0", extras=['http2'] }
nest-asyncio = "^1.6.0"
altair = ">=4.2"
Shapely = ">=1.8"
appdirs = ">=1.4"
lxml = ">=4.7"
tqdm = ">=4.62"
Cartopy = ">=0.19"
pyproj = ">=3.1"
jsonschema = ">=3.0"
beautifulsoup4 = ">=4.10"
fastapi = "^0.111.0"
uvicorn = "^0.30.1"
[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.13.0"
mypy = ">=0.931"
ruff = ">=0.0.247"
Sphinx = ">=4.3.2"
sphinx-rtd-theme = ">=1.0.0"
jupyter-sphinx = ">=0.3.2"
pytest = ">=6.2.5"
vega-datasets = ">=0.9.0"
codecov = ">=2.1.12"
pytest-cov = ">=3.0.0"
# error with pytest otherwise...
exceptiongroup = { version = "*", python = "< 3.11" }
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project.urls]
Documentation = "https://cartes-viz.github.io/"
Code = "https://github.com/xoolive/cartes/"
Issues = "https://github.com/xoolive/cartes/issues/"
Releases = "https://github.com/xoolive/cartes/releases/"
[tool.ruff]
lint.select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"NPY", # numpy
# "PD", # pandas
"DTZ", # flake8-datetimez
"RUF"
]
line-length = 80
target-version = "py39"
[tool.ruff.lint.isort]
known-first-party = ["numpy", "pandas", "pyproj", "shapely"]
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version = 3.9
check_untyped_defs = true
follow_imports = "normal"
ignore_missing_imports = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = "--log-level=INFO --color=yes --doctest-modules --doctest-report ndiff"
testpaths = ["src", "tests"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"]