Skip to content

Commit c2665eb

Browse files
committed
Drop support for Python 3.4
1 parent 8c99601 commit c2665eb

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
dist: xenial
22
language: python
33
python:
4-
- '3.4'
54
- '3.5'
65
- '3.6'
76
- '3.7'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ['setuptools ~= 43.0.0', 'setuptools-scm ~= 3.5.0', 'wheel ~= 0.33.6']
2+
requires = ['setuptools ~= 45.2.0', 'setuptools-scm ~= 3.5.0', 'wheel ~= 0.34.0']
33
build-backend = 'setuptools.build_meta'

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ def read(fname):
2929
os.path.splitext(os.path.basename(path))[0]
3030
for path in glob.glob('src/*.py')
3131
],
32-
python_requires='>=3.4',
32+
python_requires='>=3.5',
3333
setup_requires=[
3434
'setuptools-scm>=3.5',
3535
],
3636
install_requires=[
3737
'filelock>=3.0',
38-
'pytest>=3.5,<4.7; python_version<"3.5"',
39-
'pytest>=3.5; python_version>="3.5"',
40-
'mypy>=0.500,<0.700; python_version<"3.5"',
41-
'mypy>=0.500; python_version>="3.5" and python_version<"3.8"',
38+
'pytest>=3.5',
39+
'mypy>=0.500; python_version<"3.8"',
4240
'mypy>=0.700; python_version>="3.8"',
4341
],
4442
classifiers=[
@@ -48,7 +46,6 @@ def read(fname):
4846
'Topic :: Software Development :: Testing',
4947
'Programming Language :: Python',
5048
'Programming Language :: Python :: 3',
51-
'Programming Language :: Python :: 3.4',
5249
'Programming Language :: Python :: 3.5',
5350
'Programming Language :: Python :: 3.6',
5451
'Programming Language :: Python :: 3.7',

tests/test_pytest_mypy.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ def pyfunc(x: int) -> str:
255255
testdir.makepyfile(good='''
256256
import bad
257257
''')
258-
xdist_args.append('good.py') # Nothing may come after xdist_args in py34.
259-
result = testdir.runpytest_subprocess('--mypy', *xdist_args)
258+
result = testdir.runpytest_subprocess('--mypy', *xdist_args, 'good.py')
260259
assert result.ret != 0
261260

262261

@@ -283,7 +282,7 @@ def pytest_collection_modifyitems(session, config, items):
283282
plugin.MypyFileItem(py.path.local('good.py'), session),
284283
)
285284
''')
286-
testdir.mkdir('empty')
287-
xdist_args.append('empty') # Nothing may come after xdist_args in py34.
288-
result = testdir.runpytest_subprocess('--mypy', *xdist_args)
285+
name = 'empty'
286+
testdir.mkdir(name)
287+
result = testdir.runpytest_subprocess('--mypy', *xdist_args, name)
289288
assert result.ret != 0

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
min_version = 3.7.0
44
isolated_build = true
55
envlist =
6-
py34-pytest{3.5, 3.x, 4.0, 4.x}-mypy{0.50, 0.5x, 0.60, 0.6x}
76
py35-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
87
py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
98
py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}

0 commit comments

Comments
 (0)