Skip to content

Commit ee5d3e6

Browse files
committed
MNT: migrate build metadata from setup.cfg to pyproject.toml
1 parent f89b72e commit ee5d3e6

File tree

5 files changed

+95
-78
lines changed

5 files changed

+95
-78
lines changed

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-line-length = 120
3+
ignore = W503,W504
4+
5+
[pycodestyle]
6+
max_line_length = 120

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include LICENSE
21
include README.rst
32
include CHANGES.md
43
include tox.ini

pyproject.toml

Lines changed: 89 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,90 @@
11
[build-system]
2-
requires = ["setuptools>=30.3.0",
3-
"setuptools_scm",
4-
"wheel"]
5-
build-backend = 'setuptools.build_meta'
2+
requires = [
3+
"setuptools>=80",
4+
"setuptools-scm[simple]>=8",
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "pytest-mpl"
10+
authors = [
11+
{ name = "Thomas Robitaille", email = "thomas.robitaille@gmail.com" },
12+
]
13+
license = "BSD-2-Clause"
14+
license-files = [
15+
"LICENSE",
16+
]
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"Framework :: Pytest",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Testing",
22+
"Topic :: Scientific/Engineering :: Visualization",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Operating System :: OS Independent",
26+
]
27+
description = "pytest plugin to help with testing figures output from Matplotlib"
28+
requires-python = ">=3.9"
29+
dependencies = [
30+
"pytest",
31+
"matplotlib",
32+
"importlib_resources;python_version<'3.8'",
33+
"packaging",
34+
"Jinja2",
35+
"Pillow",
36+
]
37+
dynamic = [
38+
"version",
39+
]
40+
41+
[project.readme]
42+
file = "README.rst"
43+
content-type = "text/x-rst"
44+
45+
[project.urls]
46+
Homepage = "https://github.com/matplotlib/pytest-mpl"
47+
48+
[project.entry-points.pytest11]
49+
pytest_mpl = "pytest_mpl.plugin"
50+
51+
[project.optional-dependencies]
52+
test = [
53+
"pytest-cov",
54+
]
55+
docs = [
56+
"sphinx",
57+
"mpl_sphinx_theme>=3.9.0",
58+
"sphinx_design",
59+
"matplotlib==3.9.*",
60+
]
61+
62+
[tool.setuptools]
63+
zip-safe = true
64+
include-package-data = true
65+
66+
[tool.setuptools.packages.find]
67+
namespaces = false
68+
69+
[tool.pytest.ini_options]
70+
testpaths = [
71+
"tests",
72+
]
73+
norecursedirs = [
74+
"tests/subtests/subtest",
75+
]
76+
filterwarnings = [
77+
"error",
78+
"ignore:distutils Version classes are deprecated",
79+
"ignore:the imp module is deprecated in favour of importlib",
80+
"ignore:The NumPy module was reloaded",
81+
]
82+
83+
[tool.isort]
84+
balanced_wrapping = true
85+
length_sort = false
86+
length_sort_sections = [
87+
"stdlib",
88+
]
89+
line_length = 100
90+

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)