Skip to content
Snippets Groups Projects
Commit 29eb92e6 authored by Claudiu Popa's avatar Claudiu Popa
Browse files

Stop advertising python 2 support

parent e686b736
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,8 +2,6 @@ language: python
 
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
Loading
Loading
Loading
Loading
@@ -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'
Loading
Loading
@@ -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'
 
Loading
Loading
@@ -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",
Loading
Loading
Loading
Loading
@@ -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(),
Loading
Loading
[tox]
envlist = py27, py34, py35, py36, py37, pypy, pylint
envlist = py34, py35, py36, py37, pypy, pylint
skip_missing_interpreters = true
 
[testenv:pylint]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment