[pypi] upload to pypi automatically

This commit is contained in:
mzwiessele 2015-10-10 18:49:20 +01:00
parent d548858b42
commit 6ba569ab3c
3 changed files with 32 additions and 46 deletions

View file

@ -1,29 +1,13 @@
sudo: false sudo: false
os: os:
- osx - osx
- linux - linux
#language: python
#addons:
# apt:
# packages:
# - inkscape
# - libav-tools
# - gdb
# - mencoder
# - dvipng
# - libpng
# - gfortran
# - libatlas-dev
# - libatlas-base-dev
# - liblapack-dev
cache: cache:
directories: directories:
- $HOME/download/ - "$HOME/download/"
- $HOME/install/ - "$HOME/install/"
env: env:
- PYTHON_VERSION=2.7 - PYTHON_VERSION=2.7
@ -31,41 +15,36 @@ env:
before_install: before_install:
- export CONDA_CACHED=1 - export CONDA_CACHED=1
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - 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;
export OS=Linux; - if [[ $PYTHON_VERSION == "2.7" ]];
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then then export MINICONDA=Miniconda;
export OS=MacOSX; elif [[ $PYTHON_VERSION == 3* ]];
else then export MINICONDA=Miniconda3;
echo "OS not supported yet"; else echo "Could not find python version";exit 1; fi;
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/download/ ]; then mkdir $HOME/download/; fi;
- if [ ! -d $HOME/install/ ]; then mkdir $HOME/install/; fi; - if [ ! -d $HOME/install/ ]; then mkdir $HOME/install/; fi;
- export MINICONDA_FILE=$MINICONDA-latest-$OS-x86_64-$PYTHON_VERSION - export MINICONDA_FILE=$MINICONDA-latest-$OS-x86_64-$PYTHON_VERSION
- export MINCONDA_CACHE_FILE=$HOME/download/$MINICONDA_FILE.sh - export MINCONDA_CACHE_FILE=$HOME/download/$MINICONDA_FILE.sh
- export MINICONDA_INSTALL=$HOME/install/$MINICONDA_FILE - export MINICONDA_INSTALL=$HOME/install/$MINICONDA_FILE
- if [ ! -f $MINCONDA_CACHE_FILE ]; then - 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 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"; - export PATH="$MINICONDA_INSTALL/bin:$PATH";
install: 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 - pip install codecov
- python setup.py develop - python setup.py develop
script: script:
- coverage run travis_tests.py - coverage run travis_tests.py
after_success: after_success:
- codecov - codecov
deploy:
provider: pypi
user: maxz
password:
secure: "vMEOlP7DQhFJ7hQAKtKC5hrJXFl5BkUt4nXdosWWiw//Kg8E+PPLg88XPI2gqIosir9wwgtbSBBbbwCxkM6uxRNMpoNR8Ixyv9fmSXp4rLl7bbBY768W7IRXKIBjpuEy2brQjoT+CwDDSzUkckHvuUjJDNRvUv8ab4P/qYO1LG4="
on:
plot_density
distributions: "bdist_wheel sdist sphinx_build sphinx_upload"

View file

@ -8,3 +8,10 @@ commit = True
[bdist_wheel] [bdist_wheel]
universal = 1 universal = 1
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
[upload_sphinx]
upload-dir = doc/build/html

View file

@ -123,8 +123,8 @@ setup(name = 'GPy',
"GPy.util", "GPy.util",
"GPy.plotting", "GPy.plotting",
"GPy.plotting.gpy_plot", "GPy.plotting.gpy_plot",
"GPy.plotting.matplot_dep.controllers",
"GPy.plotting.matplot_dep", "GPy.plotting.matplot_dep",
"GPy.plotting.matplot_dep.controllers",
"GPy.plotting.plotly_dep", "GPy.plotting.plotly_dep",
], ],
package_dir={'GPy': 'GPy'}, package_dir={'GPy': 'GPy'},