How to customize third party dependencies when package-ing? #9386
-
The spacy package command generates a list of third party dependencies and fills them into the meta requirements. For each dependency, the acceptable versions is coded as a minor version range like Can I customize the version range, or leave it out completely? I'm finding this tight version range difficult to work with when I don't want to limit minor version upgrades (e.g., allow |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can customize the version ranges however you'd like, but you'd need to rerun We were trying to automate more of this (especially including |
Beta Was this translation helpful? Give feedback.
You can customize the version ranges however you'd like, but you'd need to rerun
python setup.py sdist
orpython setup.py bdist_wheel
to update the final packages after you editmeta.json
.We were trying to automate more of this (especially including
spacy-transformers
), since we noticed it was an issue for users, but the defaults might not be what you need for your package. And there are also still cases where you might need to add dependencies by hand that aren't expressed directly through the registered functions (sentencepiece
for some transformer models, for example).