-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
38 lines (33 loc) · 1.19 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
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 py.test")]
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 pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='srim',
version='0.1',
packages=find_packages(),
package_data={
'srim': ['data/*.yaml']
},
description='Srim Automation of Tasks',
long_description='Pythonic Wrapper to SRIM (LONG)',
author='Christopher Ostrouchov',
author_email='[email protected]',
url='https://github.com/costrouc/srim-python',
download_url='https://github.com/costrouc/srim-python/tarball/master',
keywords=['srim', 'automation', 'plotting'],
setup_requires=['pytest-runner'],
install_requires=['pyyaml', 'numpy>=1.10.0'],
tests_require=['pytest>=2.7.0', 'pytest-mock'],
cmdclass = {'test': PyTest},
# scripts=['scripts/']
)