Skip to content

Commit 1e71500

Browse files
python: drop Python 2 support
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since it would be a waste to ignore several Python 3.x features in master discovery implementation, we decided to drop Python 2 support here. Python 2 workaround cleanup activities are expected to be solved as part of #212 solution. 1. https://www.python.org/doc/sunset-python-2/ Part of #196
1 parent 155b1d7 commit 1e71500

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Diff for: .github/workflows/reusable_testing.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
python:
20-
- '2.7'
2120
- '3.4'
2221
- '3.5'
2322
- '3.6'

Diff for: .github/workflows/testing.yml

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- '2.9'
2626
- '2.x-latest'
2727
python:
28-
- '2.7'
2928
- '3.5'
3029
- '3.6'
3130
- '3.7'
@@ -114,7 +113,6 @@ jobs:
114113
- '2.9'
115114
- '2.x-latest'
116115
python:
117-
- '2.7'
118116
- '3.4'
119117
- '3.5'
120118
- '3.6'

Diff for: appveyor.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
environment:
22
matrix:
3-
- PYTHON: "C:\\Python27"
4-
- PYTHON: "C:\\Python27-x64"
53
- PYTHON: "C:\\Python34"
64
- PYTHON: "C:\\Python34-x64"
75
- PYTHON: "C:\\Python35"

Diff for: tarantool/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- coding: utf-8 -*-
22
# pylint: disable=C0301,W0105,W0401,W0614
33

4+
import sys
5+
6+
assert sys.version_info.major > 2, 'Connector supports Python 3 only'
7+
48
from tarantool.connection import Connection
59
from tarantool.mesh_connection import MeshConnection
610
from tarantool.const import (

0 commit comments

Comments
 (0)