Skip to content

Commit

Permalink
Merge pull request #94 from madig/fix-appveyor-pt2
Browse files Browse the repository at this point in the history
Fix AppVeyor and sdist deploy, take two.
  • Loading branch information
madig authored Jul 3, 2018
2 parents 93751dc + bc944ef commit 89496f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ matrix:
- os: linux # No bundling.
env:
- MB_PYTHON_VERSION=3.6
- BUILD_SDIST=1
- os: osx
language: generic
env:
Expand All @@ -59,16 +60,15 @@ before_install:

install:
- build_wheel $REPO_DIR $PLAT
# Additionally build sdist on tag and not bundling.
- if [ -z $"FREETYPEPY_BUNDLE_FT" && -n "$TRAVIS_TAG" ]; then python setup.py sdist; fi

script:
- install_run $PLAT

after_success:
# copy compiled wheels to dist/ where Travis `dpl` tool can find them and
# Copy compiled wheels to dist/ where Travis `dpl` tool can find them and
# upload to PyPI
- if [ -n "$TRAVIS_TAG" ]; then mkdir -p dist; cp wheelhouse/*.whl dist; fi
- if [ -n "$TRAVIS_TAG" ] && [ -n "$BUILD_SDIST" ]; then python setup.py sdist; fi

deploy:
# Deploy to PyPI on tags. Since the hard work of building wheels is already
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ on_success:
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...")
pip install --upgrade twine
twine upload wheelhouse\*.whl
twine upload dist\*.whl
} else {
Write-Output "Not deploying as this is not a tagged commit"
}

0 comments on commit 89496f2

Please sign in to comment.