Skip to content

Commit c3fd9ef

Browse files
authored
consolidate metadata to pyproject.toml (mpytools#165)
* consolidate metadata to pyproject.toml * changelog
1 parent 2e478c5 commit c3fd9ef

File tree

6 files changed

+72
-46
lines changed

6 files changed

+72
-46
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
### Internal changes
2424

25+
- Consolidate package metadata and configuration in *pyproject.toml* ([#165](https://github.com/mpytools/mplotutils/pull/165)).
2526
- Replace deprecated `matplotlib.rcsetup.all_backends` with `matplotlib.backends.backend_registry.list_builtin()`
2627
([#160](https://github.com/mpytools/mplotutils/pull/160)).
2728
- Also upload coverage report in upstream dev CI ([#162](https://github.com/mpytools/mplotutils/pull/162)).

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
- [cartopy](http://scitools.org.uk/cartopy/) (0.23 or later)
77
- [matplotlib](http://matplotlib.org/) (3.9 or later)
88
- [numpy](http://www.numpy.org/) (1.26 or later)
9+
- [xarray](http://xarray.pydata.org/) (2024.7 or later)
910

1011
## Optional dependencies
1112

1213
- [seaborn](https://seaborn.pydata.org/) (0.13 or later)
13-
- [xarray](http://xarray.pydata.org/) (2024.7 or later)
1414

1515
## Instructions
1616

pyproject.toml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,68 @@
1+
[project]
2+
name = "mplotutils"
3+
authors = [{name = "mplotutils developers", email = "mathias.hauser@env.ethz.com"}]
4+
license = "GPL-3.0-only"
5+
keywords = ['matplotlib cartopy plotting']
6+
description = "utilities for matplotlib and cartopy"
7+
classifiers = [
8+
"Development Status :: 5 - Production/Stable",
9+
"Operating System :: OS Independent",
10+
"Intended Audience :: Science/Research",
11+
"Programming Language :: Python",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
16+
"Topic :: Scientific/Engineering",
17+
"Topic :: Scientific/Engineering :: Atmospheric Science",
18+
"Topic :: Scientific/Engineering :: GIS",
19+
]
20+
requires-python = ">=3.11"
21+
dependencies = [
22+
"cartopy >=0.23",
23+
"matplotlib >=3.9",
24+
"packaging >= 23.1",
25+
"numpy >=1.26",
26+
"xarray >=2024.7",
27+
]
28+
dynamic = ["version"]
29+
30+
[project.readme]
31+
file = "README.md"
32+
content-type = "text/markdown"
33+
34+
[project.urls]
35+
Homepage = "https://github.com/mpytools/mplotutils"
36+
Documentation = "https://github.com/mpytools/mplotutils"
37+
Source = "https://github.com/mpytools/mplotutils"
38+
BugReports = "https://github.com/mpytools/mplotutils/issues"
39+
40+
[project.optional-dependencies]
41+
full = [
42+
"seaborn",
43+
]
44+
45+
[dependency-groups]
46+
# docs = [
47+
# "mplotutils[full]",
48+
# dependencies to build the docs
49+
# "numpydoc",
50+
# "sphinx",
51+
# ]
52+
tests = [
53+
"pytest-cov",
54+
"pytest-xdist",
55+
"pytest",
56+
]
57+
dev = [
58+
"regionmask[full, tests]", # docs
59+
"black !=23",
60+
"ruff",
61+
]
62+
63+
[tool.setuptools.packages]
64+
find = {namespaces = false} # Disable implicit namespaces
65+
166
[build-system]
267
requires = [
368
"setuptools>=42",
@@ -42,3 +107,8 @@ log_cli_level = "INFO"
42107
filterwarnings = [
43108
"ignore:numpy.ufunc size changed, may indicate binary incompatibility.:RuntimeWarning"
44109
]
110+
111+
[tool.coverage.run]
112+
omit = [
113+
"*/mplotutils/tests/*",
114+
]

requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 34 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)