diff --git a/.travis.yml b/.travis.yml index acc69c78ee..663f506869 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,7 @@ sudo: false dist: trusty language: python python: - - "2.6" - "2.7" - - "3.3" - - "3.4" - "3.5" - "3.6" before_install: diff --git a/setup.py b/setup.py index 4ba13a56f1..d7b5f232c5 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,8 @@ import warnings import io -if sys.version_info[:2] < (2, 6): - raise Exception('This version of gensim needs Python 2.6 or later.') +if sys.version_info[:2] < (2, 7) or (sys.version_info[:1] == 3 and sys.version_info[:2] < (3, 5)): + raise Exception('This version of gensim needs Python 2.7, 3.5 or later.') import ez_setup ez_setup.use_setuptools() @@ -113,9 +113,6 @@ def finalize_options(self): cmdclass.update(vars(wheelhouse_uploader.cmd)) -python_2_6_backports = '' -if sys.version_info[:2] < (2, 7): - python_2_6_backports = ['argparse'] LONG_DESCRIPTION = u""" ============================================== @@ -267,11 +264,9 @@ def finalize_options(self): 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', 'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Linguistic', @@ -286,7 +281,6 @@ def finalize_options(self): 'scipy >= 0.7.0', 'six >= 1.5.0', 'smart_open >= 1.2.1', - python_2_6_backports, ], extras_require={ 'distributed': ['Pyro4 >= 4.27'],