-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (26 loc) · 839 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
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 hankei6km
# Licensed under the MIT License. See LICENSE.txt in the project root.
from setuptools import setup
# https://stackoverflow.com/questions/26737222/pypi-description-markdown-doesnt-work
try:
import pypandoc
with open('README.md', 'r') as fp:
import re
md = fp.read()
md = re.sub(r'!\[.+\]\(.+\)', r'', md)
long_description = pypandoc.convert_text(md, 'rst', format='md')
except(ImportError):
long_description = open('README.md').read()
setup(
long_description=long_description,
setup_requires=['pytest-runner'],
tests_require=['mock', 'pytest', 'pytest-cov'],
package_data={
'mirage_linemode': [
'ranger_plugin/mirage_linemode.py', # not package directory
'template/*'
]
}
)