-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
45 lines (42 loc) · 1.63 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
import os
import sys
from setuptools import setup
VERSION = "1.0.4"
if sys.argv[-1] == "publish":
if os.system("pip freeze | grep wheel"):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
print("You probably want to also tag the version now:")
print(" git tag -a {0} -m 'version {0}'".format(VERSION))
print(" git push --tags")
sys.exit()
setup(
name="markdown-inline-mermaid",
version=VERSION,
py_modules=["markdown_inline_mermaid"],
install_requires=["Markdown>=2.3.1"],
author="Johannes Wuerbach",
author_email="[email protected]",
description="Render inline graphs with Markdown and Mermaid",
long_description="Port of https://github.com/cesaremorel/markdown-inline-graphviz for mermaid.",
license="MIT",
url="https://github.com/johanneswuerbach/markdown-inline-mermaid",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Documentation",
"Topic :: Text Processing",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)