Skip to content

Commit 970075f

Browse files
authored
Merge pull request #124 from nicoddemus/py37-and-modern-pytest-versions
Test py37, update classifiers and test with more modern pytest versions
2 parents da7d4b2 + d0b2ac5 commit 970075f

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

.travis.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
language: python
2-
python:
3-
- "2.7"
4-
- "3.4"
5-
- "3.5"
6-
- "3.6"
72

83
install:
9-
- pip install tox-travis coveralls
4+
- pip install -U pip
5+
- pip install tox coveralls
106

117
script:
128
- tox
139

1410
after_success:
1511
- coveralls
1612

13+
stages:
14+
- test
15+
- name: deploy
16+
if: repo = pytest-dev/pytest-mock AND tag IS present
17+
1718
jobs:
1819
include:
20+
- python: '2.7'
21+
env: TOXENV=py27
22+
- python: '3.4'
23+
env: TOXENV=py34
24+
- python: '3.5'
25+
env: TOXENV=py35
26+
- python: '3.6'
27+
env: TOXENV=py36
28+
- python: '3.7'
29+
env: TOXENV=py37
30+
sudo: required
31+
dist: xenial
1932
- python: '3.6'
2033
env: TOXENV=linting
2134
- python: '3.6'

appveyor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
install:
2-
- C:\Python36\python -m pip install tox
2+
- C:\Python37\python -m pip install -U pip
3+
- C:\Python37\python -m pip install tox
34

45
build: false # Not a C# project
56

67
test_script:
7-
- C:\Python36\scripts\tox
8+
- C:\Python37\scripts\tox
9+
10+
skip_tags: true

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'Programming Language :: Python :: 3.4',
3636
'Programming Language :: Python :: 3.5',
3737
'Programming Language :: Python :: 3.6',
38+
'Programming Language :: Python :: 3.7',
3839
'Topic :: Software Development :: Testing',
3940
]
4041
)

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
[tox]
2-
envlist = py{27,34,35,36}-pytest{34,35},linting,norewrite
2+
envlist = py{27,34,35,36,37}, linting, norewrite
33

44
[testenv]
55
passenv = USER USERNAME
66
deps =
77
coverage
8-
pytest34: pytest~=3.4
9-
pytest35: pytest~=3.5
108
commands =
119
coverage run --append --source=pytest_mock.py -m pytest test_pytest_mock.py
1210

@@ -15,11 +13,12 @@ commands =
1513
pytest test_pytest_mock.py --assert=plain -ra
1614

1715
[testenv:linting]
18-
skip_install=True
16+
skipsdist = True
17+
usedevelop = True
1918
deps =
2019
pytest-flakes
2120
restructuredtext_lint
2221
pygments
2322
commands =
24-
py.test --flakes pytest_mock.py test_pytest_mock.py -m flakes
23+
pytest --flakes pytest_mock.py test_pytest_mock.py -m flakes
2524
rst-lint CHANGELOG.rst README.rst

0 commit comments

Comments
 (0)