Skip to content

Commit cc83531

Browse files
hugovkBoboTiG
authored andcommitted
Drop support for legacy Python 2.7
1 parent e432098 commit cc83531

File tree

6 files changed

+13
-38
lines changed

6 files changed

+13
-38
lines changed

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
language: python
22
dist: xenial
3-
sudo: true
43

54
matrix:
65
include:
7-
- os: linux
8-
python: "2.7"
9-
env:
10-
- TOXENV=py27
116
- os: linux
127
python: "3.5"
138
env: TOXENV=py35
@@ -20,11 +15,6 @@ matrix:
2015
- os: linux
2116
python: "pypy3.5"
2217
env: TOXENV=pypy3
23-
- os: osx
24-
language: generic
25-
env:
26-
- PYTHON_VERSION=2.7
27-
- TOXENV=py27
2818
- os: osx
2919
language: generic
3020
env:

.travis/install.sh

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
#!/bin/bash
22
# Taken largely from https://stackoverflow.com/q/45257534
3-
if [[ "$PYTHON_VERSION" == "2.7" ]]; then
4-
which virtualenv
5-
# Create and activate a virtualenv for conda
6-
virtualenv -p python condavenv
7-
source condavenv/bin/activate
8-
# Grab Miniconda 2
9-
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh
10-
else
11-
# Install or upgrade to Python 3
12-
brew update 1>/dev/null
13-
brew upgrade python
14-
# Create and activate a virtualenv for conda
15-
virtualenv -p python3 condavenv
16-
source condavenv/bin/activate
17-
# Grab Miniconda 3
18-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
19-
fi
3+
# Install or upgrade to Python 3
4+
brew update 1>/dev/null
5+
brew upgrade python
6+
# Create and activate a virtualenv for conda
7+
virtualenv -p python3 condavenv
8+
source condavenv/bin/activate
9+
# Grab Miniconda 3
10+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
2011

2112
# Install our version of miniconda
2213
bash miniconda.sh -b -p $HOME/miniconda

appveyor.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ cache:
66
environment:
77
fast_finish: true
88
matrix:
9-
- python: py27
10-
tox_env: py27
11-
python_path: c:\python27
12-
- python: py27-x64
13-
tox_env: py27
14-
python_path: c:\python27-x64
159
- python: py35
1610
tox_env: py35
1711
python_path: c:\python35

docs/source/support.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Support
55
Feel free to try MSS on a system we had not tested, and let us know by creating an `issue <https://github.com/BoboTiG/python-mss/issues>`_.
66

77
- OS: GNU/Linux, macOS and Windows
8-
- Python: 2.7, 3.5, 3.6 and **3.7**
8+
- Python: 3.5, 3.6 and **3.7**
99

1010

1111
Future
@@ -25,6 +25,7 @@ Abandoned
2525
=========
2626

2727
- Python 2.6 (2016-10-08)
28+
- Python 2.7 (2019-XX-XX)
2829
- Python 3.0 (2016-10-08)
2930
- Python 3.1 (2016-10-08)
3031
- Python 3.2 (2016-10-08)

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@ classifiers =
1515
Development Status :: 5 - Production/Stable
1616
License :: OSI Approved :: MIT License
1717
Programming Language :: Python
18-
Programming Language :: Python :: 2
19-
Programming Language :: Python :: 2.7
2018
Programming Language :: Python :: 3
2119
Programming Language :: Python :: 3.5
2220
Programming Language :: Python :: 3.6
2321
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3 :: Only
2423
Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
2524
Topic :: Software Development :: Libraries
2625

2726
[options]
2827
zip-safe = False
2928
include_package_data = True
3029
packages = mss
31-
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
30+
python_requires = >=3.5
3231

3332
[options.entry_points]
3433
console_scripts =

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{37,36,35,27,py3,py},docs
2+
envlist = py{37,36,35,py3},docs
33
skip_missing_interpreters = True
44

55
[testenv]

0 commit comments

Comments
 (0)