1 Star 1 Fork 0

石岩/shap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
appveyor.yml 3.28 KB
一键复制 编辑 原始数据 按行查看 历史
Ilya Matiach 提交于 2020-01-06 12:49 . update builds to tensorflow 2.0
environment:
PYPIPASSWORD:
secure: bHtyMeea0zyeczBWXTsHBA==
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
#Tensorflow doesn't support python 3.8 yet. https://github.com/tensorflow/tensorflow/issues/33374
#- PYTHON: "C:\\Python38-x64"
install:
# We need wheel installed to build wheels
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install tensorflow matplotlib ipython"
- ps: |
# Appveyor script to install hadoop extra package to run spark on windows
# create tools directory outside of Spark directory
$up = (Get-Item -Path ".." -Verbose).FullName
$tools = "$up\tools"
if (!(Test-Path $tools)) {
New-Item -ItemType Directory -Force -Path $tools | Out-Null
}
# ========================== Hadoop bin package
$hadoopVer = "2.6.4"
$hadoopPath = "$tools\hadoop"
if (!(Test-Path $hadoopPath)) {
New-Item -ItemType Directory -Force -Path $hadoopPath | Out-Null
}
Push-Location $hadoopPath
Start-FileDownload "https://github.com/steveloughran/winutils/archive/master.zip" "winutils-master.zip"
# extract
Invoke-Expression "7z.exe x winutils-master.zip"
# add hadoop bin to environment variables
$env:HADOOP_HOME = "$hadoopPath/winutils-master/hadoop-$hadoopVer"
$env:Path += ";$env:HADOOP_HOME\bin"
#Set pyspark env to the proper python version
$env:PYSPARK_DRIVER_PYTHON = "$env:PYTHON\python.exe"
$env:PYSPARK_PYTHON = "$env:PYTHON\python.exe"
Pop-Location
build: off
test_script:
# Put your test command here.
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
- "%PYTHON%\\python.exe setup.py test"
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
on_success:
# Specify account details for PyPI
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo repository=https://pypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username=shap_poster >> %USERPROFILE%\\.pypirc
- echo password=%PYPIPASSWORD% >> %USERPROFILE%\\.pypirc
# Workaround required to ensure setup.py finds the .pypirc under Windows
- set HOME=%USERPROFILE%
# Deploy a wheel (only actually do this for tags). NB That breaking this line
# with Unix line-endings causes the windows command interpreter to barf so
# this is given as one-line to make this script less fragile when edited on
# other OSes.
- if "%APPVEYOR_REPO_TAG%"=="true" ( %PYTHON%\\python.exe setup.py bdist_wheel upload ) else ( echo "Not deploying because not a tagged commit." )
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shi4180/shap.git
git@gitee.com:shi4180/shap.git
shi4180
shap
shap
master

搜索帮助