Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

[MRG] Creates nightly builds for Python >= 3.6 on all platforms #17

Merged
merged 59 commits into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
b570a5f
TST: Nightly
thomasjpfan Jan 30, 2019
18e6a94
TST: update cython version
thomasjpfan Jan 30, 2019
0be255b
TST: Nightly
thomasjpfan Jan 31, 2019
dd78c94
TST: Nightly
thomasjpfan Jan 31, 2019
4e2796c
TST: Update username
thomasjpfan Feb 3, 2019
d990acb
TST: Update username
thomasjpfan Feb 3, 2019
4fe5d25
TST: Update username
thomasjpfan Feb 3, 2019
f711239
RFC Uses local account
thomasjpfan Feb 17, 2019
69ba832
BLD Update multibuild
thomasjpfan Feb 17, 2019
09572a0
BLD Uses rackspace
thomasjpfan Feb 17, 2019
d056a2e
BLD Uses rackspace
thomasjpfan Feb 17, 2019
0807e62
BLD Uses rackspace
thomasjpfan Feb 17, 2019
d212539
BLD Uses rackspace
thomasjpfan Feb 17, 2019
c5ee715
BLD Adds all other versions
thomasjpfan Feb 17, 2019
5c24848
BLD Adds windows support
thomasjpfan Feb 17, 2019
939796f
BLD Fixes windows support
thomasjpfan Feb 17, 2019
624bd97
ENH Errors on python2 and 3.5
thomasjpfan Feb 17, 2019
45b18b6
TST Fix
thomasjpfan Feb 17, 2019
6ec59e8
ENH Exit 0 when not building
thomasjpfan Feb 17, 2019
d52e9cb
ENH Only build for python 3.6 or greater
thomasjpfan Feb 17, 2019
eaeb32c
ENH Fix Windows
thomasjpfan Feb 17, 2019
70cc563
RFC Uses master
thomasjpfan Feb 17, 2019
df76635
ENH Fix windows
thomasjpfan Feb 17, 2019
fdaa380
ENH Fix windows
thomasjpfan Feb 17, 2019
b7abf36
ENH Fix windows
thomasjpfan Feb 17, 2019
7402e3a
ENH Fix windows
thomasjpfan Feb 17, 2019
672be7c
ENH Fix windows
thomasjpfan Feb 17, 2019
5a3f955
ENH Fix windows
thomasjpfan Feb 17, 2019
5e12452
ENH Fix windows
thomasjpfan Feb 17, 2019
e0dcfa3
ENH Fix windows
thomasjpfan Feb 17, 2019
ef9335d
ENH Fix windows
thomasjpfan Feb 17, 2019
9f3638b
ENH Fix windows
thomasjpfan Feb 17, 2019
54b7443
ENH Fix windows
thomasjpfan Feb 18, 2019
e456091
ENH Fix windows
thomasjpfan Feb 18, 2019
127d2e1
ENH Fix windows
thomasjpfan Feb 18, 2019
026f5f6
ENH Fix windows
thomasjpfan Feb 18, 2019
41dd072
ENH Fix windows
thomasjpfan Feb 18, 2019
f320e02
ENH Fix windows
thomasjpfan Feb 18, 2019
6dc05f1
ENH Fix windows
thomasjpfan Feb 18, 2019
bf5a11e
ENH Fix windows
thomasjpfan Feb 18, 2019
922b59a
ENH Fix unix
thomasjpfan Feb 18, 2019
b16d13d
ENH Fix unix
thomasjpfan Feb 18, 2019
0d46b4d
ENH Fix unix
thomasjpfan Feb 18, 2019
29b4781
ENH Fix windows
thomasjpfan Feb 18, 2019
9edd678
ENH Fix windows
thomasjpfan Feb 18, 2019
cf34180
ENH Fix windows
thomasjpfan Feb 18, 2019
98ad4c8
ENH Fix windows
thomasjpfan Feb 18, 2019
aaaa602
ENH Fix windows
thomasjpfan Feb 18, 2019
b61a482
ENH Use pre-release container
thomasjpfan Feb 18, 2019
5e87d75
ENH Uses DAILY_BUILD env
thomasjpfan Feb 18, 2019
69cf538
REV Cython dep
thomasjpfan Feb 18, 2019
bd46c7e
REV Cython dep
thomasjpfan Feb 18, 2019
105c04a
REV Makes PR ready for merging
thomasjpfan Feb 18, 2019
5c15fb3
RFC Only build for 3.6 3.7 python
thomasjpfan Feb 19, 2019
6cf3517
BLD Removes arm builds
thomasjpfan Feb 21, 2019
918c928
CLN Address comments
thomasjpfan Feb 21, 2019
7e6d0ad
BUG FIX
thomasjpfan Feb 21, 2019
edcd864
BUG FIX
thomasjpfan Feb 21, 2019
b8c1579
Update appveyor.yml
ogrisel Feb 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 48 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
env:
global:
- REPO_DIR="scikit-learn"
- BUILD_COMMIT=0.20.2
- PLAT=x86_64
- UNICODE_WIDTH=32
- NP_BUILD_DEP="numpy==1.8.2"
- NP_TEST_DEP="numpy==1.13.1"
- SCIPY_BUILD_DEP="scipy"
- SCIPY_TEST_DEP="scipy"
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated with
# travis encrypt -r MacPython/scikit-learn-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
- secure: "Lyhm6qFtf/hY5D3UHMANNhh8Ar/PARF1nH/ebArWLtb24prrSYt+AAVJqZ81I58AdQK12Kn8mmuZVyVJT+FrRd8q6OyMijQ/wKrsx8EH+lDTTgUueBJtLql01KsaMRTDpAd04bREh1MppIsFFCHKVNxY2mW17XwsNQ+MUka4Bos="
- REPO_DIR="scikit-learn"
- BUILD_COMMIT=0.20.2
- PLAT=x86_64
- UNICODE_WIDTH=32
- NP_BUILD_DEP="numpy==1.8.2"
- NP_TEST_DEP="numpy==1.13.1"
- CYTHON_BUILD_DEP="cython==0.28.5"
- CYTHON_TEST_DEP="cython"
- SCIPY_BUILD_DEP="scipy"
- SCIPY_TEST_DEP="scipy"
- DAILY_COMMIT=master
- DAILY_BUILD=false
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated with
# travis encrypt -r MacPython/scikit-learn-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
- secure: "Lyhm6qFtf/hY5D3UHMANNhh8Ar/PARF1nH/ebArWLtb24prrSYt+AAVJqZ81I58AdQK12Kn8mmuZVyVJT+FrRd8q6OyMijQ/wKrsx8EH+lDTTgUueBJtLql01KsaMRTDpAd04bREh1MppIsFFCHKVNxY2mW17XwsNQ+MUka4Bos="

