Skip to content

Commit 1362361

Browse files
fixed conflicts
2 parents 596424b + a050a33 commit 1362361

File tree

116 files changed

+6417
-2376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+6417
-2376
lines changed

.travis.yml

-14
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ matrix:
5757
- FULL_DEPS=true
5858
- CLIPBOARD=xsel
5959
- BUILD_TYPE=conda
60-
- python: 3.3
61-
env:
62-
- JOB_NAME: "33_nslow"
63-
- NOSE_ARGS="not slow and not disabled"
64-
- FULL_DEPS=true
65-
- CLIPBOARD=xsel
66-
- BUILD_TYPE=conda
6760
- python: 2.7
6861
env:
6962
- JOB_NAME: "27_slow"
@@ -104,13 +97,6 @@ matrix:
10497
- BUILD_TYPE=pydata
10598
- PANDAS_TESTING_MODE="deprecate"
10699
allow_failures:
107-
- python: 3.3
108-
env:
109-
- JOB_NAME: "33_nslow"
110-
- NOSE_ARGS="not slow and not disabled"
111-
- FULL_DEPS=true
112-
- CLIPBOARD=xsel
113-
- BUILD_TYPE=conda
114100
- python: 2.7
115101
env:
116102
- JOB_NAME: "27_slow"

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020
<td>Build Status</td>
2121
<td>
2222
<a href="https://travis-ci.org/pydata/pandas">
23-
<img src="https://travis-ci.org/pydata/pandas.svg?branch=master" alt="build status" />
23+
<img src="https://travis-ci.org/pydata/pandas.svg?branch=master" alt="travis build status" />
24+
</a>
25+
</td>
26+
</tr>
27+
<td></td>
28+
<td>
29+
<a href="https://ci.appveyor.com/project/jreback/pandas-465">
30+
<img src="https://ci.appveyor.com/api/projects/status/iblk29s98quexwxi/branch/master?svg=true" alt="appveyor build status" />
2431
</a>
2532
</td>
2633
</tr>

appveyor.yml

+58-15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# With infos from
2+
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
3+
# https://packaging.python.org/en/latest/appveyor/
4+
# https://github.com/rmcgibbo/python-appveyor-conda-example
5+
6+
# Backslashes in quotes need to be escaped: \ -> "\\"
7+
8+
matrix:
9+
fast_finish: true # immediately finish build once one of the jobs fails.
10+
111
environment:
212
global:
313
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
@@ -6,33 +16,66 @@ environment:
616
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
717

818
matrix:
9-
- PYTHON: "C:\\Python27_32"
10-
PYTHON_VERSION: "2.7"
11-
PYTHON_ARCH: "32"
19+
- PYTHON: "C:\\Python34_64"
20+
PYTHON_VERSION: "3.4"
21+
PYTHON_ARCH: "64"
22+
CONDA_PY: "34"
23+
CONDA_NPY: "110"
1224

1325
- PYTHON: "C:\\Python27_64"
1426
PYTHON_VERSION: "2.7"
1527
PYTHON_ARCH: "64"
28+
CONDA_PY: "27"
29+
CONDA_NPY: "110"
1630

17-
- PYTHON: "C:\\Python34_32"
18-
PYTHON_VERSION: "3.4"
19-
PYTHON_ARCH: "32"
20-
21-
- PYTHON: "C:\\Python34_64"
22-
PYTHON_VERSION: "3.4"
31+
- PYTHON: "C:\\Python35_64"
32+
PYTHON_VERSION: "3.5"
2333
PYTHON_ARCH: "64"
34+
CONDA_PY: "35"
35+
CONDA_NPY: "110"
36+
37+
# We always use a 64-bit machine, but can build x86 distributions
38+
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
39+
platform:
40+
- x64
41+
42+
# all our python builds have to happen in tests_script...
43+
build: false
44+
45+
init:
46+
- "ECHO %PYTHON_VERSION% %PYTHON%"
2447

