To update a dependency:
- Update the dependency version in
setup.py
. - Make any necessary changes.
- Run
make update-pipfile-lock
to update thePipfile.lock
file. - File a PR.
If you made changes to py-gitguardian and want to use them in GGShield there are a few steps you need to perform.
To use your changes locally:
- Activate
ggshield
virtual environment. - Run
pip install -e path/to/your/py-gitguardian/checkout
.
You only need to do this once. From now on, changes you make in py-gitguardian are immediately available in ggshield.
For the changes to pass on CI, you need to:
-
Update py-gitguardian dependency in
setup.cfg
to use a git+https URL, like this:install_requires = ... # TODO: replace this with a real version number as soon as a new version of # py-gitguardian is out pygitguardian @ git+https://github.com/GitGuardian/py-gitguardian.git@cfa919cff68cc4d3ca40bf2bb8a6f24bc5fca786 ...
-
Update the
Pipfile.lock
withmake update-pipfile-lock
.
Remember to do what the TODO
comment says!