-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
43 lines (34 loc) · 1.47 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ""
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import shlex
import pytest
self.pytest_args += " --cov=renderapps --cov-report html "\
"--junitxml=test-reports/test.xml"
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
with open('test_requirements.txt', 'r') as f:
test_required = f.read().splitlines()
with open('requirements.txt', 'r') as f:
required = f.read().splitlines()
setup(name='render-python-apps',
version='1.0',
description=' a set of python modules for doing higher level processing steps used '
' render, developed for processing array tomography and EM images.'
'see http://github.com/saalfeldlab/render',
author='Sharmi Seshamani, Forrest Collman, Russel Torres, Eric Perlman, ',
author_email='[email protected]',
url='https://github.com/sharmishtaa/render-python-apps',
packages=find_packages(),
install_requires=required,
setup_requires=['flake8'],
tests_require=test_required,
cmdclass={'test': PyTest},)