Skip to content

Commit

Permalink
Changed: Fix bento dependencies (#527)
Browse files Browse the repository at this point in the history
* Changed: move pydantic deps from extras to regular dependencies

* Changed: use <= in bento build sdk dependency
  • Loading branch information
mexicat authored Aug 7, 2024
1 parent 3f8e4bd commit 4cc8846
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion extras_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
'chardet==5.1.0',
'datasets==2.14.6',
'evaluate==0.4.1',
'pydantic>2,<2.8',
'spacy>=2.3.5',
'torch>=1.8.1',
'torchvision>=0.9.1',
Expand Down
1 change: 0 additions & 1 deletion konfuzio_sdk/settings_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def is_dependency_installed(dependency: str) -> bool:

extras = [
'chardet==5.1.0',
'pydantic>2,<2.8',
'torch>=1.8',
'torchvision>=0.9',
'transformers>=4.21.2',
Expand Down
2 changes: 1 addition & 1 deletion konfuzio_sdk/trainer/information_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def build_bento(self, bento_model):
],
labels=self.bento_metadata,
python={
'packages': [f'konfuzio-sdk=={self.konfuzio_sdk_version}'],
'packages': [f'konfuzio-sdk<={self.konfuzio_sdk_version}'],
'lock_packages': True,
},
build_ctx=temp_dir,
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'numpy==1.23.5',
'pandas>=1.3.5,<2.0.0',
'Pillow>=8.4.0',
'pydantic>2,<2.8',
'python-dateutil>=2.8.2',
'python-decouple>=3.3',
'python-dotenv>=1.0,<1.1',
Expand Down

0 comments on commit 4cc8846

Please sign in to comment.