-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (43 loc) · 1.48 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
from __future__ import print_function
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
from version import version
# Set up a test class
# noinspection PyAttributeOutsideInit
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
# Sanitize command line arguments to avoid confusing Toil code attempting to parse them
sys.argv[1:] = []
err_number = pytest.main(self.pytest_args)
sys.exit(err_number)
setup(name='transgene',
version=version,
package_dir={'': 'src'},
packages=find_packages('src', exclude=['*.test']),
description='Translation of genomic events to proteomic space',
url='http://github.com/arkal/transgene',
author='Arjun Arkal Rao',
author_email='[email protected]',
license='Apache',
install_requires=[
'pysam>=0.9.1',
'swalign>=0.3.3',
],
tests_require=[
'pytest==2.8.3'],
test_suite='transgene',
entry_points={
'console_scripts': [
'transgene = transgene.core:run_transgene']},
cmdclass={'test': PyTest},
zip_safe=False)