forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.11 * tag 'v0.11.0': (75 commits) RLS: Version 0.11 BUG: respect passed chunksize in read_csv when using get_chunk function. close pandas-dev#3406 DOC: Adding parameters to frequencies, offsets (issue pandas-dev#2916) BUG: fix broken validators again Revert "BUG: config.is_one_of_factory is broken" DOC: minor indexing.rst doc updates BUG: config.is_one_of_factory is broken TST: add test for config.is_one_of_factory DOC: RELEASE.rst mention new options disp.height/width and deprecated line_width BUG: fix validators for config options ENH: default dimensions for ip zmq frontends derive from disp.height/width defaults ENH: let display.notebook_repr_html control HTML repr in qtconsole again. ENH: fix df.repr() for scripts (keep GH1611 away), accept None for max_cols/rows BUG: rework get_console_size to handle cases properly ENH: optimize _repr_fits_horizontal_, to_string only on slice of interest BUG: for numerical option, sentry should be another Type, not 0 TST: fix test_repr_non_interactive passing by accident TST: adjust tests to accommodate new defaults for display options ENH: Adjust height/width/max_rows defaults to match informal survey results CLN: convert test utilizing disp.line_width to disp.width ...
- Loading branch information
Showing
53 changed files
with
1,717 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# If envars.sh determined we're running in an authorized fork | ||
# and the user opted in to the network cache,and that cached versions | ||
# are available on the cache server, download and deploy the cached | ||
# files to the local filesystem | ||
|
||
echo "inside $0" | ||
|
||
# overview | ||
if [ ${TRAVIS_PYTHON_VERSION} == "3.3" ]; then | ||
sudo add-apt-repository -y ppa:doko/ppa # we get the py3.3 debs from here | ||
fi | ||
|
||
sudo apt-get update $APT_ARGS # run apt-get update for all versions | ||
|
||
# # hack for broken 3.3 env | ||
# if [ x"$VIRTUAL_ENV" == x"" ]; then | ||
# VIRTUAL_ENV=~/virtualenv/python$TRAVIS_PYTHON_VERSION_with_system_site_packages; | ||
# fi | ||
if $PLEASE_TRAVIS_FASTER ; then | ||
echo "Faster? well... I'll try." | ||
|
||
if $CACHE_FILE_AVAILABLE ; then | ||
echo retrieving "$CACHE_FILE_URL"; | ||
|
||
wget -q "$CACHE_FILE_URL" -O "/tmp/_$CYTHON_HASH.zip"; | ||
unzip $ZIP_FLAGS /tmp/_"$CYTHON_HASH.zip" -d "$BUILD_CACHE_DIR"; | ||
rm -f /tmp/_"$CYTHON_HASH.zip" | ||
# copy cythonized c files over | ||
cp -R "$BUILD_CACHE_DIR"/pandas/*.c pandas/ | ||
cp -R "$BUILD_CACHE_DIR"/pandas/src/*.c pandas/src/ | ||
fi; | ||
echo "VENV_FILE_AVAILABLE=$VENV_FILE_AVAILABLE" | ||
if $VENV_FILE_AVAILABLE ; then | ||
echo "getting venv" | ||
wget -q $VENV_FILE_URL -O "/tmp/venv.zip"; | ||
sudo unzip $ZIP_FLAGS -o /tmp/venv.zip -d "/"; | ||
sudo chown travis -R "$VIRTUAL_ENV" | ||
rm -f /tmp/_"$CYTHON_HASH.zip" | ||
fi; | ||
fi | ||
|
||
# # we only recreate the virtualenv for 3.x | ||
# # since the "Detach bug" only affects python3 | ||
# # and travis has numpy preinstalled on 2.x which is quicker | ||
# _VENV=$VIRTUAL_ENV # save it | ||
# if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ] ; then | ||
# deactivate # pop out of any venv | ||
# sudo pip install virtualenv==1.8.4 --upgrade | ||
# sudo apt-get install $APT_ARGS python3.3 python3.3-dev | ||
# sudo rm -Rf $_VENV | ||
# virtualenv -p python$TRAVIS_PYTHON_VERSION $_VENV --system-site-packages; | ||
# source $_VENV/bin/activate | ||
# fi | ||
true # never fail because bad things happened here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
# This must be sourced by .travis.yml, so any envars exported here will | ||
# be available to the rest of the build stages | ||
|
||
# - computes a hash based on the cython files in the codebade | ||
# - retrieves the decrypted key if any for all whitelisted forks | ||
# - checks whether the user optd int to use the cache | ||
# - if so, check for availablity of cache files on the server, based on hash | ||
# - set envars to control what the following scripts do | ||
|
||
# at most one of these will decrypt, so the end result is that $STORE_KEY | ||
# either holds a single key or does not | ||
export STORE_KEY="$STORE_KEY0""$STORE_KEY1""$STORE_KEY2""$STORE_KEY3""$STORE_KEY4" | ||
export STORE_KEY="$STORE_KEY""$STORE_KEY5""$STORE_KEY6""$STORE_KEY7" | ||
|
||
export CYTHON_HASH=$(find pandas | grep -P '\.(pyx|pxd)$' | sort \ | ||
| while read N; do echo $(tail -n+1 $N | md5sum ) ;done | md5sum| cut -d ' ' -f 1) | ||
|
||
export CYTHON_HASH=$CYTHON_HASH-$TRAVIS_PYTHON_VERSION | ||
|
||
# where the cache files live on the server | ||
export CACHE_FILE_URL="https://cache27-pypandas.rhcloud.com/static/$STORE_KEY/$CYTHON_HASH.zip" | ||
export VENV_FILE_URL="https://cache27-pypandas.rhcloud.com/static/$STORE_KEY/venv-$TRAVIS_PYTHON_VERSION.zip" | ||
export CACHE_FILE_STORE_URL="https://cache27-pypandas.rhcloud.com/store/$STORE_KEY" | ||
|
||
echo "Hashing:" | ||
find pandas | grep -P '\.(pyx|pxd)$' | ||
echo "Key: $CYTHON_HASH" | ||
|
||
export CACHE_FILE_AVAILABLE=false | ||
export VENV_FILE_AVAILABLE=false | ||
export PLEASE_TRAVIS_FASTER=false | ||
|
||
# check whether the user opted in to use the cache via commit message | ||
if [ x"$(git log --format='%B' -n 1 | grep PLEASE_TRAVIS_FASTER | wc -l)" != x"0" ]; then | ||
export PLEASE_TRAVIS_FASTER=true | ||
fi; | ||
if [ x"$(git log --format='%B' -n 1 | grep PTF | wc -l)" != x"0" ]; then | ||
export PLEASE_TRAVIS_FASTER=true | ||
fi; | ||
|
||
if $PLEASE_TRAVIS_FASTER; then | ||
|
||
# check whether the files exists on the server | ||
curl -s -f -I "$CACHE_FILE_URL" # silent, don;t expose key | ||
if [ x"$?" == x"0" ] ; then | ||
export CACHE_FILE_AVAILABLE=true; | ||
fi | ||
|
||
|
||
curl -s -f -I "$VENV_FILE_URL" # silent, don;t expose key | ||
if [ x"$?" == x"0" ] ; then | ||
export VENV_FILE_AVAILABLE=true; | ||
fi | ||
|
||
# the pandas build cache machinery needs this set, and the directory created | ||
export BUILD_CACHE_DIR="/tmp/build_cache" | ||
mkdir "$BUILD_CACHE_DIR" | ||
fi; | ||
|
||
# debug | ||
echo "PLEASE_TRAVIS_FASTER=$PLEASE_TRAVIS_FASTER" | ||
echo "CACHE_FILE_AVAILABLE=$CACHE_FILE_AVAILABLE" | ||
echo "VENV_FILE_AVAILABLE=$VENV_FILE_AVAILABLE" | ||
|
||
true |
Oops, something went wrong.