Skip to content

Commit 1601cb7

Browse files
authored
update supported python and pytest versions (#104)
* add python 3.9 to supported versions and remove 3.5 * Test against pytests 4.6 - 6.2 (all minor versions)
1 parent 910c4b0 commit 1601cb7

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
language: python
23
dist: bionic
34
python:
45
- "2.7"
5-
- "3.5"
66
- "3.6"
77
- "3.7"
88
- "3.8"
9+
- "3.9"
910

1011
install:
1112
- pip install tox tox-travis

CHANGES.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ Changelog
44
Unreleased
55
----------
66

7-
- Drop support for Python 3.4.
8-
- Drop support for pytest < 4.3.
7+
- Add support for Python 3.9.
8+
- Drop support for Python 3.4, 3.5.
9+
- Add support for pytest 6.
10+
- Drop support for pytest < 4.6.
911

1012

1113
2.0.3

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.black]
22
line-length = 120
3-
target-version = ['py27', 'py35', 'py36', 'py37', 'py38']
3+
target-version = ['py27', 'py36', 'py37', 'py38']

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"Programming Language :: Python :: 2",
4343
"Programming Language :: Python :: 3",
4444
"Programming Language :: Python :: 2.7",
45-
"Programming Language :: Python :: 3.5",
4645
"Programming Language :: Python :: 3.6",
4746
"Programming Language :: Python :: 3.7",
4847
"Programming Language :: Python :: 3.8",
48+
"Programming Language :: Python :: 3.9",
4949
],
5050
install_requires=[
5151
"inflection",
5252
"factory_boy>=2.10.0",
53-
"pytest>=4.3",
53+
"pytest>=4.6",
5454
'funcsigs;python_version<"3.0"',
5555
],
5656
# the following makes a plugin available to py.test

tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
[tox]
22
distshare = {homedir}/.tox/distshare
3-
envlist = py27-pytest{43,44,45,46},
4-
py38-pytest{43,44,45,46,50,51,52,53,54,60,latest},
3+
envlist = py27-pytest46,
4+
py38-pytest{46,50,51,52,53,54,60,61,62,latest,master},
55
py38-pytestlatest-linters,
6-
py{35,36,37}-pytestlatest
6+
py{36,37,39}-pytestlatest
77

88
[testenv]
99
commands = pytest --junitxml={envlogdir}/junit-{envname}.xml {posargs:tests}
1010
deps =
1111
pytestlatest: pytest
12+
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
13+
pytest62: pytest~=6.2.0
14+
pytest61: pytest~=6.1.0
1215
pytest60: pytest~=6.0.0
1316
pytest54: pytest~=5.4.0
1417
pytest53: pytest~=5.3.0
1518
pytest52: pytest~=5.2.0
1619
pytest51: pytest~=5.1.0
1720
pytest50: pytest~=5.0.0
1821
pytest46: pytest~=4.6.0
19-
pytest45: pytest~=4.5.0
20-
pytest44: pytest~=4.4.0
21-
pytest43: pytest~=4.3.0
2222

2323
-r{toxinidir}/requirements-testing.txt
2424

2525
[testenv:py38-pytestlatest-linters]
2626
deps = black
2727
commands = black --check --verbose setup.py pytest_factoryboy tests
2828

29+
[testenv:py38-pytestmaster]
30+
# allow failures of tests run for `pytest` installed from `master` branch
31+
ignore_outcome = true
32+
2933
[pytest]
3034
addopts = -vv -l
31-
pep8maxlinelength = 120

0 commit comments

Comments
 (0)