Prepare travis for upcoming poetry 1.0 release

The poetry version command will change in poetry 1.0 (see sdispater/poetry#1191). Without any argument, it won't bump the version anymore but instead just print the current version. This will break the current travis before_install. Let's pin poetry to ~0.12.17 for now and change it once poetry v1.0 releases.
This commit is contained in:
Peter Schmidbauer 2019-10-26 23:00:06 +02:00 committed by GitHub
parent ef23d7eabe
commit 3c68eaf98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ dist: xenial # required for Python >= 3.7
language: python language: python
python: "3.7" python: "3.7"
before_install: before_install:
- pip install poetry - pip install poetry~=0.12.17
install: install:
# we run `poetry version` here to appease poetry about '0.0.0-source' # we run `poetry version` here to appease poetry about '0.0.0-source'
- poetry version - poetry version
@ -11,7 +11,7 @@ script:
- poetry run python --version - poetry run python --version
- poetry run behave - poetry run behave
before_deploy: before_deploy:
- pip install poetry - pip install poetry~=0.12.17
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS - poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
- poetry version $TRAVIS_TAG - poetry version $TRAVIS_TAG
- poetry build - poetry build