From 1665b0d57fe86e1a8e01227113014d86d41f2b67 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Fri, 21 Jul 2023 22:40:30 -0700 Subject: [PATCH] Rename script to `build` for consistency All our other helper build scripts are simply called `build`. So now that this is the only python build script, we no longer need to disambiguate it from the other build script... so let's also rename it to just `build` for consistency with the other ecosystems. Split out as a separate commit from the prior one in order to make the `git` trail easier to follow. --- python/Dockerfile | 10 +++++----- python/helpers/{build_for_version => build} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename python/helpers/{build_for_version => build} (100%) diff --git a/python/Dockerfile b/python/Dockerfile index be4934e07e9e..d262fe3b9591 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -56,25 +56,25 @@ RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git -- FROM python-core as python-3.10 RUN pyenv install $PY_3_10 \ - && bash /opt/python/helpers/build_for_version $PY_3_10 \ + && bash /opt/python/helpers/build $PY_3_10 \ && cd /usr/local/.pyenv \ && tar czf 3.10.tar.gz versions/$PY_3_10 FROM python-core as python-3.9 RUN pyenv install $PY_3_9 \ - && bash /opt/python/helpers/build_for_version $PY_3_9 \ + && bash /opt/python/helpers/build $PY_3_9 \ && cd /usr/local/.pyenv \ && tar czf 3.9.tar.gz versions/$PY_3_9 FROM python-core as python-3.8 RUN pyenv install $PY_3_8 \ - && bash /opt/python/helpers/build_for_version $PY_3_8 \ + && bash /opt/python/helpers/build $PY_3_8 \ && cd /usr/local/.pyenv \ && tar czf 3.8.tar.gz versions/$PY_3_8 FROM python-core as python-3.7 RUN pyenv install $PY_3_7 \ - && bash /opt/python/helpers/build_for_version $PY_3_7 \ + && bash /opt/python/helpers/build $PY_3_7 \ && cd /usr/local/.pyenv \ && tar czf 3.7.tar.gz versions/$PY_3_7 @@ -125,7 +125,7 @@ ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt" RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git --branch $PYENV_VERSION --single-branch --depth=1 /usr/local/.pyenv RUN pyenv install $PY_3_11 \ && pyenv global $PY_3_11 \ - && bash /opt/python/helpers/build_for_version $PY_3_11 + && bash /opt/python/helpers/build $PY_3_11 COPY --from=python-3.10 /usr/local/.pyenv/3.10.tar.gz /usr/local/.pyenv/3.10.tar.gz COPY --from=python-3.9 /usr/local/.pyenv/3.9.tar.gz /usr/local/.pyenv/3.9.tar.gz diff --git a/python/helpers/build_for_version b/python/helpers/build similarity index 100% rename from python/helpers/build_for_version rename to python/helpers/build