Skip to content

Commit

Permalink
Fix Travis on 6.x.x. (#1022)
Browse files Browse the repository at this point in the history
This is a backport of #1013
because Travis fails on the 6.x.x branch as well.  See for example:
https://travis-ci.org/github/plone/plone.restapi/jobs/743167173
  • Loading branch information
mauritsvanrees committed Dec 18, 2020
1 parent 94842f5 commit 7069d7e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -37,3 +37,4 @@ pip-selfcheck.json
/.vscode
/.ipython
/.mypy_cache/
.*project
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -47,10 +47,11 @@ before_install:
- echo "[buildout]" > $HOME/.buildout/default.cfg
- echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg
- echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg
- pip install -r requirements.txt
- virtualenv -p `which python` .
- bin/pip install -r requirements.txt
install:
- sed -ie "s#plone-x.x.x.cfg#plone-$PLONE_VERSION.cfg#" travis.cfg
- buildout -t 10 -c travis.cfg
- bin/buildout -t 10 -c travis.cfg
script:
- if [ "$PLONE_VERSION" == "5.2.x" ] && [ $TRAVIS_PYTHON_VERSION == '3.7' ]; then pip install black && black src/ --check; fi
- bin/code-analysis
Expand Down
9 changes: 9 additions & 0 deletions plone-5.2.x.cfg
Expand Up @@ -8,3 +8,12 @@ versions=versions
[versions]
plone.restapi =
plone.namedfile = 5.2.2

# Error: The requirement ('importlib-metadata>=1') is not allowed by your [versions] constraint (0.23)
importlib-metadata = 2.0.0

# Error: The requirement ('pep517>=0.9') is not allowed by your [versions] constraint (0.8.2)
pep517 = 0.9.1

# Error: The requirement ('virtualenv>=20.0.35') is not allowed by your [versions] constraint (20.0.26)
virtualenv = 20.0.35

0 comments on commit 7069d7e

Please sign in to comment.