Skip to content

Commit 97e59a5

Browse files
authored
Merge pull request #68 from QuLogic/pyproject
Migrate to pyproject.toml
2 parents e027423 + a123079 commit 97e59a5

File tree

5 files changed

+51
-51
lines changed

5 files changed

+51
-51
lines changed

Diff for: setup.cfg renamed to .flake8

File renamed without changes.

Diff for: MANIFEST.in

-13
This file was deleted.

Diff for: pyproject.toml

+51
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+
]

Diff for: requirements.txt

-2
This file was deleted.

Diff for: setup.py

-36
This file was deleted.

0 commit comments

Comments
 (0)