-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
16 changed files
with
264 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,50 @@ | ||
language: python | ||
|
||
sudo: required | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
language: generic | ||
|
||
env: | ||
global: | ||
- LENSFUN_GIT="git://git.code.sf.net/p/lensfun/code" | ||
matrix: | ||
- USE_LATEST_LENSFUN=false | ||
- USE_LATEST_LENSFUN=true | ||
- PYPI_USER=letmaik | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
services: | ||
- docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 | ||
|
||
- os: osx | ||
# use oldest available image to be as compatible as possible when producing wheels | ||
osx_image: xcode6.4 # = OS X 10.10 | ||
# (NumPy 1.7.2 has no macOS wheels) | ||
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.7.1 | ||
|
||
git: | ||
submodules: false | ||
- os: osx | ||
osx_image: xcode6.4 | ||
env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.8.* | ||
|
||
- os: osx | ||
osx_image: xcode6.4 | ||
env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.9.* | ||
|
||
- os: osx | ||
osx_image: xcode6.4 | ||
env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.11.* | ||
|
||
install: | ||
# checkout master, see https://sourceforge.net/p/lensfun/bugs/36/ | ||
# git checkout -f `git describe --abbrev=0 --tags` ; | ||
- if [ $USE_LATEST_LENSFUN == true ]; then | ||
cd .. ; | ||
git clone $LENSFUN_GIT lensfun ; | ||
cd lensfun ; | ||
git checkout 75a845abf ; | ||
cmake . -DBUILD_TESTS=off ; | ||
sudo make install ; | ||
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/99local.conf ; | ||
sudo ldconfig ; | ||
cd ../lensfunpy ; | ||
else | ||
sudo apt-get update ; | ||
sudo apt-get install liblensfun-dev ; | ||
fi | ||
- travis_retry pip install -r dev-requirements.txt | ||
- python setup.py sdist | ||
- pip install dist/*.tar.gz | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull $DOCKER_IMAGE; fi | ||
|
||
script: | ||
- mkdir tmp_for_test | ||
- cd tmp_for_test | ||
- nosetests --verbosity=3 --nocapture ../test | ||
- cd .. | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --rm -e TRAVIS_TAG -e PYPI_USER -e PYPI_PASS -v `pwd`:/io $DOCKER_IMAGE /io/travis/build_linux.sh; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis/build_macos.sh; fi | ||
|
||
after_success: | ||
- if [[ $USE_LATEST_LENSFUN == false && $TRAVIS_PYTHON_VERSION == '2.7' ]]; then | ||
pip install travispy ; | ||
travis_retry python -c "import os; from travispy import TravisPy; t = TravisPy.github_auth(os.environ['GITHUB_TOKEN']); t.build(t.branch('mac-wheels', 'letmaik/lensfunpy').id).restart()" ; | ||
fi | ||
|
||
before_deploy: | ||
# otherwise sphinx would fail | ||
- python setup.py build_ext --inplace | ||
# scipy is imported by lensfunpy.util, but because the util module is not unit-tested scipy is not installed earlier | ||
# sphinx needs scipy in order to import the util module, otherwise it can't generate docs | ||
- pip install sphinx scipy | ||
- ls dist/ | ||
- ls build/ | ||
|
||
deploy: | ||
provider: pypi | ||
user: letmaik | ||
password: | ||
secure: GW2vr0X3tka3QQT4MiqPIt1aJ++HxI7bwbpSBj5zURvjGQQ/IKWJp1HBVkdFD+skpnctZyLxh97SprGZXLGtcbXLTDi7u+bkzW30Mv2FR4zHFb5dWCdf5mutinZG5dCmWmxvMx0GhNGpVsxo4Y/LDt+r0tPyT6DtmDs/9B01dLs= | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard | ||
local_dir: build/sphinx/html | ||
on: | ||
tags: true | ||
condition: $USE_LATEST_LENSFUN = false && $TRAVIS_PYTHON_VERSION == '2.7' | ||
condition: $PYTHON_VERSION = '3.6' && $TRAVIS_OS_NAME == 'osx' |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ index-servers = | |
pypi | ||
|
||
[pypi] | ||
username:letmaik | ||
username:%USER% | ||
password:%PASS% |
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,7 +1,12 @@ | ||
echo "APPVEYOR_REPO_TAG: " + $env:APPVEYOR_REPO_TAG | ||
echo "APPVEYOR_REPO_TAG_NAME: " + $env:APPVEYOR_REPO_TAG_NAME | ||
Write-Host "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG" | ||
Write-Host "APPVEYOR_REPO_TAG_NAME: $env:APPVEYOR_REPO_TAG_NAME" | ||
|
||
if (($env:APPVEYOR_REPO_TAG -eq "True") -and ($env:APPVEYOR_REPO_TAG_NAME.StartsWith("v"))) { | ||
(Get-Content appveyor\.pypirc) | Foreach-Object {$_ -replace '%PASS%',$env:PYPI_PASS} | Set-Content $env:userprofile\.pypirc | ||
# save credentials in ~\.pypirc | ||
(Get-Content appveyor\.pypirc) ` | ||
| Foreach-Object {$_ -replace '%USER%',$env:PYPI_USER -replace '%PASS%',$env:PYPI_PASS} ` | ||
| Set-Content $env:userprofile\.pypirc | ||
|
||
# build and upload binary wheel | ||
Invoke-Expression "$env:CMD_IN_ENV python setup.py bdist_wheel upload" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,6 @@ numpy | |
cython | ||
nose | ||
wheel>=0.25 | ||
sphinx_rtd_theme | ||
sphinx | ||
sphinx_rtd_theme | ||
scipy |
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
Empty file.
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,2 +1 @@ | ||
__version__ = "1.5.0" | ||
__version_info__ = tuple(map(int, __version__.split('.'))) | ||
__version__ = "1.6.0" |
Oops, something went wrong.