-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): avoid version conflicts (#636)
Addresses #631. * Uses constraints to keep dependency versions more consistent. * Moves all dependencies to .in files which are then ingested by setup.py. * Adds script to check consistency of all extras. * Adds consistency check to CI. I should note that while it shouldn't be possible to cause a conflict between base.txt and any of the extras (because base.txt constrains all the extras) it is possible to get a conflict between two of the extras files. There are ways of trying to avoid that (like constraining each file by all the files that have already been processed before it in the order given in the make pip-compile target) but the ones I could think of seemed a little overwrought, and come with problems of their own. If a conflict arises, it should be flagged by CI or locally with make check-deps. When/if that happens, you can resolve the conflict by adding appropriate global constraints in requirements/constraints.txt. Also note that if fileA.in is constrained by fileB.txt, then fileB.in should be compiled before fileA.in in the make pip-compile target. Otherwise fileA.in will be compiled with the old version of fileB.txt which can cause conflicts or keep dependencies from being updated properly.
- Loading branch information
Showing
39 changed files
with
557 additions
and
2,108 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
include requirements/base.in | ||
include requirements/huggingface.in | ||
include requirements/local-inference.in | ||
include requirements/ingest-s3.in | ||
include requirements/ingest-azure.in | ||
include requirements/ingest-discord.in | ||
include requirements/ingest-github.in | ||
include requirements/ingest-gitlab.in | ||
include requirements/ingest-reddit.in | ||
include requirements/ingest-slack.in | ||
include requirements/ingest-wikipedia.in | ||
include requirements/ingest-google-drive.in |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-c "constraints.in" | ||
argilla | ||
chardet | ||
lxml | ||
msg_parser | ||
nltk | ||
openpyxl | ||
pandas | ||
pdfminer.six | ||
pillow | ||
pypandoc | ||
python-docx | ||
python-pptx | ||
python-magic | ||
markdown | ||
requests |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a | ||
# a |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#################################################################################################### | ||
# This file can house global constraints that aren't *direct* requirements of the package or any | ||
# extras. Putting a dependency here will only affect dependency sets that contain them -- in other | ||
# words, if something does not require a constraint, it will not be installed. | ||
#################################################################################################### | ||
# NOTE(alan): Pinning to avoid conflicts with downstream ingest-s3 | ||
urllib3<1.27, >=1.25.4 | ||
# consistency with local-inference-pin | ||
protobuf<3.21 | ||
# NOTE(robinson) - Required pins for security scans | ||
jupyter-core>=4.11.2 | ||
wheel>=0.38.1 | ||
# NOTE(robinson) - The following pins are to address | ||
# vulnerabilities in dependency scans | ||
certifi>=2022.12.07 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-c constraints.in | ||
-c base.txt | ||
-c test.txt | ||
jupyter | ||
ipython | ||
pip-tools | ||
pre-commit | ||
# NOTE(robinson) - Required pins for security scans | ||
jupyter-core>=4.11.2 | ||
wheel>=0.38.1 |
Oops, something went wrong.