diff --git a/python/README.md b/python/README.md index 62e2b35b8464..5181f112fbb8 100644 --- a/python/README.md +++ b/python/README.md @@ -9,9 +9,8 @@ We rely on `pyenv` to manage Python's versions. Updating the list of known versions might be tricky, here are the steps: 1. Update `pyenv` version in our [`Dockerfile`](https://github.com/dependabot/dependabot-core/blob/main/Dockerfile), you may use commit hash if new `pyenv` version is not released yet 2. Then, update `pyenv global` version in `Dockerfile`, we always use the latest (and the greatest) Python version there is -3. The next step is to update our [`build`](https://github.com/dependabot/dependabot-core/blob/main/python/helpers/build) script, bump the latest Python version there -4. Now, update the list of known Python version in [`python_versions.rb`](https://github.com/dependabot/dependabot-core/blob/main/python/lib/dependabot/python/python_versions.rb) -5. The last step is to tweak our tests, if required. The easiest way to determine which one to tweak is just by analyzing the failing output +3. Now, update the list of known Python version in [`python_versions.rb`](https://github.com/dependabot/dependabot-core/blob/main/python/lib/dependabot/python/python_versions.rb) +4. The last step is to tweak our tests, if required. The easiest way to determine which one to tweak is just by analyzing the failing output [Example PR](https://github.com/dependabot/dependabot-core/pull/3440) that does all these things. diff --git a/python/helpers/build b/python/helpers/build deleted file mode 100755 index 231886789749..000000000000 --- a/python/helpers/build +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -e - -if [ -z "$DEPENDABOT_NATIVE_HELPERS_PATH" ]; then - echo "Unable to build, DEPENDABOT_NATIVE_HELPERS_PATH is not set" - exit 1 -fi - -install_dir="$DEPENDABOT_NATIVE_HELPERS_PATH/python" -mkdir -p "$install_dir" - -helpers_dir="$(dirname "${BASH_SOURCE[0]}")" -cp -r \ - "$helpers_dir/lib" \ - "$helpers_dir/run.py" \ - "$helpers_dir/requirements.txt" \ - "$install_dir" - -cd "$install_dir" -PYENV_VERSION=3.11.4 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" -PYENV_VERSION=3.10.12 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" -PYENV_VERSION=3.9.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" -PYENV_VERSION=3.8.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" -PYENV_VERSION=3.7.17 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt"