Skip to content

Commit fdc0195

Browse files
committed
Merge branch 'release-3.8.0'
2 parents 7cddd8e + 2247450 commit fdc0195

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

CHANGELOG.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,35 @@ Changes
33

44
## 3.8.0, 2019-07-08
55

6+
## :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
7+
68
### :star2: New Features
79

8-
* back gensim.downloader.load_info function by a cache (__[mpenkov](https://github.com/mpenkov)__, [#2545](https://github.com/RaRe-Technologies/gensim/pull/2545))
9-
* Add build_vocab to poincare model (__[koiizukag](https://github.com/koiizukag)__, [#2505](https://github.com/RaRe-Technologies/gensim/pull/2505))
10-
* Make most_similar accept topn of any integer type (__[Witiko](https://github.com/Witiko)__, [#2497](https://github.com/RaRe-Technologies/gensim/pull/2497))
11-
* generator support in bm25 (__[saraswatmks](https://github.com/saraswatmks)__, [#2479](https://github.com/RaRe-Technologies/gensim/pull/2479))
12-
* make downloader subdirectory configurable, fix #2416 (__[mpenkov](https://github.com/mpenkov)__, [#2456](https://github.com/RaRe-Technologies/gensim/pull/2456))
10+
* Enable online training of Poincare models (__[koiizukag](https://github.com/koiizukag)__, [#2505](https://github.com/RaRe-Technologies/gensim/pull/2505))
11+
* Make BM25 more scalable by adding support for generator inputs (__[saraswatmks](https://github.com/saraswatmks)__, [#2479](https://github.com/RaRe-Technologies/gensim/pull/2479))
12+
* Allow the Gensim dataset / pre-trained model downloader `gensim.downloader` to run offline, by introducing a local file cache (__[mpenkov](https://github.com/mpenkov)__, [#2545](https://github.com/RaRe-Technologies/gensim/pull/2545))
13+
* Make the `gensim.downloader` target directory configurable (__[mpenkov](https://github.com/mpenkov)__, [#2456](https://github.com/RaRe-Technologies/gensim/pull/2456))
14+
* Add `nmslib` indexer (__[masa3141](https://github.com/masa3141)__, [#2417](https://github.com/RaRe-Technologies/gensim/pull/2417))
1315

1416
### :red_circle: Bug fixes
1517

16-
* fix python version check (__[charsyam](https://github.com/charsyam)__, [#2547](https://github.com/RaRe-Technologies/gensim/pull/2547))
17-
* Fix appveyor issues with Win and Py2 (__[mpenkov](https://github.com/mpenkov)__, [#2546](https://github.com/RaRe-Technologies/gensim/pull/2546))
18-
* Fix smart_open deprecation warning globally (__[itayB](https://github.com/itayB)__, [#2530](https://github.com/RaRe-Technologies/gensim/pull/2530))
19-
* Typo fix (__[Guitaricet](https://github.com/Guitaricet)__, [#2518](https://github.com/RaRe-Technologies/gensim/pull/2518))
20-
* Correct "Market Matrix" to "Matrix Market". (__[Shooter23](https://github.com/Shooter23)__, [#2513](https://github.com/RaRe-Technologies/gensim/pull/2513))
21-
* fix CHANGELOG.md (__[mpenkov](https://github.com/mpenkov)__, [#2482](https://github.com/RaRe-Technologies/gensim/pull/2482))
18+
* Fix `smart_open` deprecation warning globally (__[itayB](https://github.com/itayB)__, [#2530](https://github.com/RaRe-Technologies/gensim/pull/2530))
19+
* Fix AppVeyor issues with Windows and Py2 (__[mpenkov](https://github.com/mpenkov)__, [#2546](https://github.com/RaRe-Technologies/gensim/pull/2546))
20+
* Fix `topn=0` versus `topn=None` bug in `most_similar`, accept `topn` of any integer type (__[Witiko](https://github.com/Witiko)__, [#2497](https://github.com/RaRe-Technologies/gensim/pull/2497))
21+
* Fix Python version check (__[charsyam](https://github.com/charsyam)__, [#2547](https://github.com/RaRe-Technologies/gensim/pull/2547))
22+
* Fix typo in FastText documentation (__[Guitaricet](https://github.com/Guitaricet)__, [#2518](https://github.com/RaRe-Technologies/gensim/pull/2518))
23+
* Fix "Market Matrix" to "Matrix Market" typo. (__[Shooter23](https://github.com/Shooter23)__, [#2513](https://github.com/RaRe-Technologies/gensim/pull/2513))
24+
* Fix auto-generated hyperlinks in `CHANGELOG.md` (__[mpenkov](https://github.com/mpenkov)__, [#2482](https://github.com/RaRe-Technologies/gensim/pull/2482))
2225

2326
### :books: Tutorial and doc improvements
2427

25-
* Simplify Support section in README (__[piskvorky](https://github.com/piskvorky)__, [#2542](https://github.com/RaRe-Technologies/gensim/pull/2542))
26-
* Generate documentation for the gensim.similarities.termsim module (__[Witiko](https://github.com/Witiko)__, [#2485](https://github.com/RaRe-Technologies/gensim/pull/2485))
28+
* Generate documentation for the `gensim.similarities.termsim` module (__[Witiko](https://github.com/Witiko)__, [#2485](https://github.com/RaRe-Technologies/gensim/pull/2485))
29+
* Simplify the `Support` section in README (__[piskvorky](https://github.com/piskvorky)__, [#2542](https://github.com/RaRe-Technologies/gensim/pull/2542))
2730

2831
### :+1: Improvements
2932

30-
* pin sklearn version for Py2 (__[mpenkov](https://github.com/mpenkov)__, [#2510](https://github.com/RaRe-Technologies/gensim/pull/2510))
33+
* Pin sklearn version for Py2, because sklearn dropped py2 support (__[mpenkov](https://github.com/mpenkov)__, [#2510](https://github.com/RaRe-Technologies/gensim/pull/2510))
34+
3135

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

gensim/test/test_similarities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def __init__(self, fn):
723723
self.fn = fn
724724

725725
def __iter__(self):
726-
with smart_open(self.fn, 'r', encoding="latin_1") as infile:
726+
with utils.open(self.fn, 'r', encoding="latin_1") as infile:
727727
for line in infile:
728728
yield line.lower().strip().split()
729729

release/bump_version.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ def bump(path, pattern, repl, check=True):
1010

1111
new_contents = pattern.sub(repl, contents)
1212

13-
if check:
14-
assert new_contents != contents
13+
if check and new_contents == contents:
14+
print('*' * 79)
15+
print('WARNING: contents of %r unchanged after version bump' % path)
16+
print('*' * 79)
1517

1618
with open(path, 'w') as fout:
1719
fout.write(new_contents)

release/prepare.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RELEASE=$1
1616
export RELEASE="$RELEASE"
1717

1818
script_dir="$(dirname "${BASH_SOURCE[0]}")"
19-
root="$script_dir/.."
19+
root=$(cd "$script_dir/.." && pwd)
2020
cd "$script_dir"
2121

2222
git fetch upstream
@@ -39,14 +39,19 @@ grep "$RELEASE" "$root/setup.py"
3939
grep "$RELEASE" "$root/docs/src/conf.py"
4040
grep "$RELEASE" "$root/gensim/__init__.py"
4141

42+
set +e
4243
git diff | cat
4344
git commit -a -m "bumped version to $RELEASE"
45+
set -e
4446

4547
echo "Now update CHANGELOG.md and include the PRs in this release."
4648
read -p "Press Enter to continue. An editor window will open."
4749
python update_changelog.py "$previous_version" "$RELEASE"
4850
$EDITOR "$root/CHANGELOG.md"
51+
52+
set +e
4953
git commit "$root/CHANGELOG.md" -m "updated CHANGELOG.md for version $RELEASE"
54+
set -e
5055

5156
bash cython.sh "$RELEASE"
5257

0 commit comments

Comments
 (0)