From cdc18e1a8f9bfecade91f213bb9245f8b251e9eb Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Fri, 9 Jul 2021 20:21:22 +0200 Subject: [PATCH] Add basic doc on making dep changes based on previously written one --- source/dependency-changes.rst | 19 +++++++++++++++++++ source/index.rst | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 source/dependency-changes.rst diff --git a/source/dependency-changes.rst b/source/dependency-changes.rst new file mode 100644 index 0000000..8245504 --- /dev/null +++ b/source/dependency-changes.rst @@ -0,0 +1,19 @@ +Making dependency changes +========================= + +Updating Python package dependencies +------------------------------------ + +To update all dependencies, the GitHub Actions workflow for generating requirements files should be used: +https://github.com/Cog-Creators/Red-DiscordBot/actions/workflows/run_pip_compile.yaml + +Run the above workflow and, after it finishes, download the "merged" artifact archive. +Copy all of the files from this archive to the ``requirements/`` directory in the repository, +overriding any already present files. Now, you can look at the git diff to see +which dependency versions changed. + +When updating a dependency to a newer version: + +- Verify that all code commented with ``DEP-WARN`` is not affected by the new dependency versions +- Read the changelogs for dependencies to make sure there are no (breaking) changes + that may affect our code diff --git a/source/index.rst b/source/index.rst index 759f538..f4bf20c 100644 --- a/source/index.rst +++ b/source/index.rst @@ -9,3 +9,5 @@ Full Table of Contents .. toctree:: :maxdepth: 2 + + dependency-changes