Skip to content

Commit

Permalink
Fix CLI script in Travis future job
Browse files Browse the repository at this point in the history
Currently failing because of: ``pkg_resources.ContextualVersionConflict: (neo 0.8.0.dev0 (/home/travis/miniconda/envs/test-environment/lib/python3.7/site-packages), Requirement.parse('neo<0.8.0,>=0.7.1'), {'elephant'})``.

After removing ``__requires__ = 'neurotic'`` from the CLI script, ``pkg_resources`` will no longer check for conflicts.
  • Loading branch information
jpgill86 committed Jul 23, 2019
1 parent 75344bf commit cc6e0eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ matrix:
git+https://github.com/NeuralEnsemble/elephant.git \
git+https://github.com/NeuralEnsemble/ephyviewer.git

# prevent CLI script from failing due to conflicting dependency versions
- which neurotic
- ls -l /home/travis/miniconda/envs/test-environment/bin
- cat /home/travis/miniconda/envs/test-environment/bin/neurotic-script.py
- sed -i "/__requires__ = 'neurotic'/d" /home/travis/miniconda/envs/test-environment/bin/neurotic-script.py
- cat /home/travis/miniconda/envs/test-environment/bin/neurotic-script.py

# list versions
- python --version
- python -c "import os, sys; assert sys.version_info[:2] == tuple(map(int, os.environ['TRAVIS_PYTHON_VERSION'].split('.')))[:2]"
Expand Down

0 comments on commit cc6e0eb

Please sign in to comment.