From 6ba569ab3c639c322fe850dc5a58bde36e36efd7 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Sat, 10 Oct 2015 18:49:20 +0100 Subject: [PATCH] [pypi] upload to pypi automatically --- .travis.yml | 69 +++++++++++++++++++---------------------------------- setup.cfg | 7 ++++++ setup.py | 2 +- 3 files changed, 32 insertions(+), 46 deletions(-) diff --git a/.travis.yml b/.travis.yml index 848ced3a..faa73810 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,13 @@ sudo: false os: - - osx - - linux - -#language: python - -#addons: -# apt: -# packages: -# - inkscape -# - libav-tools -# - gdb -# - mencoder -# - dvipng -# - libpng -# - gfortran -# - libatlas-dev -# - libatlas-base-dev -# - liblapack-dev +- osx +- linux cache: directories: - - $HOME/download/ - - $HOME/install/ + - "$HOME/download/" + - "$HOME/install/" env: - PYTHON_VERSION=2.7 @@ -31,41 +15,36 @@ env: before_install: - export CONDA_CACHED=1 - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - export OS=Linux; - elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - export OS=MacOSX; - else - echo "OS not supported yet"; - exit 1; - fi; - - if [[ $PYTHON_VERSION == "2.7" ]]; then - export MINICONDA=Miniconda; - elif [[ $PYTHON_VERSION == 3* ]]; then - export MINICONDA=Miniconda3; - else - echo "Could not find python version"; - exit 1; - fi; + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OS=Linux; elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OS=MacOSX; else echo "OS not supported yet"; exit 1; fi; + - if [[ $PYTHON_VERSION == "2.7" ]]; + then export MINICONDA=Miniconda; + elif [[ $PYTHON_VERSION == 3* ]]; + then export MINICONDA=Miniconda3; + else echo "Could not find python version";exit 1; fi; - if [ ! -d $HOME/download/ ]; then mkdir $HOME/download/; fi; - if [ ! -d $HOME/install/ ]; then mkdir $HOME/install/; fi; - export MINICONDA_FILE=$MINICONDA-latest-$OS-x86_64-$PYTHON_VERSION - export MINCONDA_CACHE_FILE=$HOME/download/$MINICONDA_FILE.sh - export MINICONDA_INSTALL=$HOME/install/$MINICONDA_FILE - - if [ ! -f $MINCONDA_CACHE_FILE ]; then - export CONDA_CACHED=0; - wget http://repo.continuum.io/miniconda/$MINICONDA-latest-$OS-x86_64.sh -O $MINCONDA_CACHE_FILE; - bash $MINCONDA_CACHE_FILE -b -p $MINICONDA_INSTALL; - fi; + - if [ ! -f $MINCONDA_CACHE_FILE ]; then export CONDA_CACHED=0; wget http://repo.continuum.io/miniconda/$MINICONDA-latest-$OS-x86_64.sh -O $MINCONDA_CACHE_FILE; bash $MINCONDA_CACHE_FILE -b -p $MINICONDA_INSTALL; fi; - export PATH="$MINICONDA_INSTALL/bin:$PATH"; - + install: - - conda install --yes python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six matplotlib pillow; + - conda install --yes python=$PYTHON_VERSION numpy=1.9 scipy=0.16 nose pip six matplotlib; - pip install codecov - python setup.py develop - + script: - coverage run travis_tests.py after_success: - - codecov \ No newline at end of file + - codecov + +deploy: + provider: pypi + user: maxz + password: + secure: "vMEOlP7DQhFJ7hQAKtKC5hrJXFl5BkUt4nXdosWWiw//Kg8E+PPLg88XPI2gqIosir9wwgtbSBBbbwCxkM6uxRNMpoNR8Ixyv9fmSXp4rLl7bbBY768W7IRXKIBjpuEy2brQjoT+CwDDSzUkckHvuUjJDNRvUv8ab4P/qYO1LG4=" + on: + plot_density + distributions: "bdist_wheel sdist sphinx_build sphinx_upload" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 7fc74878..d63e9b71 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,3 +8,10 @@ commit = True [bdist_wheel] universal = 1 +[build_sphinx] +source-dir = doc/source +build-dir = doc/build +all_files = 1 + +[upload_sphinx] +upload-dir = doc/build/html \ No newline at end of file diff --git a/setup.py b/setup.py index b1ceb425..0e08f8bc 100644 --- a/setup.py +++ b/setup.py @@ -123,8 +123,8 @@ setup(name = 'GPy', "GPy.util", "GPy.plotting", "GPy.plotting.gpy_plot", - "GPy.plotting.matplot_dep.controllers", "GPy.plotting.matplot_dep", + "GPy.plotting.matplot_dep.controllers", "GPy.plotting.plotly_dep", ], package_dir={'GPy': 'GPy'},