Skip to content

Commit 5ab6d47

Browse files
committed
adjust release test for Python 3.10
1 parent 10b4c11 commit 5ab6d47

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ diff-cover.html: coverage.xml
142142

143143
## test : run the ${MODULE} test suite
144144
test: $(PYSOURCES)
145-
python setup.py test ${PYTEST_EXTRA}
145+
pytest ${PYTEST_EXTRA}
146146

147147
## testcov : run the ${MODULE} test suite and collect coverage
148148
testcov: $(PYSOURCES)

release-test.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export LC_ALL=C
77

88
package=cwl-utils
99
module=cwl_utils
10+
extras=""
1011

1112
if [ "$GITHUB_ACTIONS" = "true" ]; then
1213
# We are running as a GH Action
@@ -17,8 +18,8 @@ else
1718
HEAD=$(git rev-parse HEAD)
1819
fi
1920
run_tests="bin/py.test --pyargs ${module}"
20-
pipver=20.3b1 # minimum required version of pip for Python 3.9
21-
setuptoolsver=41.1.0 # required for Python 3.9
21+
pipver=20.3 # minimum required version of pip for Python 3.10
22+
setuptoolsver=50.0.0 # required for Python 3.10
2223
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
2324

2425
rm -Rf testenv? || /bin/true
@@ -34,7 +35,7 @@ then
3435
rm -f testenv1/lib/python-wheels/setuptools* \
3536
&& pip install --force-reinstall -U pip==${pipver} \
3637
&& pip install setuptools==${setuptoolsver} wheel
37-
pip install -rtest-requirements.txt
38+
pip install -rtest-requirements.txt ".${extras}"
3839
make test
3940
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
4041
mkdir testenv1/not-${module}
@@ -60,7 +61,7 @@ rm -f lib/python-wheels/setuptools* \
6061
&& pip install --force-reinstall -U pip==${pipver} \
6162
&& pip install setuptools==${setuptoolsver} wheel
6263
# The following can fail if you haven't pushed your commits to ${repo}
63-
pip install -e "git+${repo}@${HEAD}#egg=${package}"
64+
pip install -e "git+${repo}@${HEAD}#egg=${package}${extras}"
6465
pushd src/${package}
6566
pip install -rtest-requirements.txt
6667
make dist
@@ -84,7 +85,7 @@ rm -f lib/python-wheels/setuptools* \
8485
&& pip install setuptools==${setuptoolsver} wheel
8586
package_tar=$(find . -name "${package}*tar.gz")
8687
pip install "-r${DIR}/test-requirements.txt"
87-
pip install "${package_tar}"
88+
pip install "${package_tar}${extras}"
8889
mkdir out
8990
tar --extract --directory=out -z -f ${package}*.tar.gz
9091
pushd out/${package}*
@@ -106,7 +107,7 @@ source bin/activate
106107
rm -f lib/python-wheels/setuptools* \
107108
&& pip install --force-reinstall -U pip==${pipver} \
108109
&& pip install setuptools==${setuptoolsver} wheel
109-
pip install ${module}*.whl
110+
pip install "$(ls ${module}*.whl)${extras}"
110111
pip install "-r${DIR}/test-requirements.txt"
111112
mkdir not-${module}
112113
pushd not-${module}

0 commit comments

Comments
 (0)