language: python
# Default Python version is usually 2.7
Expand All @@ -21,8 +25,8 @@ dist: trusty

matrix:
exclude:
# Exclude the default Python 3.5 build
- python: 3.5
# Exclude the default Python 3.5 build
- python: 3.5
include:
- os: linux
env:
Expand Down Expand Up @@ -62,6 +66,7 @@ matrix:
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.11.3
- DAILY_BUILD=true
- os: linux
env:
- MB_PYTHON_VERSION=3.6
Expand All @@ -72,6 +77,7 @@ matrix:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.14.5
- NP_TEST_DEP=numpy==1.14.5
- DAILY_BUILD=true
- os: linux
env:
- MB_PYTHON_VERSION=3.7
Expand All @@ -96,32 +102,45 @@ matrix:
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.11.3
- DAILY_BUILD=true
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.14.5
- NP_TEST_DEP=numpy==1.14.5
- DAILY_BUILD=true

before_install:
- BUILD_DEPENDS="$NP_BUILD_DEP cython==0.28.4 $SCIPY_BUILD_DEP"
- TEST_DEPENDS="$NP_TEST_DEP pytest $SCIPY_TEST_DEP"
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
- |
if [ "$TRAVIS_BRANCH" == "master" ]; then
if [ "$DAILY_BUILD" != "true" ]; then
exit 0
fi
CONTAINER="sklearn-nightly"
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT}
else
CONTAINER=wheels
UPLOAD_ARGS="--no-update-index"
fi
- BUILD_DEPENDS="$NP_BUILD_DEP $CYTHON_BUILD_DEP $SCIPY_BUILD_DEP"
- TEST_DEPENDS="$NP_TEST_DEP pytest $CYTHON_TEST_DEP $SCIPY_TEST_DEP"
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install

install:
# Maybe get and clean and patch source
- clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT
# Maybe get and clean and patch source
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patch? for the wheel building?

- clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT

script:
- install_run $PLAT
- install_run $PLAT

after_success:
# Upload wheels to Rackspace container
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --local-folder
${TRAVIS_BUILD_DIR}/wheelhouse/
--no-update-index
wheels
# Upload wheels to Rackspace container
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --local-folder
${TRAVIS_BUILD_DIR}/wheelhouse/
$UPLOAD_ARGS
$CONTAINER
25 changes: 23 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ environment:
# Make sure we don't download large datasets when running the test on
# continuous integration platform
SKLEARN_SKIP_NETWORK_TESTS: 1
APPVEYOR_SKIP_FINALIZE_ON_EXIT: true
# Minimum numpy version
NP_BUILD_DEP: "1.10.4"
DAILY_COMMIT: master
DAILY_BUILD: "false"

matrix:
- PYTHON: "C:\\Python27"
Expand Down Expand Up @@ -53,6 +56,7 @@ environment:
PYTHON_VERSION: "3.6.0"
PYTHON_ARCH: "64"
NP_BUILD_DEP: "1.12.1"
DAILY_BUILD: "true"

- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7.0"
Expand All @@ -63,7 +67,20 @@ environment:
PYTHON_VERSION: "3.7.0"
PYTHON_ARCH: "64"
NP_BUILD_DEP: "1.14.5"

DAILY_BUILD: "true"

init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
- "ECHO \"%APPVEYOR_SCHEDULED_BUILD%\""
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq "master") {
$env:CONTAINER = "sklearn-nightly"
if ($env:DAILY_COMMIT) { $env:BUILD_COMMIT = $env:DAILY_COMMIT }
if ($env:DAILY_BUILD -eq "false") { Exit-AppveyorBuild }
} else {
$env:CONTAINER = "wheels"
$env:UPLOAD_ARGS = "--no-update-index"
}

install:
# Install Python (from the official .msi of http://python.org) and pip when
Expand Down Expand Up @@ -118,7 +135,11 @@ on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- "python -m wheelhouse_uploader upload --no-update-index --no-ssl-check --local-folder=dist wheels"
- python -m wheelhouse_uploader upload
--no-ssl-check
--local-folder=dist
%UPLOAD_ARGS%
%CONTAINER%

cache:
# Use the appveyor cache to avoid re-downloading large archives such
Expand Down
2 changes: 1 addition & 1 deletion appveyor/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scipy==1.1.0
cython==0.28.4
cython==0.28.5
pytest
wheel
wheelhouse_uploader