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.py
to use a git+https URL, like this:setup( ..., # 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@c6b941f8046de0188bc167d5a3d4ea7ebdd81e78", # noqa: E501 ..., )
-
Update the
Pipfile.lock
withmake update-pipfile-lock
.
Remember to do what the TODO
comment says!