Skip to content

Commit

Permalink
Fix the deployment step in Travis (#47)
Browse files Browse the repository at this point in the history
Publishing to PyPI (when there's a git tag) was failing because pip install attrs>=19 produced
and artifact file; which in turn makes flit build complain.

* add some debug steps to the travis pipeline

* remove unused files

* fix install of latest attrs version

* only install flit in deployment stage

* re-instate normal tests and publish step
  • Loading branch information
janfreyberg authored Jan 16, 2020
1 parent ad0d821 commit dde06dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
9 changes: 0 additions & 9 deletions .dockerignore

This file was deleted.

5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ script:
- find docs -name '*.ipynb' -maxdepth 2 | xargs jupyter nbconvert --to notebook --execute
# submit coverage report to coveralls
- python -m coveralls
# - ls -la
install:
- pip install --upgrade -qq pip flit
- flit install --symlink --extras=test,examples
# - pip install --upgrade -q '.[test,examples]'
# seems to be required for this not to break??
- pip install --upgrade -qq attrs>=19.3.0
- pip install --upgrade -qq 'attrs>=19.3.0'
jobs:
include:
- stage: "Static code analysis"
Expand All @@ -48,6 +49,8 @@ jobs:
- stage: deploy
name: "Deploy to pypi"
if: tag IS present
install:
- pip install flit
script:
- flit build
- env FLIT_USERNAME=$PYPI_USER FLIT_PASSWORD=$PYPI_PASSWORD flit publish
Expand Down
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

0 comments on commit dde06dc

Please sign in to comment.