Skip to content

Commit 1afaacc

Browse files
committed
Merge branch 'release-3.3.0'
2 parents 6dd8ae7 + 37c0633 commit 1afaacc

File tree

119 files changed

+32243
-113385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+32243
-113385
lines changed

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:2.7
6+
7+
working_directory: ~/gensim
8+
9+
steps:
10+
- checkout
11+
12+
- restore_cache:
13+
key: pip-cache
14+
15+
- run:
16+
name: Apt install (for latex render)
17+
command: |
18+
sudo apt-get -yq update
19+
sudo apt-get -yq remove texlive-binaries --purge
20+
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk
21+
22+
- run:
23+
name: Basic installation (tox)
24+
command: |
25+
python -m virtualenv venv
26+
source venv/bin/activate
27+
pip install tox
28+
29+
- run:
30+
name: Build documentation
31+
command: |
32+
source venv/bin/activate
33+
tox -e docs -vv
34+
35+
- store_artifacts:
36+
path: docs/src/_build
37+
destination: documentation
38+
39+
- save_cache:
40+
key: pip-cache
41+
paths:
42+
- "~/.cache/pip"
43+
- "~/.ccache"
44+
- "~/.pip-cache"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ data
7272
*_out.txt
7373
*.html
7474
*.inv
75-
*.js
75+
*.js
76+
docs/_images/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ language: python
1313
matrix:
1414
include:
1515
- python: '2.7'
16-
env: TOXENV="flake8, docs"
16+
env: TOXENV="flake8"
1717

1818
- python: '2.7'
1919
env: TOXENV="py27-linux"

CHANGELOG.md

Lines changed: 148 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
Please see [contribution-guide.org](http://www.contribution-guide.org/) for steps we expect from contributors before submitting an issue or bug report. Be as concrete as possible, include relevant logs, package versions etc.
1+
# How to submit an issue?
22

3-
Please check the [Gensim FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) page before posting.
3+
First, please see [contribution-guide.org](http://www.contribution-guide.org/) for the steps we expect from contributors before submitting an issue or bug report. Be as concrete as possible, include relevant logs, package versions etc.
44

5-
**The proper place for open-ended questions is the [gensim mailing list](https://groups.google.com/forum/#!forum/gensim).** Github is not the right place for research discussions or feature requests.
5+
Also, please check the [Gensim FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) page before posting.
66

7-
For developers: see our [Developer Page](https://github.com/piskvorky/gensim/wiki/Developer-page#code-style) for details on code style, testing and similar.
7+
**The proper place for open-ended questions is the [Gensim mailing list](https://groups.google.com/forum/#!forum/gensim).** Github is not the right place for research discussions or feature requests.
88

9-
Thanks!
9+
# How to add a new feature or create a pull request?
10+
11+
1. <a href="https://github.com/RaRe-Technologies/gensim/fork">Fork the Gensim repository</a>
12+
2. Clone your fork: `git clone https://github.com/<YOUR_GITHUB_USERNAME>/gensim.git`
13+
3. Create a new branch based on `develop`: `git checkout -b my-feature develop`
14+
4. Setup your Python enviroment
15+
- Create a new [virtual environment](https://virtualenv.pypa.io/en/stable/): `pip install virtualenv; virtualenv gensim_env; source gensim_env/bin/activate`
16+
- Install Gensim and its test dependencies in [editable mode](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs):
17+
- For linux: `pip install -e .[test]`
18+
- For windows: `pip install -e .[test-win]`
19+
5. Implement your changes
20+
6. Check that everything's OK in your branch:
21+
- Check it for PEP8: `tox -e flake8`
22+
- Build its documentation (works only for MacOS/Linux): `tox -e docs` (documentation stored in `docs/src/_build`)
23+
- Run unit tests: `tox -e py{version}-{os}`, for example `tox -e py27-linux` or `tox -e py36-win` where
24+
- `{version}` is one of `27`, `35`, `36`
25+
- `{os}` is either `win` or `linux`
26+
7. Add files, commit and push: `git add ... ; git commit -m "my commit message"; git push origin my-feature`
27+
8. [Create a PR](https://help.github.com/articles/creating-a-pull-request/) on Github. Write a **clear description** for your PR, including all the context and relevant information, such as:
28+
- The issue that you fixed, e.g. `Fixes #123`
29+
- Motivation: why did you create this PR? What functionality did you set out to improve? What was the problem + an overview of how you fixed it? Whom does it affect and how should people use it?
30+
- Any other useful information: links to other related Github or mailing list issues and discussions, benchmark graphs, academic papers…
31+
32+
P.S. for developers: see our [Developer Page](https://github.com/piskvorky/gensim/wiki/Developer-page#code-style) for details on the Gensim code style, CI, testing and similar.
33+
34+
**Thanks and let's improve the open source world together!**

0 commit comments

Comments
 (0)