summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-02-21 11:50:55 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2018-02-21 11:50:55 +0100
commit29eb92e6bb8231f8a5b4171383684b26fcc10a6c (patch)
tree08ff17aeb4e9b62c02abf747714e97fc62b06b71
parente686b736eb00c695d55709c612bfd64ed696388e (diff)
downloadastroid-git-29eb92e6bb8231f8a5b4171383684b26fcc10a6c.tar.gz
Stop advertising python 2 support
-rw-r--r--.travis.yml2
-rw-r--r--astroid/__pkginfo__.py29
-rw-r--r--setup.py2
-rw-r--r--tox.ini2
4 files changed, 2 insertions, 33 deletions
diff --git a/.travis.yml b/.travis.yml
index 63951923..106fdd4f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,6 @@ language: python
matrix:
include:
- - python: 2.7
- env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index b2f0ab57..55550684 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -7,11 +7,6 @@
"""astroid packaging information"""
-from sys import version_info as py_version
-
-from pkg_resources import parse_version
-from setuptools import __version__ as setuptools_version
-
distname = 'astroid'
modname = 'astroid'
@@ -22,28 +17,6 @@ numversion = tuple(map(int, version.split('.')))
extras_require = {}
install_requires = ['lazy_object_proxy', 'six', 'wrapt']
-
-def has_environment_marker_range_operators_support():
- """Code extracted from 'pytest/setup.py'
- https://github.com/pytest-dev/pytest/blob/7538680c/setup.py#L31
-
- The first known release to support environment marker with range operators
- it is 17.1, see: https://setuptools.readthedocs.io/en/latest/history.html#id113
- """
- return parse_version(setuptools_version) >= parse_version('17.1')
-
-
-if has_environment_marker_range_operators_support():
- extras_require[':python_version<"3.4"'] = ['enum34>=1.1.3',
- 'singledispatch',
- 'backports.functools_lru_cache']
-else:
- if py_version < (3, 4):
- install_requires.extend(['enum34',
- 'singledispatch',
- 'backports.functools_lru_cache'])
-
-
# pylint: disable=redefined-builtin; why license is a builtin anyway?
license = 'LGPL'
@@ -57,8 +30,6 @@ description = "A abstract syntax tree for Python with inference support."
classifiers = ["Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
diff --git a/setup.py b/setup.py
index d875fb9d..4854cf93 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ def install():
author_email = author_email,
url = web,
include_package_data = True,
- python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
+ python_requires='>=3.4.*',
install_requires = install_requires,
extras_require=extras_require,
packages = find_packages(),
diff --git a/tox.ini b/tox.ini
index 6a0142b5..b51e7765 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27, py34, py35, py36, py37, pypy, pylint
+envlist = py34, py35, py36, py37, pypy, pylint
skip_missing_interpreters = true
[testenv:pylint]