Skip to content

Commit

Permalink
Remove support for Python 2.6, 3.3 and 3.4 (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmylk authored Feb 14, 2017
1 parent 923c656 commit 3078dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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"""
==============================================
Expand Down Expand Up @@ -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',
Expand All @@ -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'],
Expand Down

0 comments on commit 3078dde

Please sign in to comment.