-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
86 lines (70 loc) · 2.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file is part of the markdown-katex project
# https://gitlab.com/mbarkhau/markdown-katex
#
# Copyright (c) 2019 Manuel Barkhau ([email protected]) - MIT License
# SPDX-License-Identifier: MIT
import os
import sys
import setuptools
def project_path(*sub_paths):
project_dirpath = os.path.abspath(os.path.dirname(__file__))
return os.path.join(project_dirpath, *sub_paths)
def read(*sub_paths):
with open(project_path(*sub_paths), mode="rb") as fh:
return fh.read().decode("utf-8")
package_dir = {"": "src"}
if any(arg.startswith("bdist") for arg in sys.argv):
import lib3to6
package_dir = lib3to6.fix(package_dir)
install_requires = [
line.strip()
for line in read("requirements", "pypi.txt").splitlines()
if line.strip() and not line.startswith("#")
]
long_description = "\n\n".join((read("README.md"), read("CHANGELOG.md")))
setuptools.setup(
name="markdown-katex",
license="MIT",
author="Manuel Barkhau",
author_email="[email protected]",
url="https://github.com/mbarkhau/markdown-katex",
version="202406.1035",
keywords="markdown katex extension",
description="katex extension for Python Markdown",
long_description=long_description,
long_description_content_type="text/markdown",
packages=["markdown_katex"],
package_dir=package_dir,
package_data={
"markdown_katex": [
os.path.join("bin", "katex*"),
],
},
install_requires=install_requires,
python_requires=">=2.7",
zip_safe=True,
entry_points={
'markdown.extensions': [
'markdown_katex = markdown_katex.extension:KatexExtension',
]
},
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)