-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
46 lines (37 loc) · 1.31 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
import os.path as op
from setuptools import find_packages, setup
def _read_md_as_rst(file):
"""Read MarkDown file and convert it to ReStructuredText."""
from pypandoc import convert
return convert(file, 'rst')
def _read_md_as_md(file):
"""Read MarkDown file."""
with open(op.join(op.dirname(__file__), file)) as ifh:
return ifh.read()
def read_md(file):
"""Read MarkDown file and try to convert it to ReStructuredText if you can."""
try:
return _read_md_as_rst(file)
except ImportError:
print("WARNING: pypandoc module not found, could not convert Markdown to RST!")
return _read_md_as_md(file)
setup(
name='kmtools',
version='0.0.21',
author='kimlab.org',
author_email='[email protected]',
url="https://github.com/kimlaborg/kmtools",
description="Bits of reusable code to make our lives easier.",
long_description=read_md("README.md"),
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
license='MIT',
packages=['kmtools.' + x for x in find_packages('kmtools')],
namespace_packages=['kmtools'],
package_data={
'kmtools.sequence_tools': ['support/*.csv'],
},
)