2548
install:
2649
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
27-
# as well as pip, conda-build, and the binstar CLI
50+
- powershell .\ci\install.ps1
51+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
2852
- echo "install"
2953
- cd
3054
- ls -ltr
31-
- powershell .\\ci\\install_appveyor.ps1
32-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
55+
- git tag --sort v:refname
3356

34-
build: false
57+
# install our build environment
58+
- cmd: conda config --set show_channel_urls yes --set always_yes yes --set changeps1 no
59+
- cmd: conda update -q conda
60+
- cmd: conda config --add channels http://conda.anaconda.org/pandas
61+
- cmd: conda config --set ssl_verify false
62+
63+
# this is now the downloaded conda...
64+
- conda info -a
65+
66+
# build em using the local source checkout in the correct windows env
67+
- conda install conda-build
68+
- cmd: '%CMD_IN_ENV% conda build conda.recipe -q --no-test'
69+
70+
# create our env
71+
- SET REQ=ci\requirements-%PYTHON_VERSION%-%PYTHON_ARCH%.run
72+
- cmd: conda create -q -n pandas python=%PYTHON_VERSION% nose
73+
- cmd: activate pandas
74+
- cmd: conda install -q --file=%REQ%
75+
- ps: conda install -q (conda build conda.recipe -q --output --no-test)
3576

3677
test_script:
37-
- "%CMD_IN_ENV% %PYTHON%/python.exe setup.py build_ext --inplace"
38-
- "%PYTHON%/Scripts/nosetests -A \"not slow and not network and not disabled\" pandas"
78+
# tests
79+
- cd \
80+
- conda list pandas
81+
- nosetests --exe -A "not slow and not network and not disabled" pandas

asv_bench/benchmarks/plotting.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
try:
33
from pandas import date_range
44
except ImportError:
5-
65
def date_range(start=None, end=None, periods=None, freq=None):
76
return DatetimeIndex(start, end, periods=periods, offset=freq)
7+
from pandas.tools.plotting import andrews_curves
88

99

1010
class plot_timeseries_period(object):
@@ -16,4 +16,17 @@ def setup(self):
1616
self.df = DataFrame(np.random.randn(self.N, self.M), index=date_range('1/1/1975', periods=self.N))
1717

1818
def time_plot_timeseries_period(self):
19-
self.df.plot()
19+
self.df.plot()
20+
21+
class plot_andrews_curves(object):
22+
goal_time = 0.6
23+
24+
def setup(self):
25+
self.N = 500
26+
self.M = 10
27+
data_dict = {x: np.random.randn(self.N) for x in range(self.M)}
28+
data_dict["Name"] = ["A"] * self.N
29+
self.df = DataFrame(data_dict)
30+
31+
def time_plot_andrews_curves(self):
32+
andrews_curves(self.df, "Name")

