refactor: update dependency versions and streamline backend installation commands (#3939)

* Update Makefile to streamline backend dependency installation commands

* Update dependency versions in pyproject.toml for weaviate-client, httpx, and others

* Update dependency versions in pyproject.toml for better compatibility and stability

* new lock

* refactor: streamline backend dependency installation commands

* update examples formatting
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-09-26 16:23:26 -03:00 • committed by GitHub
commit bf2aadf6a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 73 additions and 60 deletions

View file

@ -64,13 +64,11 @@ help: ## show this help message
reinstall_backend: ## forces reinstall all dependencies (no caching)
@echo 'Installing backend dependencies'
#@poetry install > /dev/null 2>&1
@cd src/backend/base && uv sync -n --reinstall && cd ../../../ && uv sync -n --reinstall > /dev/null 2>&1
@uv sync -n --reinstall --frozen
install_backend: ## install the backend dependencies
@echo 'Installing backend dependencies'
#@poetry install > /dev/null 2>&1
@cd src/backend/base && uv sync && cd ../../../ && uv sync > /dev/null 2>&1
@uv sync --frozen
install_frontend: ## install the frontend dependencies
@echo 'Installing frontend dependencies'
@ -141,7 +139,7 @@ coverage: ## run the tests and generate a coverage report
#@poetry run coverage erase
unit_tests: ## run unit tests
cd src/backend/base && uv sync --extra dev && cd ../../../ && uv sync --extra dev > /dev/null 2>&1
@uv sync --extra dev --frozen
ifeq ($(async), true)
uv run pytest src/backend/tests \
--ignore=src/backend/tests/integration \