-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (105 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
115 lines (105 loc) · 3.02 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
[project]
name = "cartes"
version = "0.8.5"
description = "A generic toolbox for building maps in Python"
authors = [{ name = "Xavier Olive", email = "git@xoolive.org" }]
license = "MIT"
readme = "readme.md"
requires-python = ">=3.10"
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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"altair>=5.4.1",
"appdirs>=1.4.4",
"beautifulsoup4>=4.14.2",
"cartopy>=0.25.0",
"fastapi>=0.120.1",
"pydantic_core>=2.41.4",
"geopandas>=1.1.1",
"pyogrio>=0.11.1",
"httpx[http2]>=0.27.2",
"jsonschema>=4.25.1",
"lxml>=6.0.2",
"matplotlib>=3.10.7",
"nest-asyncio>=1.6.0",
"networkx>=3.2.1",
"networkx>=3.5; python_version>='3.11'",
"numpy>=2.1.2",
"numpy>=2.3.4; python_version>='3.11'",
"pandas>=2.3.3",
"pyproj>=3.7.0",
"pyproj>=3.7.2; python_version>='3.11'",
"scipy>=1.14.1",
"scipy>=1.16.2; python_version>='3.11'",
"shapely>=2.1.2",
"tqdm>=4.66.5",
"uvicorn>=0.38.0",
]
[project.scripts]
cartes = 'cartes.tiles.fastapi:main'
[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/"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"jupyter-sphinx>=0.5.3",
"mypy>=1.18.2",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ruff>=0.14.2",
"sphinx>=7.4.7; python_version>'3.11'",
"sphinx-rtd-theme>=2.0.0; python_version>'3.11'",
"vega-datasets>=0.9.0",
"exceptiongroup>=1.2.2;python_version<'3.11'",
]
[tool.ruff]
lint.select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"NPY", # numpy
# "PD", # pandas
"DTZ", # flake8-datetimez
"RUF",
]
line-length = 80
target-version = "py310"
[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.10"
exclude = ["_ignore", "docs/build/"]
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"]