Skip to content

Commit 66e53cf

Browse files
committed
Move setuptools metadata to pyproject.toml
1 parent ce6cef7 commit 66e53cf

File tree

4 files changed

+23
-27
lines changed

4 files changed

+23
-27
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ $ pip install python-markdown-math
2020

2121
### Install locally
2222

23-
Use `setup.py build` and `setup.py install` to build and install this
24-
extension, respectively.
23+
Use `pip install .` to install this extension from a local Git checkout.
2524

2625
The extension name is `mdx_math`, so you need to add that name to your
2726
list of Python-Markdown extensions.

pyproject.toml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
[build-system]
2-
requires = ["setuptools>=30.3", "wheel"]
2+
requires = ["setuptools>=77.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "python-markdown-math"
7+
version = "0.8"
8+
description = "Math extension for Python-Markdown"
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
authors = [{ name = "Dmitry Shachnev", email = "[email protected]" }]
11+
license = "BSD-3-Clause"
12+
requires-python = ">=3.9"
13+
dependencies = ["Markdown>=3.0"]
14+
15+
[project.entry-points."markdown.extensions"]
16+
mdx_math = "mdx_math:MathExtension"
17+
18+
[project.urls]
19+
Homepage = "https://github.com/mitya57/python-markdown-math"
20+
21+
[tool.setuptools]
22+
py-modules = ["mdx_math"]
23+
include-package-data = false

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)