-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
87 lines (72 loc) · 2.52 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Installation driver (and development utility entry point) for demuxtool
"""
from itertools import chain
import os
import sys
from setuptools.command.install import install
from setuptools import setup, find_packages
import pip
from pip.req import parse_requirements
import versioneer
__author__ = 'Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>'
# Enforce python version >=3.4
if sys.version_info < (3, 4):
print("At least Python 3.4 is required.\n", file=sys.stderr)
sys.exit(1)
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
# Use DRMAA/non-DRMAA requirements
reqs = parse_requirements('requirements/base.txt', session=pip.download.PipSession())
requirements = [str(ir.req) for ir in reqs]
def console_scripts_entry_points(names, module):
"""Yield entries for the 'console_scripts' entry points"""
for name in names:
if module == 'wrappers':
yield 'cubi-{name} = cubi_wrappers.{module}.{name}.__main__:main'.format(
module=module, name=name)
elif module == 'tools':
yield 'cubi-{name} = cubi_wrappers.{module}.{name}:main'.format(
module=module, name=name)
def bash_scripts(names):
"""Return generator with bash scripts of the given ``names``"""
return (os.path.join('scripts', name) for name in names)
setup(
name='cubi_demux',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="CUBI Demuxtool",
long_description=readme + '\n\n' + history,
author="Manuel Holtgrewe",
author_email='manuel.holtgrewe@bihealth.de',
url='https://github.com/bihealth/demuxtool',
packages=find_packages(),
package_dir={
'cubi_demux': 'cubi_demux',
},
entry_points={
'console_scripts': (
(
'cubi-demux=cubi_demux.apps.cubi_demux:main',
),
),
},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='cubi_pipeline',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)