@@ -7,6 +7,7 @@ export LC_ALL=C
77
88package=cwl-utils
99module=cwl_utils
10+ extras=" "
1011
1112if [ " $GITHUB_ACTIONS " = " true" ]; then
1213 # We are running as a GH Action
1718 HEAD=$( git rev-parse HEAD)
1819fi
1920run_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
2223DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
2324
2425rm -Rf testenv? || /bin/true
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} "
6465pushd src/${package}
6566pip install -rtest-requirements.txt
6667make dist
@@ -84,7 +85,7 @@ rm -f lib/python-wheels/setuptools* \
8485 && pip install setuptools==${setuptoolsver} wheel
8586package_tar=$( find . -name " ${package} *tar.gz" )
8687pip install " -r${DIR} /test-requirements.txt"
87- pip install " ${package_tar} "
88+ pip install " ${package_tar}${extras} "
8889mkdir out
8990tar --extract --directory=out -z -f ${package} * .tar.gz
9091pushd out/${package} *
@@ -106,7 +107,7 @@ source bin/activate
106107rm -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} "
110111pip install " -r${DIR} /test-requirements.txt"
111112mkdir not-${module}
112113pushd not-${module}
0 commit comments