Skip to content

Commit 1431dde

Browse files
authored
enable pytest 5.x (#342)
1 parent 76cf662 commit 1431dde

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ environment:
2727
install:
2828
- "set PATH=%PYTHON%\\Scripts;%PATH%"
2929
- "%PYTHON%\\python.exe -m pip install -U pip setuptools^>=20.3 wheel"
30-
- "%PYTHON%\\python.exe -m pip install -U pytest==4.6.4 codecov pytest-xdist pytest-cov galaxy-lib"
30+
- "%PYTHON%\\python.exe -m pip install -U pytest^<6 codecov pytest-xdist pytest-cov galaxy-lib"
3131
# Note the use of a `^` to escape the `>`
3232

3333
build_script:

release-test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ then
2525
rm -f "testenv${PYVER}_1/lib/python-wheels/setuptools"*
2626
pip install --force-reinstall -U pip==${pipver}
2727
pip install setuptools==${setupver} wheel
28-
pip install pytest\<5 pytest-xdist -rrequirements.txt
28+
pip install pytest\<6 pytest-xdist -rrequirements.txt
2929
make test
3030
pip uninstall -y ${package} || true; pip uninstall -y ${package} \
3131
|| true; make install
@@ -56,7 +56,7 @@ rm lib/python-wheels/setuptools* \
5656
# The following can fail if you haven't pushed your commits to ${repo}
5757
pip install -e "git+${repo}@${HEAD}#egg=${package}"
5858
pushd src/${package}
59-
pip install pytest\<5 pytest-xdist
59+
pip install pytest\<6 pytest-xdist
6060
make dist
6161
make test
6262
cp dist/${package}*tar.gz "../../../testenv${PYVER}_3/"
@@ -77,7 +77,7 @@ rm lib/python-wheels/setuptools* \
7777
&& pip install --force-reinstall -U pip==${pipver} \
7878
&& pip install setuptools==${setupver} wheel
7979
pip install ${package}*tar.gz
80-
pip install pytest\<5 pytest-xdist
80+
pip install pytest\<6 pytest-xdist
8181
mkdir out
8282
tar --extract --directory=out -z -f ${package}*.tar.gz
8383
pushd out/${package}*
@@ -100,7 +100,7 @@ rm lib/python-wheels/setuptools* \
100100
&& pip install --force-reinstall -U pip==${pipver} \
101101
&& pip install setuptools==${setupver} wheel
102102
pip install ${module}*.whl
103-
pip install pytest\<5 pytest-xdist
103+
pip install pytest\<6 pytest-xdist
104104
mkdir not-${module}
105105
pushd not-${module}
106106
# shellcheck disable=SC2086

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
tagger = egg_info_cmd.egg_info
1919

2020
needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
21-
pytest_runner = ["pytest < 5", "pytest-runner"] if needs_pytest else []
21+
pytest_runner = ["pytest < 6", "pytest-runner"] if needs_pytest else []
2222

2323
if os.path.exists("requirements.txt"):
2424
requirements = [
@@ -94,7 +94,7 @@
9494
]
9595

9696
extras_require = {
97-
"docs": ["sphinx >= 2.2", "sphinx-rtd-theme", "pytest"],
97+
"docs": ["sphinx >= 2.2", "sphinx-rtd-theme", "pytest < 6"],
9898
}
9999

100100
setup(
@@ -117,7 +117,7 @@
117117
install_requires=install_requires,
118118
extras_require=extras_require,
119119
test_suite="tests",
120-
tests_require=["pytest<5"],
120+
tests_require=["pytest<6"],
121121
entry_points={
122122
"console_scripts": [
123123
"schema-salad-tool=schema_salad.main:main",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ passenv =
2525
deps =
2626
-rrequirements.txt
2727
py{35,36,37,38,39}-unit: codecov
28-
py{35,36,37,38,39}-unit: pytest<5
28+
py{35,36,37,38,39}-unit: pytest<6
2929
py{35,36,37,38,39}-unit: pytest-xdist
3030
py{35,36,37,38,39}-unit: pytest-cov
3131
py{38}-lint: flake8

0 commit comments

Comments
 (0)