From d86a6f4b891552ffbcf654843009193064ce2600 Mon Sep 17 00:00:00 2001 From: Menshikh Ivan Date: Mon, 27 Nov 2017 10:40:50 +0500 Subject: [PATCH] Update tox.ini, setup.cfg, README.md (#1741) * Changed wheels container * add testpypi to tox + comments * update maillist badge --- README.md | 2 +- setup.cfg | 8 ++------ tox.ini | 17 ++++++++++++++++- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5c549a1d6..af53391cc3 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ gensim – Topic Modelling in Python [![GitHub release](https://img.shields.io/github/release/rare-technologies/gensim.svg?maxAge=3600)](https://github.com/RaRe-Technologies/gensim/releases) [![Wheel](https://img.shields.io/pypi/wheel/gensim.svg)](https://pypi.python.org/pypi/gensim) [![DOI](https://zenodo.org/badge/DOI/10.13140/2.1.2393.1847.svg)](https://doi.org/10.13140/2.1.2393.1847) -[![Mailing List](https://img.shields.io/badge/-Mailing%20List-lightgrey.svg)](https://groups.google.com/forum/#!forum/gensim) +[![Mailing List](https://img.shields.io/badge/-Mailing%20List-green.svg)](https://groups.google.com/forum/#!forum/gensim) [![Gitter](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-09a3d5.svg)](https://gitter.im/RaRe-Technologies/gensim) [![Follow](https://img.shields.io/twitter/follow/spacy_io.svg?style=social&label=Follow)](https://twitter.com/gensim_py) diff --git a/setup.cfg b/setup.cfg index b5f8a99afa..282192a170 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,4 @@ [wheelhouse_uploader] artifact_indexes= - # OSX wheels built by travis (only for specific tags): - # https://github.com/MacPython/scikit-learn-wheels - http://wheels.scipy.org - # Windows wheels buit by: - # https://ci.appveyor.com/project/piskvorky/gensim - http://17a25141cb7f75c18ee4-676a79255544e7711e0dd8bccdcdd1cb.r23.cf2.rackcdn.com + # all wheels builded in gensim-wheels repo: https://github.com/MacPython/gensim-wheels + http://b153eb958f4da6029aca-3f9dff7fe564350f10153d8c7bfc5ab6.r54.cf2.rackcdn.com/index.html diff --git a/tox.ini b/tox.ini index 6cce66eee3..229692fbee 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = {py27,py35,py36}-{win,linux}, flake8, docs, docs-upload, download-wheels, upload-wheels +envlist = {py27,py35,py36}-{win,linux}, flake8, docs, docs-upload, download-wheels, upload-wheels, test-pypi skipsdist = True platform = linux: linux win: win64 @@ -18,7 +18,10 @@ addopts = -rfxEXs --durations=20 --showlocals --rerun 3 [testenv] recreate = True + +; rackcdn host only for windows wheels (numpy, scipy) install_command = pip install --timeout=60 --trusted-host 28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com --find-links http://28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com/ {opts} numpy==1.11.3 scipy==0.18.1 {packages} + deps = linux: .[test] win: .[test-win] @@ -76,3 +79,15 @@ commands = deps = wheelhouse_uploader commands = python setup.py register sdist upload + + +[testenv:test-pypi] +deps = wheelhouse_uploader + twine +whitelist_externals = rm + +commands = + rm -rf dist/ + python setup.py sdist + twine upload --repository-url https://test.pypi.org/legacy/ dist/* + ; Go to https://testpypi.python.org/pypi?name=gensim&:action=display and check result