Changeset 1f991d6 in sasmodels
- Timestamp:
- Jan 27, 2018 6:57:31 PM (7 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
r42158d2 r1f991d6 38 38 - conda info -a 39 39 # 2018-01-26 PAK: sasmodels uses yield generator for tests, which isn't supported in pytest 4+ 40 - conda install --yes python=$PY numpy scipy cython mako docutils cffi "pytest<4"40 - conda install --yes python=$PY numpy scipy cython mako docutils cffi setuptools "pytest<4" 41 41 install: 42 42 - pip install bumps … … 45 45 - python --version 46 46 #- python -m sasmodels.model_test -v dll all 47 - python -m pytest -v --cache-clear 47 #- python -m pytest -v --cache-clear 48 - python setup.py test --pytest-args -v 48 49 before_deploy: 49 50 - echo -e "Host danse.chem.utk.edu\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config -
appveyor.yml
r42158d2 r1f991d6 69 69 # 2018-01-19 PAK: skipping toolchain cython and cffi (these were for pyopencl?) 70 70 # 2018-01-26 PAK: sasmodels uses yield generator for tests, which isn't supported in pytest 4+ 71 - cmd: conda install --yes --quiet numpy scipy docutils "pytest<4"71 - cmd: conda install --yes --quiet numpy scipy docutils setuptools "pytest<4" 72 72 # 2018-01-19 PAK: skipping pyopencl; this would be needed for deploy but maybe not for test 73 73 #- cmd: conda install --yes --channel conda-forge pyopencl … … 89 89 #- python -m sasmodels.model_test dll all 90 90 #- nosetests -v sasmodels/*.py 91 - python -m pytest -v --cache-clear 91 #- python -m pytest -v --cache-clear 92 - python setup.py test --pytest-args -v -
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.