forked from axiros/terminal_markdown_viewer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·65 lines (55 loc) · 1.69 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
#!/usr/bin/env python2.7
# coding: utf-8
"""_
# Mdv installation
## Usage
[sudo] ./setup.py install
----
"""
import os
from setuptools import setup, find_packages
version = "2.0.2"
with open(os.path.join(os.path.dirname(__file__), "README.md")) as fd:
md = fd.read()
with open('requirements.txt', 'r') as f:
install_requires = f.read().replace(' ', '').split('\n')
# images hack for pypi:
gh = 'https://raw.githubusercontent.com/WillNye/terminal_markdown_viewer/master'
md = md.replace('src="./', 'src="%s/' % gh)
setup(
name="mdv3",
version=version,
packages=find_packages(),
author="Will Beasley",
author_email='[email protected]',
description="Terminal Markdown Viewer",
python_requires='>=3.7',
install_requires=install_requires,
extras_require={"yaml": "pyyaml"},
long_description=md,
long_description_content_type="text/markdown",
include_package_data=True,
url="https://github.com/WillNye/terminal_markdown_viewer",
download_url="https://github.com/WillNye/terminal_markdown_viewer/tarball/",
keywords=[
"markdown",
"markup",
"terminal",
"hilighting",
"syntax",
"source code",
],
test_suite="nose.collector",
tests_require=["nose"],
classifiers=[
"Programming Language :: Python",
"Natural Language :: English",
"Operating System :: POSIX",
"Topic :: Text Processing :: Markup",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
entry_points={"console_scripts": ["mdv = mdv:run"]},
)