forked from PacificBiosciences/pbcommand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (43 loc) · 1.73 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
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
version = __import__('pbcommand').get_version()
_REQUIREMENTS_FILE = 'REQUIREMENTS.txt'
_REQUIREMENTS_TEST_FILE = "REQUIREMENTS_TEST.txt"
_README = 'README.md'
def _get_description():
with open(_get_local_file(_README)) as f:
_long_description = f.read()
return _long_description
def _get_local_file(file_name):
return os.path.join(os.path.dirname(__file__), file_name)
def _get_requirements(file_name):
with open(file_name, 'r') as f:
reqs = [line for line in f if not line.startswith("#")]
return reqs
def _get_local_requirements(file_name):
return _get_requirements(_get_local_file(file_name))
setup(
name='pbcommand',
version=version,
license='BSD',
author='mpkocher natechols',
author_email='[email protected]',
url="https://github.com/PacificBiosciences/pbcommand",
download_url='https://github.com/PacificBiosciences/pbcommand/tarball/{v}'.format(v=version),
description='Library and Tools for interfacing to PacBio pbsmrtpipe workflow engine.',
install_requires=_get_local_requirements(_REQUIREMENTS_FILE),
tests_require=_get_local_requirements(_REQUIREMENTS_TEST_FILE),
long_description=_get_description(),
keywords='workflow pacbio'.split(),
packages=find_packages(),
package_data={"pbcommand": ["schemas/*.avsc"]},
zip_safe=False,
extras_require={"pbcore": ["pbcore", "ipython", "autopep8"],
"interactive": ['prompt_toolkit']},
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Topic :: Software Development :: Bug Tracking']
)