Skip to content

Commit

Permalink
Merge pull request #1179 from dopplershift/update-pypi
Browse files Browse the repository at this point in the history
Update PyPI upload
  • Loading branch information
zbruick committed Sep 26, 2019
2 parents 3eb643b + 2e7f891 commit bd87654
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,17 @@ matrix:
env: TASK="docs" PRE="--pre"
- python: nightly
env: PRE="--pre"
- python: 3.7
- python: "3.7-dev"
env:
- TASK="coverage"
- VERSIONS="git+git://github.com/hgrecco/pint@master#egg=pint git+git://github.com/pydata/xarray@master#egg=xarray"
- python: 3.7
- python: "3.7-dev"
env:
- TASK="docs"
- VERSIONS="git+git://github.com/hgrecco/pint@master#egg=pint git+git://github.com/pydata/xarray@master#egg=xarray"
allow_failures:
- python: "3.7-dev"
- python: nightly
- python: 3.7
env:
- TASK="coverage"
- VERSIONS="git+git://github.com/hgrecco/pint@master#egg=pint git+git://github.com/pydata/xarray@master#egg=xarray"
- python: 3.7
env:
- TASK="docs"
- VERSIONS="git+git://github.com/hgrecco/pint@master#egg=pint git+git://github.com/pydata/xarray@master#egg=xarray"

before_install:
# We hard-code the sphinx_rtd_theme to lock in our build with patch for
Expand Down Expand Up @@ -117,7 +109,7 @@ before_install:
# Cython needs to be installed before even downloading CartoPy
- python -m pip install Cython;
- python -m pip download -d $WHEELDIR ".[$EXTRA_INSTALLS]" $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS;
- touch $WHEELDIR/download_marker && ls -lrt $WHEELDIR;
- touch $WHEELDIR/download_marker;
- travis_wait python -m pip wheel -w $WHEELDIR $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS;
- python -m pip install $EXTRA_PACKAGES --upgrade --upgrade-strategy=eager --no-index -f file://$PWD/$WHEELDIR $VERSIONS;
- travis_wait 30 python -m pip wheel -w $WHEELDIR ".[$EXTRA_INSTALLS]" $EXTRA_PACKAGES -f $WHEELHOUSE $PRE $VERSIONS;
Expand Down Expand Up @@ -157,6 +149,8 @@ after_script:
python-codacy-coverage -r coverage.xml;
codeclimate-test-reporter;
fi
- ls -lr --full-time $WHEELDIR;
- echo $(find $WHEELDIR -newer $WHEELDIR/download_marker -name *.whl | tr [:space:] :)

before_deploy:
# Remove unused, unminified javascript from sphinx
Expand All @@ -168,22 +162,19 @@ before_deploy:

deploy:
- provider: pypi
user: dopplershift
password:
secure: VYbxLZZnQ1hR2WZwe6+NXLNVbxceDQzlaVM/G3PW8mYlnyWgIVJBgCcgpH22wT4IsNQqo1r9ow9HiybzwcU1VTZ9KXjYsjre/kCZob0jmuPKlDtujOLaMJFf0XzOw7Y/AFXaMakFA8ZOYJLaMXc0WMLwGT7Hw/oP/e2ztpVLxRA=
username: __token__
distributions: sdist bdist_wheel
upload_docs: no
on:
repo: Unidata/MetPy
python: 3.6
python: 3.7
condition: '$TASK != "docs"'
tags: true
- provider: script
script: ci/deploy_docs.sh
skip_cleanup: true
on:
all_branches: true
python: 3.6
python: 3.7
condition: '$TASK == "docs"'

notifications:
Expand Down

0 comments on commit bd87654

Please sign in to comment.