-
-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathpyproject.toml
184 lines (164 loc) · 5.59 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[build-system]
requires = ["hatchling", "hatch-vcs", 'bokeh ==3.6.*']
build-backend = "hatchling.build"
[project]
name = "geoviews"
dynamic = ["version"]
description = 'GeoViews is a Python library that makes it easy to explore and visualize geographical, meteorological, and oceanographic datasets, such as those used in weather, climate, and remote sensing research.'
readme = "README.md"
license = { text = "BSD 3-Clause" }
requires-python = ">=3.10"
authors = [{ name = "HoloViz developers", email = "[email protected]" }]
maintainers = [{ name = "HoloViz developers", email = "[email protected]" }]
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Framework :: Matplotlib",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
dependencies = [
'bokeh >=3.6.0',
'cartopy >=0.18.0',
'holoviews >=1.16.0',
'numpy',
'packaging',
'panel >=1.0.0',
'param >=1.9.3,<3.0',
'pyproj',
'shapely',
'xyzservices',
]
[project.urls]
Homepage = "https://geoviews.org"
Source = "https://github.com/holoviz/geoviews"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
recommended = [
'datashader',
'geopandas',
'matplotlib >2.2',
'netcdf4',
'pandas',
'pooch',
'pyct',
'scipy',
'shapely',
'xarray',
]
tests = ['psutil', 'pytest', 'pytest-xdist']
[project.scripts]
geoviews = "geoviews.command:main"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["geoviews"]
exclude = ["geoviews/node_modules"]
[tool.hatch.build.targets.wheel.force-include]
"geoviews/dist" = "geoviews/dist"
[tool.hatch.build.targets.sdist]
include = ["geoviews", "scripts"]
exclude = ["geoviews/node_modules"]
[tool.hatch.build.targets.sdist.force-include]
"geoviews/dist" = "geoviews/dist"
examples = "geoviews/examples"
[tool.hatch.build.hooks.vcs]
version-file = "geoviews/_version.py"
[tool.hatch.build.hooks.custom]
path = 'hatch_build.py'
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
"B",
"E",
"F",
"FLY",
"I",
"ICN",
"NPY",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"UP",
"W",
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E701", # Multiple statements on one line
"E712", # Comparison to true should be is
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"F405", # From star imports
"PLE0604", # Invalid object in `__all__`, must contain only strings
"PLE0605", # Invalid format for `__all__`
"PLR091", # Too many arguments/branches/statements
"PLR2004", # Magic value used in comparison
"PLW2901", # `for` loop variable is overwritten
"RUF005", # Consider {expr} instead of concatenation
"RUF012", # Mutable class attributes should use `typing.ClassVar`
'B905', # `zip()` without an explicit `strict=` parameter
'UP038', # Use `X | Y` in `isinstance` call instead of `(X, Y)`
]
extend-unsafe-fixes = [
"F401", # Unused imports
"F841", # Unused variables
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"geoviews/tests/*" = [
"RUF001", # Ambiguous unicode character
"RUF002", # Ambiguous unicode character
"RUF003", # Ambiguous unicode character
"NPY002", # Replace legacy `np.random.rand` call with Generator
]
[tool.ruff.lint.isort]
known-first-party = ["geoviews"]
combine-as-imports = true
[tool.codespell]
ignore-words-list = "lod,nd"
skip = "doc/generate_modules.py,*.json,*.csv"
write-changes = true
[tool.pytest.ini_options]
addopts = [
"--pyargs",
"--doctest-ignore-import-errors",
"--strict-config",
"--strict-markers",
"--color=yes",
]
norecursedirs = "doc .git dist build _build .ipynb_checkpoints"
minversion = 7
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
# 2023-01: https://github.com/bokeh/bokeh/pull/12690
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:bokeh",
# 2023-01: https://github.com/cupy/cupy/pull/7245
"ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:cupy",
# 2023-01: https://github.com/SciTools/cartopy/issues/2113
"ignore:The 'geom_factory' function is deprecated in Shapely 2:DeprecationWarning:cartopy.crs",
# 2023-09: See https://github.com/Unidata/MetPy/pull/3117
"ignore:'xdrlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:metpy.io.nexrad",
# 2024-01
"ignore:\\s*Pyarrow will become a required dependency of pandas:DeprecationWarning", # Will go away by itself in Pandas 3.0
"ignore:Passing a (SingleBlockManager|BlockManager) to (Series|GeoSeries|DataFrame|GeoDataFrame) is deprecated:DeprecationWarning", # https://github.com/holoviz/spatialpandas/issues/137
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning:dateutil.tz.tz", # https://github.com/dateutil/dateutil/pull/1285
# 2024-03
"ignore:\\s*Dask dataframe query planning is disabled because dask-expr is not installed:FutureWarning",
"ignore:numpy.ndarray size changed, may indicate binary incompatibility:RuntimeWarning", # https://github.com/pydata/xarray/issues/7259
]