Debian Codegraph @

pyproject.toml

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 [build-system]
2 requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=3.4"]
3 build-backend = "setuptools.build_meta"
4
5 [project]
6 name = "MetPy"
7 description = "Collection of tools for reading, visualizing and performing calculations with weather data."
8 readme = "README.md"
9 dynamic = ["version"]
10 maintainers = [{name = "MetPy Developers", email = "[email protected]"}]
11 license = {text = "BSD-3-Clause"}
12 keywords = ["meteorology", "weather"]
13 classifiers = [
14 "Development Status :: 5 - Production/Stable",
15 "Framework :: Matplotlib",
16 "Programming Language :: Python",
17 "Programming Language :: Python :: 3.10",
18 "Programming Language :: Python :: 3.11",
19 "Programming Language :: Python :: 3.12",
20 "Programming Language :: Python :: 3.13",
21 "Topic :: Scientific/Engineering",
22 "Topic :: Scientific/Engineering :: Atmospheric Science",
23 "Intended Audience :: Science/Research",
24 "Operating System :: OS Independent",
25 "License :: OSI Approved :: BSD License"
26 ]
27 requires-python = ">=3.10"
28 dependencies = [
29 "matplotlib>=3.5.0",
30 "numpy>=1.23.0",
31 "pandas>=1.4.0",
32 "pint>=0.17",
33 "pooch>=1.2.0",
34 "pyproj>=3.3.0",
35 "scipy>=1.8.0",
36 "traitlets>=5.1.0",
37 "xarray>=2022.6.0"
38 ]
39
40 [project.entry-points."xarray.backends"]
41 gini = "metpy.io.gini:GiniXarrayBackend"
42
43 [project.optional-dependencies]
44 doc = [
45 "metpy[examples]",
46 "myst-parser",
47 "netCDF4",
48 "sphinx",
49 "sphinx-gallery>=0.4",
50 "sphinx-design",
51 "pydata-sphinx-theme"
52 ]
53 examples = [
54 "geopandas>=0.6.0",
55 "metpy[extras]"
56 ]
57 test = [
58 "netCDF4",
59 "packaging>=21.0",
60 "pytest>=7.0",
61 "pytest-mpl",
62 "vcrpy>=4.3.1"
63 ]
64 extras = [
65 "cartopy>=0.21.0",
66 "dask>=2020.12.0",
67 "shapely>=1.6.4",
68 "boto3>=1.26.45"
69 ]
70
71 [project.urls]
72 "homepage" = "https://github.com/Unidata/MetPy"
73 "Documentation" = "https://unidata.github.io/MetPy/"
74 "Release Notes" = "https://github.com/Unidata/MetPy/releases"
75 "Bug Tracker" = "https://github.com/Unidata/MetPy/issues"
76 "Source Code" = "https://github.com/Unidata/MetPy"
77 "Bluesky" = "https://bsky.app/profile/metpy.bsky.social"
78 "Twitter" = "https://twitter.com/MetPy"
79 "MetPy Mondays" = "https://www.youtube.com/playlist?list=PLQut5OXpV-0ir4IdllSt1iEZKTwFBa7kO"
80
81 [tool.codespell]
82 skip = "*.tbl,*.ipynb,AUTHORS.txt,gempak.rst,.git,./staticdata,./docs/build,*.pdf,./talks,./tests/remote/fixtures"
83 exclude-file = ".codespellexclude"
84 ignore-words = ".codespellignore"
85
86 [tool.doc8]
87 ignore-path = ["docs/build", "docs/api/generated", "docs/_templates", "docs/tutorials",
88 "docs/examples"]
89 file-encoding = "utf8"
90 max-line-length = 95
91
92 [tool.isort]
93 line_length = 95
94 known_first_party = ["metpy", "flake8_metpy"]
95 force_single_line = false
96 reverse_relative = true
97 use_parentheses = true
98 force_sort_within_sections = true
99 order_by_type = false
100 sort_relative_in_force_sorted_sections = true
101 combine_as_imports = true
102 combine_star = true
103
104 [tool.pytest.ini_options]
105 markers = "xfail_dask: marks tests as expected to fail with Dask arrays"
106 norecursedirs = "build docs .idea"
107 doctest_optionflags = "NORMALIZE_WHITESPACE"
108 mpl-results-path = "test_output"
109 xfail_strict = true
110 filterwarnings = [
111 "error",
112 "ignore:numpy.ndarray size changed:RuntimeWarning",
113 # To be removed in the next python-dateutil release.
114 # See: https://github.com/dateutil/dateutil/issues/1314
115 'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz:37',
116 # Numpy deprecation triggered by Pint: https://github.com/hgrecco/pint/pull/1880
117 "ignore:Conversion of an array with ndim > 0 to a scalar is deprecated:DeprecationWarning:pint.facets.plain.quantity:575",
118 # PyProj automatically dispatching for single point, will be waiting for NumPy 2.0 to address
119 # See: https://github.com/pyproj4/pyproj/issues/1309
120 "ignore:Conversion of an array with ndim > 0 to a scalar is deprecated:DeprecationWarning:pyproj.geod",
121 # Pandas >=2.2 warns about PyArrow being a future dependency
122 'ignore:\nPyarrow will become a required dependency of pandas:DeprecationWarning',
123 # Not yet fixed in xarray
124 "ignore:__array__ implementation doesn't accept a copy keyword:DeprecationWarning"
125 ]
126
127 [tool.ruff]
128 line-length = 95
129 exclude = ["docs", "build", "src/metpy/io/_metar_parser/metar_parser.py", "talks"]
130 preview = true
131
132 [tool.ruff.lint]
133 select = ["A", "B", "C", "CPY001", "D", "E", "E226", "F", "G", "I", "N", "NPY", "PIE", "Q", "R", "S", "SIM", "T", "U", "W"]
134 # NPY201 ignores the use of 'trapz' false alarm
135 ignore = ["F405", "I001", "NPY201", "RET504", "RET505", "RET506", "RET507", "RUF100"]
136 explicit-preview-rules = true
137
138 [tool.ruff.lint.per-file-ignores]
139 "ci/filter_links.py" = ["E731", "T201", "S603", "S607"]
140 "docs/doc-server.py" = ["T201"]
141 "examples/*.py" = ["D", "T201", "B018"]
142 "src/metpy/_vendor/xarray.py" = ["UP032"]
143 "src/metpy/deprecation.py" = ["CPY001", "UP032"]
144 "src/metpy/testing.py" = ["S101"]
145 "src/metpy/io/nexrad.py" = ["S101"]
146 "tests/*/*.py" = ["S101"]
147 "tests/test_*.py" = ["S101"]
148 "tests/test_xarray.py" = ["S101", "B018"]
149 "tools/flake8-metpy/test*.py" = ["S101"]
150 "tools/nexrad_msgs/parse_spec.py" = ["B028", "S101"]
151 "tutorials/*.py" = ["D", "T201", "B018"]
152
153 [tool.ruff.lint.flake8-copyright]
154 # Needed to avoid need for spaces after a comma
155 notice-rgx = "(?i)Copyright\\s+(\\(C\\)\\s+)?\\d{4}([-,]\\d{4})*"
156 author = "MetPy Developers"
157
158 [tool.ruff.lint.flake8-quotes]
159 inline-quotes = "single"
160 multiline-quotes = "double"
161
162 [tool.ruff.lint.isort]
163 known-first-party = ["metpy", "flake8_metpy"]
164 force-single-line = false
165 relative-imports-order = "closest-to-furthest"
166 force-sort-within-sections = true
167 order-by-type = false
168 combine-as-imports = true
169
170 [tool.ruff.lint.mccabe]
171 max-complexity = 61
172
173 [tool.ruff.lint.pydocstyle]
174 convention = "numpy"
175
176 [tool.setuptools_scm]
177 version_scheme = "post-release"