Skip to content

Commit 474e07f

Browse files
committed
move pytest to setup.py
1 parent f43c1c3 commit 474e07f

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ _build
44
*.egg-info
55
dist
66
build
7+
.eggs

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ python:
88
- "3.6"
99
- "pypy"
1010
install: "pip install -r dev-requirements.txt"
11-
script: python -m pytest
11+
script: python setup.py test

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[aliases]
2+
test=pytest

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
install_requires=[
2121
'six>=1.10.0',
2222
],
23+
setup_requires=[
24+
'pytest-runner',
25+
],
26+
tests_require=[
27+
'pytest',
28+
],
2329
classifiers=[
2430
'Environment :: Web Environment',
2531
'Framework :: Django',

0 commit comments

Comments
 (0)