Skip to content

Commit 9471da2

Browse files
committed
Travis: test Python 3.7, 3.8
[closes #20] Squashed commit of the following: commit 5257fee Author: Adam Hooper <[email protected]> Date: Mon Dec 30 10:55:24 2019 -0500 Travis: Fix test-dep installation commit 6239e7e Author: Adam Hooper <[email protected]> Date: Mon Dec 30 10:50:11 2019 -0500 Another attempt at wrangling Travis commit 3be9c45 Author: Adam Hooper <[email protected]> Date: Mon Dec 30 10:31:30 2019 -0500 Travis: fix pytest-asyncio installation commit 2e0e5f2 Author: Adam Hooper <[email protected]> Date: Mon Dec 30 10:25:18 2019 -0500 Travis: test Python 3.7, 3.8
1 parent 3ea6ac3 commit 9471da2

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ language: python
44

55
python:
66
- "3.6"
7+
- "3.7"
8+
- "3.8"
79

810
services:
911
- docker
@@ -26,7 +28,7 @@ script:
2628
- pyflakes .
2729
- black --check .
2830
- isort --check-only --diff --recursive channels_rabbitmq tests
29-
- pytest --verbose
31+
- pytest -v
3032

3133
deploy:
3234
provider: pypi

setup.cfg

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ line_length=88
1919
known_first_party = channels, asgiref, channels_rabbitmq
2020

2121
[tox]
22-
envlist = py36
22+
envlist = py36, py37, py38
2323

2424
[testenv]
25-
deps =
26-
pytest~=3.6.0
27-
pytest-runner
28-
pytest-asyncio~=0.8
29-
pytest-timeout~=1.3.3
25+
extras = tests
3026
commands =
3127
pytest {posargs}

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# We use the README as the long_description
88
readme = open(join(dirname(__file__), "README.rst")).read()
99

10+
tests_require = ["pytest~=3.6.0", "pytest-asyncio~=0.8", "pytest-timeout~=1.3.3"]
11+
1012
setup(
1113
name="channels_rabbitmq",
1214
version=__version__,
@@ -25,5 +27,6 @@
2527
"msgpack~=0.6.1",
2628
"channels~=2.2",
2729
],
28-
tests_require=["pytest~=3.6.0", "pytest-asyncio~=0.8", "pytest-timeout~=1.3.3"],
30+
tests_require=tests_require, # for `python ./setup.py test`
31+
extras_require={"tests": tests_require}, # for bare `pytest`
2932
)

0 commit comments

Comments
 (0)