Skip to content

Commit fd2c275

Browse files
committed
Switch to declarative setup configuration
1 parent 7c2a823 commit fd2c275

3 files changed

Lines changed: 22 additions & 19 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools>=30.3", "wheel"]

setup.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
1+
[metadata]
2+
name = python-markdown-math
3+
version = 0.6
4+
description = Math extension for Python-Markdown
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = Dmitry Shachnev
8+
author_email = mitya57@gmail.com
9+
url = https://github.com/mitya57/python-markdown-math
10+
license = BSD 3-Clause License
11+
12+
[options]
13+
py_modules = mdx_math
14+
install_requires = Markdown>=3.0
15+
16+
[options.entry_points]
17+
markdown.extensions =
18+
mdx_math = mdx_math:MathExtension
19+
120
[bdist_wheel]
221
universal = 1

setup.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,4 @@
22

33
from setuptools import setup
44

5-
with open('README.md') as readme_file:
6-
long_description = readme_file.read()
7-
8-
setup(name='python-markdown-math',
9-
description='Math extension for Python-Markdown',
10-
long_description=long_description,
11-
long_description_content_type='text/markdown',
12-
author='Dmitry Shachnev',
13-
author_email='mitya57@gmail.com',
14-
version='0.6',
15-
url='https://github.com/mitya57/python-markdown-math',
16-
py_modules=['mdx_math'],
17-
install_requires=['Markdown>=3.0'],
18-
entry_points={
19-
'markdown.extensions': [
20-
'mdx_math = mdx_math:MathExtension',
21-
],
22-
},
23-
license='BSD')
5+
setup()

0 commit comments

Comments
 (0)