Skip to content

Commit fb28b8b

Browse files
authored
Merge pull request #86 from hugovk/rm-eol
Drop support for EOL Python 2.7 and 3.5
2 parents a467791 + 601dd85 commit fb28b8b

File tree

8 files changed

+27
-35
lines changed

8 files changed

+27
-35
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ jobs:
88
fail-fast: false
99
matrix:
1010
python:
11-
- v: "2.7"
12-
tox_env: "py27"
13-
- v: "3.5"
14-
tox_env: "py35"
1511
- v: "3.6"
1612
tox_env: "py36"
1713
- v: "3.7"
@@ -23,12 +19,14 @@ jobs:
2319
tox_env: "py38"
2420
- v: "3.9"
2521
tox_env: "py39"
26-
- v: "pypy2"
27-
tox_env: "pypy2"
2822
- v: "3.9"
2923
tox_env: "linting"
3024
os: [ubuntu-latest, windows-latest]
3125
steps:
26+
- name: Set Git to use LF
27+
run: |
28+
git config --global core.autocrlf false
29+
git config --global core.eol lf
3230
- uses: actions/checkout@v1
3331
- name: Set up Python
3432
uses: actions/setup-python@v1

.pre-commit-config.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 19.10b0
4+
rev: 20.8b1
55
hooks:
66
- id: black
7-
args: [--safe, --quiet]
7+
args: [--safe, --quiet, --target-version, py36]
88
- repo: https://github.com/asottile/blacken-docs
9-
rev: v1.0.0
9+
rev: v1.10.0
1010
hooks:
1111
- id: blacken-docs
12-
additional_dependencies: [black==19.3b0]
12+
additional_dependencies: [black==20.8b1]
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v2.2.3
14+
rev: v3.4.0
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
@@ -21,7 +21,7 @@ repos:
2121
- id: debug-statements
2222
language_version: python3
2323
- repo: https://gitlab.com/pycqa/flake8
24-
rev: 3.7.7
24+
rev: 3.8.4
2525
hooks:
2626
- id: flake8
2727
language_version: python3
@@ -31,24 +31,24 @@ repos:
3131
hooks:
3232
- id: pep257
3333
- repo: https://gitlab.com/pycqa/flake8
34-
rev: 3.7.7
34+
rev: 3.8.4
3535
hooks:
3636
- id: flake8
3737
language_version: python3
3838
- repo: https://github.com/asottile/reorder_python_imports
39-
rev: v1.4.0
39+
rev: v2.4.0
4040
hooks:
4141
- id: reorder-python-imports
4242
- repo: https://github.com/asottile/pyupgrade
43-
rev: v1.18.0
43+
rev: v2.10.0
4444
hooks:
4545
- id: pyupgrade
46-
args: [--keep-percent-format]
46+
args: [--keep-percent-format, --py36-plus]
4747
- repo: https://github.com/pre-commit/pygrep-hooks
48-
rev: v1.4.0
48+
rev: v1.8.0
4949
hooks:
5050
- id: rst-backticks
5151
- repo: https://github.com/adrienverge/yamllint.git
52-
rev: v1.18.0
52+
rev: v1.26.0
5353
hooks:
5454
- id: yamllint

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ hangs.
4343
stage. See below for detailed information on the timeout methods
4444
and their side-effects.
4545

46-
The pytest-timeout plugin has been tested on python 2.7 or higher,
47-
including 3.X, pypy and pypy3. See tox.ini for currently tested
48-
versions.
46+
The pytest-timeout plugin has been tested on Python 3.6 and higher,
47+
including PyPy3. See tox.ini for currently tested versions.
4948

5049

5150
Usage

failure_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Demonstration of timeout failures using pytest_timeout.
22
3-
To use this demo, invoke py.test on it::
3+
To use this demo, invoke pytest on it::
44
5-
py.test failure_demo.py
5+
pytest failure_demo.py
66
"""
77
import threading
88
import time

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
"""Setuptools install script for pytest-timeout."""
2-
import io
3-
42
from setuptools import setup
53

6-
with io.open("README.rst", encoding="utf-8") as f:
4+
with open("README.rst", encoding="utf-8") as f:
75
long_description = f.read()
86

97

108
setup(
119
name="pytest-timeout",
12-
description="py.test plugin to abort hanging tests",
10+
description="pytest plugin to abort hanging tests",
1311
long_description=long_description,
1412
version="1.4.2",
1513
author="Floris Bruynooghe",
1614
author_email="[email protected]",
17-
url="http://github.com/pytest-dev/pytest-timeout/",
15+
url="https://github.com/pytest-dev/pytest-timeout",
1816
license="MIT",
1917
py_modules=["pytest_timeout"],
2018
entry_points={"pytest11": ["timeout = pytest_timeout"]},
@@ -30,9 +28,8 @@
3028
"Programming Language :: Python",
3129
"Programming Language :: Python :: Implementation :: PyPy",
3230
"Programming Language :: Python :: Implementation :: CPython",
33-
"Programming Language :: Python :: 2.7",
3431
"Programming Language :: Python :: 3",
35-
"Programming Language :: Python :: 3.5",
32+
"Programming Language :: Python :: 3 :: Only",
3633
"Programming Language :: Python :: 3.6",
3734
"Programming Language :: Python :: 3.7",
3835
"Programming Language :: Python :: 3.8",

test_pytest_timeout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_foo(self, fix):
151151
scope=scope
152152
)
153153
)
154-
result = testdir.runpytest("--timeout=1", "--timeout-method={}".format(meth))
154+
result = testdir.runpytest("--timeout=1", f"--timeout-method={meth}")
155155
assert result.ret > 0
156156
assert "Timeout" in result.stdout.str() + result.stderr.str()
157157

@@ -198,7 +198,7 @@ def test_foo(self, fix):
198198
pass
199199
"""
200200
)
201-
result = testdir.runpytest("--timeout=1", "-s", "--timeout-method={}".format(meth))
201+
result = testdir.runpytest("--timeout=1", "-s", f"--timeout-method={meth}")
202202
assert result.ret > 0
203203
assert "Timeout" in result.stdout.str() + result.stderr.str()
204204

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ minversion = 2.8
33
addopts = -ra
44

55
[tox]
6-
envlist = py27,py35,py36,py37,py38,py39,pypy2,pypy3
6+
envlist = py36,py37,py38,py39,pypy3
77

88
[testenv]
99
deps = pytest

0 commit comments

Comments
 (0)