-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsetup.py
executable file
·32 lines (26 loc) · 874 Bytes
/
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
#!/usr/bin/env python
# coding: utf-8
import setuptools
# Pandoc Metadata
# ------------------------------------------------------------------------------
m = {}
exec(open("src/pandoc/about.py").read(), m)
metadata = dict((k, v) for (k, v) in m.items() if not k.startswith("_"))
# Setup Configuration
# ------------------------------------------------------------------------------
contents = {
"packages": setuptools.find_packages("src"),
"package_dir": {"": "src"},
"package_data": {"pandoc": ["pandoc-types.js", "tests.md"]},
}
requirements = {
"install_requires": ["plumbum", "ply"],
}
info = {}
info.update(metadata)
info.update(contents)
info.update(requirements)
info["long_description"] = open("README.md", encoding="utf-8").read()
info["long_description_content_type"] = "text/markdown"
if __name__ == "__main__":
setuptools.setup(**info)