fix: pin dependencies to exact versions using pip-tools#874
Open
shiwani42 wants to merge 1 commit intoOWASP:mainfrom
Open
fix: pin dependencies to exact versions using pip-tools#874shiwani42 wants to merge 1 commit intoOWASP:mainfrom
shiwani42 wants to merge 1 commit intoOWASP:mainfrom
Conversation
Closes OWASP#868 Introduces pip-tools for reproducible dependency management. requirements.in is the human-maintained list of direct dependencies, deduplicated and normalised from the previous requirements.txt. requirements.txt is the pip-compiled lockfile with all transitive dependencies pinned to exact versions, generated with Python 3.12.3 to match CI. Adds update-deps Makefile target for regenerating the lockfile and documents the workflow in docs/developmentSetup.md. No changes to CI or install workflow: pip install -r requirements.txt continues to work as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #868
Summary
requirements.inis the human-maintained list of direct dependencies, deduplicated and normalised from the previousrequirements.txt(removed 8 duplicates, normalised package names e.g.scikit_learntoscikit-learn,pygithubtoPyGithub)requirements.txtis now the pip-compiled lockfile with all transitive dependencies pinned to exact versions, generated with Python 3.12.3 to match CImake update-depstarget for regenerating the lockfiledocs/developmentSetup.mdso contributors know to editrequirements.inand runmake update-depsrather than editingrequirements.txtdirectlyNo changes to CI or install workflow.
pip install -r requirements.txtcontinues to work as before.Test plan
requirements.txtvs new pinnedrequirements.txt: identical test results (113 tests, same 3 pre-existing failures, same 5 pre-existing errors)black --checkpasses on bothmypyproduces same 752 pre-existing errors on bothflask routesloads all 41 routes on both