Skip to content

Commit

Permalink
Prepare gensim v3.8.2 to pin smart_open for Py2.7 compatibility (#2787)
Browse files Browse the repository at this point in the history
* pin version of smart-open to py2 compatible

* add a comment

Co-Authored-By: Radim Řehůřek <me@radimrehurek.com>

* make pin conditional (py27 only)

* prepare version 3.8.2

* add deprecations to README

* get rid rackcdn, bump scipy to 1.0.0

* bump scipy to 1.0.0 in setup.py

Co-authored-by: Yury Brukau <brukau@ebu.ch>
Co-authored-by: Radim Řehůřek <me@radimrehurek.com>
Co-authored-by: Michael Penkov <misha.penkov@gmail.com>
Co-authored-by: Ivan Menshikh <menshikh.iv@gmail.com>
  • Loading branch information
5 people committed Apr 28, 2020
1 parent afaf76f commit 0e7c2aa
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@ Changes

## :warning: 3.8.x will be the last gensim version to support Py2.7. Starting with 4.0.0, gensim will only support Py3.5 and above

## 3.8.2, 2020-04-10

### :red_circle: Bug fixes

* Pin `smart_open` version for compatibility with Py2.7

### :warning: Deprecations (will be removed in the next major release)

* Remove
- `gensim.models.FastText.load_fasttext_format`: use load_facebook_vectors to load embeddings only (faster, less CPU/memory usage, does not support training continuation) and load_facebook_model to load full model (slower, more CPU/memory intensive, supports training continuation)
- `gensim.models.wrappers.fasttext` (obsoleted by the new native `gensim.models.fasttext` implementation)
- `gensim.examples`
- `gensim.nosy`
- `gensim.scripts.word2vec_standalone`
- `gensim.scripts.make_wiki_lemma`
- `gensim.scripts.make_wiki_online`
- `gensim.scripts.make_wiki_online_lemma`
- `gensim.scripts.make_wiki_online_nodebug`
- `gensim.scripts.make_wiki` (all of these obsoleted by the new native `gensim.scripts.segment_wiki` implementation)
- "deprecated" functions and attributes

* Move
- `gensim.scripts.make_wikicorpus` ➡ `gensim.scripts.make_wiki.py`
- `gensim.summarization` ➡ `gensim.models.summarization`
- `gensim.topic_coherence` ➡ `gensim.models._coherence`
- `gensim.utils` ➡ `gensim.utils.utils` (old imports will continue to work)
- `gensim.parsing.*` ➡ `gensim.utils.text_utils`

## 3.8.1, 2019-09-23

### :red_circle: Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
# The short X.Y version.
version = '3.8'
# The full version, including alpha/beta/rc tags.
release = '3.8.1'
release = '3.8.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,24 @@ def run(self):
install_requires.append(CYTHON_STR)
setup_requires.append(CYTHON_STR)

install_requires = [
NUMPY_STR,
'scipy >= 1.0.0',
'six >= 1.5.0',
]

#
# smart_open >= 1.11 is py3+ only.
# TODO: Remove the pin once we drop py2.7 from gensim too.
#
if PY2:
install_requires.append('smart_open >= 1.8.1, < 1.11')
else:
install_requires.append('smart_open >= 1.8.1')

setup(
name='gensim',
version='3.8.1',
version='3.8.2',
description='Python framework for fast Vector Space Modelling',
long_description=LONG_DESCRIPTION,

Expand Down

0 comments on commit 0e7c2aa

Please sign in to comment.