To maintain order in Search API we added the pyproject.toml, this file serves as a central configuration file for Python projects, providing a standardized way to define project metadata, build configurations, dependency management, and other project-specific settings. It helps streamline project development, build processes, and collaboration among developers.
For each new dependency
Go to pyproject.toml and look for the dependency section
Tip |
---|
We recommend using version specific definition, if for some reason you need more flexibility on a dependency please check Dependency specifiers |
Once your library is in the dependencies section future developer will be able to install all necessary dependencies with
Code Block |
---|
pip install -e . |
Note |
---|
You can use requirements file, but we don't recommend this, the use of the pyproject ensures a double check on the dependencies to install, and ins |
The pyproject.toml file and requirements.txt serve different purposes when it comes to managing dependencies in Python projects. Here are some advantages of using pyproject.toml over requirements.txt:
...