-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.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 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='odbo',
version="0.0.7",
author='Alexey Strokach',
author_email='[email protected]',
url="https://github.com/kimlaborg/odbo",
description=(
"odbo is a tool to simplify the distribution of pandas DataFrames as CSV and "
"database files."),
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=['odbo'],
package_data={'odbo': 'data/*.cnf'},
entry_points={'console_scripts': ['odbo=odbo.__main__:main']},
)