ci/install.ps1

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Sample script to install Miniconda under Windows
2+
# Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner, Robert McGibbon
3+
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
4+
5+
$MINICONDA_URL = "http://repo.continuum.io/miniconda/"
6+
7+
8+
function DownloadMiniconda ($python_version, $platform_suffix) {
9+
$webclient = New-Object System.Net.WebClient
10+
if ($python_version -match "3.4") {
11+
$filename = "Miniconda3-latest-Windows-" + $platform_suffix + ".exe"
12+
} else {
13+
$filename = "Miniconda-latest-Windows-" + $platform_suffix + ".exe"
14+
}
15+
$url = $MINICONDA_URL + $filename
16+
17+
$basedir = $pwd.Path + "\"
18+
$filepath = $basedir + $filename
19+
if (Test-Path $filename) {
20+
Write-Host "Reusing" $filepath
21+
return $filepath
22+
}
23+
24+
# Download and retry up to 3 times in case of network transient errors.
25+
Write-Host "Downloading" $filename "from" $url
26+
$retry_attempts = 2
27+
for($i=0; $i -lt $retry_attempts; $i++){
28+
try {
29+
$webclient.DownloadFile($url, $filepath)
30+
break
31+
}
32+
Catch [Exception]{
33+
Start-Sleep 1
34+
}
35+
}
36+
if (Test-Path $filepath) {
37+
Write-Host "File saved at" $filepath
38+
} else {
39+
# Retry once to get the error message if any at the last try
40+
$webclient.DownloadFile($url, $filepath)
41+
}
42+
return $filepath
43+
}
44+
45+
46+
function InstallMiniconda ($python_version, $architecture, $python_home) {
47+
Write-Host "Installing Python" $python_version "for" $architecture "bit architecture to" $python_home
48+
if (Test-Path $python_home) {
49+
Write-Host $python_home "already exists, skipping."
50+
return $false
51+
}
52+
if ($architecture -match "32") {
53+
$platform_suffix = "x86"
54+
} else {
55+
$platform_suffix = "x86_64"
56+
}
57+
58+
$filepath = DownloadMiniconda $python_version $platform_suffix
59+
Write-Host "Installing" $filepath "to" $python_home
60+
$install_log = $python_home + ".log"
61+
$args = "/S /D=$python_home"
62+
Write-Host $filepath $args
63+
Start-Process -FilePath $filepath -ArgumentList $args -Wait -Passthru
64+
if (Test-Path $python_home) {
65+
Write-Host "Python $python_version ($architecture) installation complete"
66+
} else {
67+
Write-Host "Failed to install Python in $python_home"
68+
Get-Content -Path $install_log
69+
Exit 1
70+
}
71+
}
72+
73+
74+
function InstallCondaPackages ($python_home, $spec) {
75+
$conda_path = $python_home + "\Scripts\conda.exe"
76+
$args = "install --yes " + $spec
77+
Write-Host ("conda " + $args)
78+
Start-Process -FilePath "$conda_path" -ArgumentList $args -Wait -Passthru
79+
}
80+
81+
function UpdateConda ($python_home) {
82+
$conda_path = $python_home + "\Scripts\conda.exe"
83+
Write-Host "Updating conda..."
84+
$args = "update --yes conda"
85+
Write-Host $conda_path $args
86+
Start-Process -FilePath "$conda_path" -ArgumentList $args -Wait -Passthru
87+
}
88+
89+
90+
function main () {
91+
InstallMiniconda $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
92+
UpdateConda $env:PYTHON
93+
InstallCondaPackages $env:PYTHON "conda-build jinja2 anaconda-client"
94+
}
95+
96+
main

ci/requirements-2.7-64.run

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
dateutil
2+
pytz
3+
numpy
4+
xlwt
5+
numexpr
6+
pytables
7+
matplotlib
8+
openpyxl
9+
xlrd
10+
sqlalchemy
11+
lxml=3.2.1
12+
scipy
13+
xlsxwriter
14+
boto
15+
bottleneck
16+
patsy
17+
html5lib
18+
beautiful-soup
19+
jinja2=2.8
20+
21+
#pymysql=0.6.3
22+
#psycopg2=2.5.2

ci/requirements-3.3.build

-4
This file was deleted.

ci/requirements-3.3.pip

-2
This file was deleted.

ci/requirements-3.3.run

-17
This file was deleted.

ci/requirements-3.4-64.run

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
python-dateutil
2+
pytz
3+
numpy
4+
openpyxl
5+
xlsxwriter
6+
xlrd
7+
xlwt
8+
html5lib
9+
patsy
10+
beautiful-soup
11+
scipy
12+
numexpr
13+
pytables
14+
lxml
15+
sqlalchemy
16+
bottleneck
17+
jinja2=2.8

ci/requirements-3.5-64.run

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
python-dateutil
2+
pytz
3+
numpy
4+
openpyxl
5+
xlsxwriter
6+
xlrd
7+
xlwt
8+
patsy
9+
scipy
10+
numexpr
11+
pytables
12+
html5lib
13+
lxml
14+
matplotlib
15+
jinja2
16+
blosc
17+
18+
# currently causing some warnings
19+
#sqlalchemy
20+
#pymysql
21+
#psycopg2
22+
23+
# not available from conda
24+
#beautiful-soup
25+
#bottleneck

0 commit comments

Comments
 (0)