Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

### Internal changes

- Consolidate package metadata and configuration in *pyproject.toml* ([#165](https://github.com/mpytools/mplotutils/pull/165)).
- Replace deprecated `matplotlib.rcsetup.all_backends` with `matplotlib.backends.backend_registry.list_builtin()`
([#160](https://github.com/mpytools/mplotutils/pull/160)).
- Also upload coverage report in upstream dev CI ([#162](https://github.com/mpytools/mplotutils/pull/162)).
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
- [cartopy](http://scitools.org.uk/cartopy/) (0.23 or later)
- [matplotlib](http://matplotlib.org/) (3.9 or later)
- [numpy](http://www.numpy.org/) (1.26 or later)
- [xarray](http://xarray.pydata.org/) (2024.7 or later)

## Optional dependencies

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

## Instructions

Expand Down
70 changes: 70 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
[project]
name = "mplotutils"
authors = [{name = "mplotutils developers", email = "mathias.hauser@env.ethz.com"}]
license = "GPL-3.0-only"
keywords = ['matplotlib cartopy plotting']
description = "utilities for matplotlib and cartopy"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.11"
dependencies = [
"cartopy >=0.23",
"matplotlib >=3.9",
"packaging >= 23.1",
"numpy >=1.26",
"xarray >=2024.7",
]
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Homepage = "https://github.com/mpytools/mplotutils"
Documentation = "https://github.com/mpytools/mplotutils"
Source = "https://github.com/mpytools/mplotutils"
BugReports = "https://github.com/mpytools/mplotutils/issues"

[project.optional-dependencies]
full = [
"seaborn",
]

[dependency-groups]
# docs = [
# "mplotutils[full]",
# dependencies to build the docs
# "numpydoc",
# "sphinx",
# ]
tests = [
"pytest-cov",
"pytest-xdist",
"pytest",
]
dev = [
"regionmask[full, tests]", # docs
"black !=23",
"ruff",
]

[tool.setuptools.packages]
find = {namespaces = false} # Disable implicit namespaces

[build-system]
requires = [
"setuptools>=42",
Expand Down Expand Up @@ -42,3 +107,8 @@ log_cli_level = "INFO"
filterwarnings = [
"ignore:numpy.ufunc size changed, may indicate binary incompatibility.:RuntimeWarning"
]

[tool.coverage.run]
omit = [
"*/mplotutils/tests/*",
]
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

34 changes: 0 additions & 34 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

Loading