Skip to content

Commit b1027ff

Browse files
committed
chore: drop coverage 3.x support
1 parent 69a2628 commit b1027ff

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

coveralls/reporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ def report(self, cov, conf, morfs=None):
140140
log.warning('Source file is not python %s', cu.filename)
141141
except KeyError:
142142
version = [int(x) for x in __version__.split('.')]
143-
cov3x = version[0] < 4
144143
cov40 = version[0] == 4 and version[1] < 1
145-
if cov3x or cov40:
144+
if cov40:
146145
raise CoverallsException(
147146
'Old (<4.1) versions of coverage.py do not work '
148147
'consistently on new versions of Python. Please '

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
},
3535
install_requires=[
36-
'coverage>=3.6,<6.0',
36+
'coverage>=4.0,<6.0',
3737
'docopt>=0.6.1',
3838
'requests>=1.0.0',
3939
],

tests/api/encoding_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
import os
33
import subprocess
44

5-
import coverage
6-
import pytest
7-
85
from coveralls import Coveralls
96

107

@@ -24,8 +21,6 @@ def test_non_unicode():
2421
assert expected_json_part in actual_json
2522

2623

27-
@pytest.mark.skipif(coverage.__version__.startswith('3.'),
28-
reason='coverage 3 fails')
2924
def test_malformed_encoding_declaration_py3_or_coverage4():
3025
os.chdir(NONUNICODE_DIR)
3126
subprocess.call(['coverage', 'run', 'malformed.py'], cwd=NONUNICODE_DIR)

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{34,35}-cov{3,4,41}-{default,pyyaml},py{36,37,38,py3}-cov{41,5}-{default,pyyaml}
2+
envlist = py{34,35}-cov{4,41}-{default,pyyaml},py{36,37,38,py3}-cov{41,5}-{default,pyyaml}
33

44
[gh-actions]
55
python =
@@ -15,7 +15,6 @@ deps =
1515
mock
1616
pytest
1717
pyyaml: PyYAML>=3.10,<5.3
18-
cov3: coverage<4.0
1918
cov4: coverage>=4.0,<4.1
2019
cov41: coverage>=4.1,<5.0
2120
cov5: coverage>=5.0,<6.0

0 commit comments

Comments
 (0)