-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (23 loc) · 752 Bytes
/
setup.py
File metadata and controls
29 lines (23 loc) · 752 Bytes
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
import re
from subprocess import PIPE, Popen
from setuptools import setup
VERSION = "0.4.8"
def git_version():
proc = Popen(["git", "describe", "--long"], stdout=PIPE)
out, err = proc.communicate()
out = out.decode()
if proc.returncode != 0:
return VERSION
match = re.match(r'^(\d+\.\d+[-.]\d+)(?:.*)?', out)
return match.group(1).replace("-", ".")
setup(name="mdpreview",
version=git_version(),
description="VIM Markdown Preview HTTP server",
author="Kevin Morris",
author_email="kevr@0cost.org",
url="https://www.github.com/kevr/mdpreview",
packages=['mdpreview'],
scripts=['bin/mdpreviewd'],
install_requires=[
"typing-extensions==3.*,>=3.6.0"
])