diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d2c746c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,61 @@ +# This file was generated automatically from conda-smithy. To update this configuration, +# update the conda-forge.yml and/or the recipe/meta.yaml. + +language: generic + +os: osx +osx_image: xcode6.4 + +env: + matrix: + + - CONDA_PY=27 + - CONDA_PY=35 + - CONDA_PY=36 + global: + # The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml. + - secure: "ecN7i24QmsWbGKfWOmzAj56rvl5Hh298I3OOFeED99DxJKlpucgxgXMOC2rYDVU8bMRVGZZxLkN1sMyowyM9uaWzrL/N6pA27AvOImMWGMVy7MOYhWHsTK73NAhuIxMMByqtQiOs9gEiOpJaQwxOQSDynae4rSCvul1bTeOyOcbsdk2cT8mkEKfUxy6M50wA20TvW/Q88lEmnC0C1Pa0dysJ85G29jBuH8yh3p4KwtiEyBNfvffqeQuUo1qJWNr9YEXXi/Aq18+DDsR3vLcSHSXMuKUHQ/TE7gq2LAAWEYkEGtOGiQFNeoFujSdmZ5dom6N9uLo/0Ta75VCZoytVgJTADgeghinyBCTBgoXjy3C4e7k/DHaBGdS1ZD42s4MLOYeAU8nJbjTGIlMzdfLzO6KjkLGTk4TBQm7/sDJiSUlf5wq9SrTB3O1UIlwUM5sS5MUC+xg3Btmz/W0HvtzI66oQoFjoh3QQnbGJM1MqpYqcR8QJRofSNfFzW8WDPhEm3bn8AlbjyNY1v9C0zZgHTRuT1Put46u7T0O2W4p6/0U+dsfv+6Iq5VxeKO2ptZRRpBX95Kf3KwEFgHyFsk6BQArU9Ijo3Ud+39wVcD5y9P9iKVugvdoBtL3yl74royeaXZXVwmhKYTYRTBMxe4Ab1Oqdan469Mj5d2JmTnYiKF4=" + + +before_install: + # Fast finish the PR. + - | + (curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \ + python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1 + + # Remove homebrew. + - | + echo "" + echo "Removing homebrew from Travis CI to avoid conflicts." + curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew + chmod +x ~/uninstall_homebrew + ~/uninstall_homebrew -fq + rm ~/uninstall_homebrew + + +install: + # Install Miniconda. + - | + echo "" + echo "Installing a fresh version of Miniconda." + MINICONDA_URL="https://repo.continuum.io/miniconda" + MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh" + curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" + bash $MINICONDA_FILE -b + + # Configure conda. + - | + echo "" + echo "Configuring conda." + source /Users/travis/miniconda3/bin/activate root + conda config --remove channels defaults + conda config --add channels defaults + conda config --add channels conda-forge + conda config --set show_channel_urls true + conda install --yes --quiet conda-forge-build-setup + source run_conda_forge_build_setup + +script: + - conda build ./recipe + + - upload_or_check_non_existence ./recipe conda-forge --channel=main diff --git a/recipe/.meta.yaml.swp b/recipe/.meta.yaml.swp new file mode 100644 index 0000000..7dbf9bc Binary files /dev/null and b/recipe/.meta.yaml.swp differ diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 4d4d49f..2d85677 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -13,7 +13,7 @@ source: build: number: 0 - skip: true # [win32 or osx or py34] + skip: true # [win32 or py34] features: - vc9 # [win and py27] - vc10 # [win and py34] @@ -34,7 +34,8 @@ requirements: - scipy >=0.18.1 - six >=1.5.0 - smart_open >=1.2.1 - + - pytest + test: requires: - nose @@ -44,6 +45,7 @@ test: - pyemd - mock - boto3 + - pytest imports: - gensim - gensim.corpora @@ -59,9 +61,9 @@ test: files: - forge_test.sh commands: - - time bash ./forge_test.sh # [not win] + - time bash ./forge_test.sh # [linux] - nosetests --exe -v gensim # [win] - + - python -m py.test # [osx] about: home: http://github.com/RaRe-Technologies/gensim license: LGPL-3.0 @@ -69,9 +71,9 @@ about: license_family: LGPL summary: 'Topic Modelling for Humans' 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) + Gensim is a Python library for topic modelling, document indexing + and similarity retrieval with large corpora. + Target audience is the natural language processing (NLP) and information retrieval (IR) community. doc_url: http://radimrehurek.com/gensim/ dev_url: https://github.com/RaRe-Technologies/gensim