-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (40 loc) · 1.41 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
import os
from os.path import dirname, join
import io
from setuptools import setup
def get_version(relpath):
"""Read version info from a file without importing it"""
for line in io.open(join(dirname(__file__), relpath), encoding="cp437"):
if "__version__" in line:
if '"' in line:
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
def get_readme():
with open(os.path.join(ROOT_DIR, 'README.md')) as fh:
return ''.join(fh.readlines())
setup(
name='bird_tool_utils',
version=get_version('bird_tool_utils/version.py'),
url='https://github.com/wwood/bird_tool_utils-python/',
license='GPL3+',
author='Ben Woodcroft, Rhys Newell',
author_email='benjwoodcroft@gmail.com, rhys.newell@hdr.qut.edu.au',
maintainer='Ben Woodcroft',
maintainer_email='benjwoodcroft@gmail.com',
packages=['bird_tool_utils'],
description='Python utilities used as part of the bird suite of bioinformatic tools',
long_description=get_readme(),
long_description_content_type='text/markdown',
package_data={'': [
"bird_tool_utils/*",
]},
data_files=[(".", ["README.md", "LICENCE.txt"])],
include_package_data=True,
install_requires=(
'argparse-manpage-birdtools >= 1.7.0'
),
setup_requires=['nose >= 1.0'],
test_suite='nose.collector',
)