Skip to content

Commit a123079

Browse files
committed
Migrate to pyproject.toml
1 parent e027423 commit a123079

File tree

5 files changed

+51
-51
lines changed

5 files changed

+51
-51
lines changed

setup.cfg renamed to .flake8

File renamed without changes.

MANIFEST.in

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

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "mpl_sphinx_theme"
7+
dynamic = ["version"]
8+
description = "Matplotlib theme for Sphinx"
9+
readme = "README.rst"
10+
requires-python = ">=3"
11+
license = {file = "LICENSE.txt"}
12+
authors = [
13+
{name = "Matplotlib Developers"},
14+
]
15+
classifiers = [
16+
"Framework :: Sphinx :: Theme",
17+
"Programming Language :: Python :: 3 :: Only",
18+
"Topic :: Documentation",
19+
"Topic :: Documentation :: Sphinx",
20+
]
21+
dependencies = [
22+
"pydata-sphinx-theme>=0.13.1",
23+
"matplotlib",
24+
]
25+
26+
[project.urls]
27+
homepage = "https://matplotlib.org/mpl-sphinx-theme/"
28+
repository = "https://github.com/matplotlib/mpl-sphinx-theme"
29+
30+
# http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
31+
[project.entry-points."sphinx.html_themes"]
32+
mpl_sphinx_theme = "mpl_sphinx_theme"
33+
34+
[tool.setuptools]
35+
packages = ["mpl_sphinx_theme"]
36+
zip-safe = false
37+
38+
[tool.setuptools.dynamic]
39+
version = {attr = "mpl_sphinx_theme.__version__"}
40+
41+
[tool.setuptools.package-data]
42+
mpl_sphinx_theme = [
43+
"theme.conf",
44+
"*.html",
45+
"static/css/*.css",
46+
"static/images/*.svg",
47+
"static/images/*.ico",
48+
"static/js/*.js",
49+
"static/font/*.*",
50+
"components/*.html",
51+
]

requirements.txt

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

setup.py

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

0 commit comments

Comments
 (0)