-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (130 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (130 loc) · 3.67 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
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dissmodel"
version = "0.6.2"
description = "Discrete Spatial Modeling framework for raster and vector simulations"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
authors = [
{ name = "Sérgio Costa" },
{ name = "Nerval Santos Junior" }
]
maintainers = [
{ name = "Sérgio Costa" }
]
license = { text = "MIT" }
keywords = [
"spatial modeling",
"geospatial simulation",
"cellular automata",
"gis",
"raster modeling",
"vector modeling"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"pydantic-settings",
"pydantic>=2.0",
"numpy>=1.24,<3.0",
"geopandas>=1.0.0",
"shapely>=2.0.0",
"libpysal>=4.9.0",
"matplotlib>=3.7.0",
"rasterstats>=0.19.0",
"affine>=2.4.0",
"tomli>=2.0; python_version < '3.11'", # tomllib backport for Python 3.10
]
[project.optional-dependencies]
viz = [
"ipywidgets>=8.0.0", # Colab/Jupyter visualization — anchored Output widget
]
xarray = [
"xarray>=2023.1.0",
"netCDF4>=1.6.0", # backend for to_netcdf / open_dataset
"zarr>=2.16.0", # backend for to_zarr / open_zarr (MinIO/S3)
"pyproj>=3.4.0", # CRS → spatial_ref (CF convention)
"rasterio>=1.3.0", # Affine transform recovery in from_xarray
]
dev = [
"mypy",
"pytest",
"pytest-cov",
"ruff",
"mkdocs",
"mkdocstrings[python]",
"mkdocs-jupyter",
"mkdocs-material",
# xarray extras useful during development
"xarray>=2023.1.0",
"netCDF4>=1.6.0",
"zarr>=2.16.0",
"pyproj>=3.4.0",
"rasterio>=1.3.0",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-jupyter",
]
[project.urls]
Homepage = "https://github.com/DisSModel/dissmodel"
Repository = "https://github.com/DisSModel/dissmodel"
Documentation = "https://dissmodel.github.io/dissmodel/"
Issues = "https://github.com/DisSModel/dissmodel/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["dissmodel*"]
[tool.setuptools.package-data]
"dissmodel" = ["*.json", "*.csv", "*.shp", "*.geojson", "*.tif"]
[tool.ruff]
# Permissive baseline: default rule set (pyflakes + pycodestyle errors).
# line-length is informational for now — E501 is not in the default rules,
# so existing long lines do not fail the lint step.
line-length = 120
target-version = "py310"
exclude = ["docs", "site", "build"]
[tool.pytest.ini_options]
# tests/ is not a package; test modules import helpers as
# "tests.executor.conftest", which requires the repo root on sys.path.
pythonpath = ["."]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
exclude = ["tests/", "docs/", "examples/"]
[[tool.mypy.overrides]]
module = [
"geopandas.*",
"shapely.*",
"matplotlib.*",
"rasterstats.*",
"libpysal.*",
"streamlit.*",
"IPython.*",
"affine.*",
"xarray.*",
"netCDF4.*",
"zarr.*",
"pyproj.*",
"rasterio.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# zarr 3.x ships py.typed source using PEP 695 syntax (Python 3.12+),
# which mypy cannot parse under python_version = "3.10". Never analyze it.
module = ["zarr.*"]
follow_imports = "skip"
ignore_errors = true