- Timestamp:
- Jan 27, 2018 4:57:31 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 2ab1bac
- Parents:
- 42158d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r32e3c9b r1f991d6 1 try: 2 from setuptools import setup 3 except ImportError: 4 from distutils.core import setup 1 import sys 2 from setuptools import setup 3 from setuptools.command.test import test as TestCommand 4 5 class PyTest(TestCommand): 6 user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")] 7 8 def initialize_options(self): 9 TestCommand.initialize_options(self) 10 self.pytest_args = '' 11 12 def run_tests(self): 13 import shlex 14 #import here, cause outside the eggs aren't loaded 15 import pytest 16 errno = pytest.main(shlex.split(self.pytest_args)) 17 sys.exit(errno) 5 18 6 19 def find_version(package): … … 48 61 'sasmodels': ['*.c', '*.cl'], 49 62 }, 50 install_requires =[63 install_requires=[ 51 64 ], 52 extras_require ={65 extras_require={ 53 66 'OpenCL': ["pyopencl"], 54 67 'Bumps': ["bumps"], 55 68 'TinyCC': ["tinycc"], 56 69 }, 70 build_requires=['setuptools'], 71 test_requires=['pytest'], 72 cmdclass = {'test': PyTest}, 57 73 )
Note: See TracChangeset
for help on using the changeset viewer.