Commit 51ebed2b authored by rusty1s's avatar rusty1s
Browse files

fix py2.7

parent 6d5c7467
...@@ -23,6 +23,7 @@ install: ...@@ -23,6 +23,7 @@ install:
- pip install pycodestyle - pip install pycodestyle
- pip install flake8 - pip install flake8
- pip install codecov - pip install codecov
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install "pytest<5.0"; fi
script: script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then pycodestyle .; fi - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then pycodestyle .; fi
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then flake8 .; fi - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then flake8 .; fi
......
...@@ -25,11 +25,7 @@ url = 'https://github.com/rusty1s/pytorch_scatter' ...@@ -25,11 +25,7 @@ url = 'https://github.com/rusty1s/pytorch_scatter'
install_requires = [] install_requires = []
setup_requires = ['pytest-runner'] setup_requires = ['pytest-runner']
tests_require = [ tests_require = ['pytest', 'pytest-cov']
'pytest<5.0;python_version<"3.0"',
'pytest;python_version>="3.0"',
'pytest-cov',
]
setup( setup(
name='torch_scatter', name='torch_scatter',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment