Skip to content

Commit 8ac35fb

Browse files
committed
Drop support for EOL Python 2.7
1 parent e554aca commit 8ac35fb

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["2.7", "3.5", "3.6", "3.7", "3.8"]
13+
python: ["3.5", "3.6", "3.7", "3.8"]
1414
os: [ubuntu-latest, windows-latest]
1515
include:
16-
- python: "2.7"
17-
tox_env: "py27"
1816
- python: "3.5"
1917
tox_env: "py35"
2018
- python: "3.6"

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,8 @@ function decorators for mocking unnecessary.
221221
Requirements
222222
============
223223

224-
* Python 2.7, Python 3.5+
224+
* Python Python 3.5+
225225
* pytest
226-
* mock (for Python 2)
227226

228227

229228
Install

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
packages=find_packages(where="src"),
99
package_dir={"": "src"},
1010
platforms="any",
11-
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
12-
install_requires=["pytest>=2.7", 'mock;python_version<"3.0"'],
11+
python_requires=">=3.5",
12+
install_requires=["pytest>=2.7"],
1313
use_scm_version={"write_to": "src/pytest_mock/_version.py"},
1414
setup_requires=["setuptools_scm"],
1515
url="https://github.com/pytest-dev/pytest-mock/",
@@ -26,13 +26,12 @@
2626
"Intended Audience :: Developers",
2727
"License :: OSI Approved :: MIT License",
2828
"Operating System :: OS Independent",
29-
"Programming Language :: Python :: 2",
30-
"Programming Language :: Python :: 2.7",
3129
"Programming Language :: Python :: 3",
3230
"Programming Language :: Python :: 3.5",
3331
"Programming Language :: Python :: 3.6",
3432
"Programming Language :: Python :: 3.7",
3533
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3 :: Only",
3635
"Topic :: Software Development :: Testing",
3736
],
3837
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,35,36,37,38}, linting, norewrite
2+
envlist = py{35,36,37,38}, linting, norewrite
33

44
[testenv]
55
passenv = USER USERNAME

0 commit comments

Comments
 (0)