fix: wrong command in Makefile since drop poetry (#6745)
* fix: wrong command in Makefile since drop poetry Signed-off-by: yihong0618 <zouzou0208@gmail.com> * fix: address comments Signed-off-by: yihong0618 <zouzou0208@gmail.com> * fix: update Makefile to use uvx for codespell commands --------- Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
7e1452149c
commit
61e345a029
1 changed files with 3 additions and 26 deletions
29
Makefile
29
Makefile
|
|
@ -33,14 +33,6 @@ all: help
|
||||||
# See https://code.visualstudio.com/remote/advancedcontainers/improve-performance
|
# See https://code.visualstudio.com/remote/advancedcontainers/improve-performance
|
||||||
CLEAR_DIRS = $(foreach dir,$1,$(shell mkdir -p $(dir) && find $(dir) -mindepth 1 -delete))
|
CLEAR_DIRS = $(foreach dir,$1,$(shell mkdir -p $(dir) && find $(dir) -mindepth 1 -delete))
|
||||||
|
|
||||||
# increment the patch version of the current package
|
|
||||||
patch: ## bump the version in langflow and langflow-base
|
|
||||||
@echo 'Patching the version'
|
|
||||||
@poetry version patch
|
|
||||||
@echo 'Patching the version in langflow-base'
|
|
||||||
@cd src/backend/base && poetry version patch
|
|
||||||
@make lock
|
|
||||||
|
|
||||||
# check for required tools
|
# check for required tools
|
||||||
check_tools:
|
check_tools:
|
||||||
@command -v uv >/dev/null 2>&1 || { echo >&2 "$(RED)uv is not installed. Aborting.$(NC)"; exit 1; }
|
@command -v uv >/dev/null 2>&1 || { echo >&2 "$(RED)uv is not installed. Aborting.$(NC)"; exit 1; }
|
||||||
|
|
@ -114,7 +106,7 @@ clean_npm_cache:
|
||||||
clean_all: clean_python_cache clean_npm_cache # clean all caches and temporary directories
|
clean_all: clean_python_cache clean_npm_cache # clean all caches and temporary directories
|
||||||
@echo "$(GREEN)All caches and temporary directories cleaned.$(NC)"
|
@echo "$(GREEN)All caches and temporary directories cleaned.$(NC)"
|
||||||
|
|
||||||
setup_uv: ## install poetry using pipx
|
setup_uv: ## install uv using pipx
|
||||||
pipx install uv
|
pipx install uv
|
||||||
|
|
||||||
add:
|
add:
|
||||||
|
|
@ -190,12 +182,10 @@ tests: ## run unit, integration, coverage tests
|
||||||
######################
|
######################
|
||||||
|
|
||||||
codespell: ## run codespell to check spelling
|
codespell: ## run codespell to check spelling
|
||||||
@poetry install --with spelling
|
@uvx codespell --toml pyproject.toml
|
||||||
poetry run codespell --toml pyproject.toml
|
|
||||||
|
|
||||||
fix_codespell: ## run codespell to fix spelling errors
|
fix_codespell: ## run codespell to fix spelling errors
|
||||||
@poetry install --with spelling
|
@uvx codespell --toml pyproject.toml --write
|
||||||
poetry run codespell --toml pyproject.toml --write
|
|
||||||
|
|
||||||
format_backend: ## backend code formatters
|
format_backend: ## backend code formatters
|
||||||
@uv run ruff check . --fix
|
@uv run ruff check . --fix
|
||||||
|
|
@ -421,19 +411,6 @@ endif
|
||||||
publish_testpypi: ## build the frontend static files and package the project and publish it to PyPI
|
publish_testpypi: ## build the frontend static files and package the project and publish it to PyPI
|
||||||
@echo 'Publishing the project'
|
@echo 'Publishing the project'
|
||||||
|
|
||||||
ifdef base
|
|
||||||
#TODO: replace with uvx twine upload dist/*
|
|
||||||
poetry config repositories.test-pypi https://test.pypi.org/legacy/
|
|
||||||
make publish_base_testpypi
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef main
|
|
||||||
#TODO: replace with uvx twine upload dist/*
|
|
||||||
poetry config repositories.test-pypi https://test.pypi.org/legacy/
|
|
||||||
make publish_langflow_testpypi
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# example make alembic-revision message="Add user table"
|
# example make alembic-revision message="Add user table"
|
||||||
alembic-revision: ## generate a new migration
|
alembic-revision: ## generate a new migration
|
||||||
@echo 'Generating a new Alembic revision'
|
@echo 'Generating a new Alembic revision'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue