-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add recipe for Gensim #3225
Add recipe for Gensim #3225
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
recipes/gensim/meta.yaml
Outdated
requires: | ||
- nose | ||
- testfixtures | ||
- unittest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unittest is a builtin
recipes/gensim/meta.yaml
Outdated
build: | ||
- python | ||
- setuptools | ||
- numpy >=1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since gensim uses cython, i would change this to
- numpy x.x
- cython
and change the numpy section in the run area too.
This will build you a version of gensim that is compatible with the numpy ABI for the versions that conda forge supports
So generally we don't run the unit test suite of a library as part of conda forge packaging. Instead we validate that things are importable and correctly linked. Running unit tests is typically done upstream in the project itself. |
recipes/gensim/meta.yaml
Outdated
- setuptools | ||
- numpy x.x | ||
- cython | ||
- scipy >=0.7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use numpy/scipy versions from develop
branch
recipes/gensim/meta.yaml
Outdated
run: | ||
- python | ||
- numpy x.x | ||
- cython |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cython is probably not needed as a runtime dependency
|
||
test: | ||
requires: | ||
- nose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its probably sufficient initially to have
imports:
- gensim
- gensim.foo
for all the standard importable modules
@mariusvniekerk @menshikh-iv The tests on the recipe have passed, but I remember @tmylk saying that the whole test suite must be run in the recipe. Should we go ahead with running the import tests? |
Ping @menshikh-iv |
If the gensim suite tests of the assembled conda recipe fail then the package shouldn't be released. |
Thanks @tmylk. I will be replacing the import tests with the full gensim tests. |
@menshikh-iv The test suite is not running due to the unittest2 import. Do we replace all the |
recipes/gensim/meta.yaml
Outdated
- python | ||
- setuptools | ||
- numpy >=1.11.3 | ||
- cython |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? I don't think cython
is a dependency of gensim.
recipes/gensim/meta.yaml
Outdated
license_file: COPYING | ||
license_family: LGPL | ||
summary: 'A library for topic modelling and document indexing' | ||
description: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the official tagline and description of gensim (see https://github.com/RaRe-Technologies/gensim).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor doc nitpicks.
recipes/gensim/meta.yaml
Outdated
license: LGPL 3.0 | ||
license_file: COPYING | ||
license_family: LGPL | ||
summary: 'Topic Modelling in Python' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagline = Topic Modelling for Humans
.
recipes/gensim/meta.yaml
Outdated
description: | | ||
Gensim is a Python library for topic modelling, document indexing | ||
and similarity retrieval with large corpora. | ||
Target audience is the natural language processing(NLP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before the opening bracket.
recipes/gensim/meta.yaml
Outdated
license_file: COPYING | ||
license_family: LGPL | ||
summary: 'Topic Modelling in Python' | ||
description: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The |
is some specific formatter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/gensim:
|
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@ocefpaf Is it possible to restart Appveyor builds for the recipe? The Python 2.7 build has failed due to a |
Done. But you can also do that by closing and opening the PR. |
@piskvorky The recipe is now ready for deployment as a feedstock. The recipe currently supports Linux and Windows 64-bit, since it might create problems for Windows 32-bit if they wish to run the Gensim for a larger corpus. I have skipped support for OSX for now since Travis times out everytime when we run the |
Thanks, but I don't have merge rights in this repo. This is for @menshikh-iv -- what is the merging / deployment process here? |
@piskvorky First, The PR will be merged by one of the reviewers from conda-forge organization(Filipe handles most of the merging stuff). Once the recipe is merged, The |
@ocefpaf @ericdill @jakirkham Is this ready to go? |
We are having some trouble in |
Ignoring MacOS looks suspicious, but we can resolve it later. |
@ocefpaf Is the recipe ready to merge? |
@ocefpaf The Gensim doesn't support Python 3.4. It only supports Python 2.7, 3.5 and 3.6 |
Don't worry about the pre-selector there. Conda-forge does not build Python 3.4. (I added it for reasons 😉) However, if py34 is not really support you need to add a skip statement. |
Incorrect. Gensim supports all versions |
Thanks @menshikh-iv. Good to know! |
My bad, I thought Gensim doesn't support Python 3.4 since there is no build matrix for py3.4 in Travis. Thanks for the info @menshikh-iv. |
Adds a new recipe for Gensim.
Ping @tmylk @menshikh-iv