Gensim: Do test instructions still work?

Created on 9 Apr 2020  路  9Comments  路  Source: RaRe-Technologies/gensim

In our README, we tell users to run python setup.py test.

One user reported on our mailing list that this doesn't actually work.

We should fix the docs or the tests 鈥撀爓hichever is at fault here.

bug documentation impact LOW reach LOW testing

Most helpful comment

btw about original topic: python setup.py test no relevant for last years, should be tox -e py<version>-<os>, like tox -e py37-linux

All 9 comments

@mpenkov apparently Gensim in develop requires py3.5+ already:
https://github.com/RaRe-Technologies/gensim/blob/develop/setup.py#L23

That means we cannot work off develop for 3.8.3, because that must still support py2.7. Which branch should I use?

Worse: does 3.8.2 have the same problem too? I don't see any py2.7 wheels on PyPI:
https://github.com/RaRe-Technologies/gensim/blob/develop/setup.py#L23

I tracked the problem down to commit https://github.com/RaRe-Technologies/gensim/commit/e859c11f6f57bf3c883a718a9ab7067ac0c2d4cf (part of PR https://github.com/RaRe-Technologies/gensim/pull/2630, merged 6 months ago). It claims to remove native Python implementations of Cython extensions, but also silently drops support for Python2 (!).

@mpenkov I'm not sure how to proceed, so I'll pause work on 3.8.3. Silently dropping Python2 support in a minor bugfix release is terrible, we cannot do that.

3.8.2 seems thoroughly broken, let's retract that release / supercede it ASAP.

Created #2811 to deal with the Py2 issue.

@mpenkov I'm not sure how to proceed, so I'll pause work on 3.8.3.

@piskvorky We've successfully patched our develop HEAD to work on Py2 (https://github.com/RaRe-Technologies/gensim/pull/2812), so please proceed as previously discussed.

Great, will do. Thanks @mpenkov @menshikh-iv

We've successfully patched our develop HEAD

@mpenkov I don't see that in develop. Should I work off the release-3.8.3 branch?

Because the changes for Py2.7 are essentially only 3.8.3, we won't be merging them into develop (there is no point, because we'd be removing them as soon as we ditch Py2.7).

Please work off develop. We will merge that into 3.8.3 before the actual release (as opposed to the other way around).

btw about original topic: python setup.py test no relevant for last years, should be tox -e py<version>-<os>, like tox -e py37-linux

Was this page helpful?
0 / 5 - 0 ratings

Related issues

menshikh-iv picture menshikh-iv  路  3Comments

mmunozm picture mmunozm  路  3Comments

hhchen1105 picture hhchen1105  路  4Comments

Laubeee picture Laubeee  路  3Comments

franciscojavierarceo picture franciscojavierarceo  路  3Comments