Skip to content

Commit 05ce1a6

Browse files
committed
Use pytest in setup.
1 parent a109c52 commit 05ce1a6

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.idea
33
.cache
44
.DS_Store
5+
.eggs
56

67
.coverage
78

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ python:
66
# command to install dependencies
77
install:
88
- pip install codecov pytest-cov pylint
9-
# command to run tests
109
before_script:
1110
- export PYPACT=$PWD
1211
- export PYTHONPATH=$PYTHONPATH:$PYPACT/pypact

pytest.ini

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
addopts = --cov=./pypact/util --cov=./pypact/output --cov=./pypact/material --cov=./pypact/reader --cov=./pypact/tools
3+
python_files = pypact/tests/testsuite.py

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[aliases]
2+
test=pytest

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from setuptools import setup
22

3+
34
setup(name='pypact',
45
version='1.0.0',
56
description='The package for reading and manipulating the fispact output text file.',
@@ -13,6 +14,8 @@
1314
install_requires=[],
1415
python_requires='>=3',
1516
scripts=['pypact/tools/fispactconverter.py'],
17+
setup_requires=['pytest-runner'],
1618
test_suite='pypact.tests.testsuite',
1719
tests_require=['pytest'],
1820
zip_safe=False)
21+

0 commit comments

Comments
 (0)