Skip to content

Commit

Permalink
new file pattern for release dists and wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed May 17, 2024
1 parent 5a9f8ee commit af304e6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions release-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export LC_ALL=C

package=cwl-upgrader
module=cwlupgrader
norm_name=cwl_upgrader
extras=

if [ "$GITHUB_ACTIONS" = "true" ]; then
Expand Down Expand Up @@ -66,8 +67,8 @@ pushd src/${package}
pip install -rtest-requirements.txt build
make dist
make test
cp dist/${package}*tar.gz ../../../testenv3/
cp dist/cwl_upgrader*whl ../../../testenv4/
cp dist/${norm_name}*tar.gz ../../../testenv3/
cp dist/${norm_name}*whl ../../../testenv4/
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install
popd # ../.. no subdir named ${proj} here, safe for py.testing the installed module
# shellcheck disable=SC2086
Expand All @@ -83,12 +84,12 @@ source bin/activate
rm -f lib/python-wheels/setuptools* \
&& pip install --force-reinstall -U pip==${pipver} \
&& pip install setuptools==${setuptoolsver} wheel
package_tar=$(find . -name "${package}*tar.gz")
package_tar=$(find . -name "${norm_name}*tar.gz")
pip install "-r${DIR}/test-requirements.txt" build
pip install "${package_tar}${extras}"
mkdir out
tar --extract --directory=out -z -f ${package}*.tar.gz
pushd out/${package}*
tar --extract --directory=out -z -f ${norm_name}*.tar.gz
pushd out/${norm_name}*
make dist
make test
pip install "-r${DIR}/mypy-requirements.txt"
Expand All @@ -109,7 +110,7 @@ source bin/activate
rm -f lib/python-wheels/setuptools* \
&& pip install --force-reinstall -U pip==${pipver} \
&& pip install setuptools==${setuptoolsver} wheel
pip install "$(ls cwl_upgrader*.whl)${extras}"
pip install "$(ls ${norm_name}*.whl)${extras}"
pip install "-r${DIR}/test-requirements.txt"
mkdir not-${module}
pushd not-${module}
Expand Down

0 comments on commit af304e6

Please sign in to comment.