Hack to make Bonobo work with py3.10
This commit is contained in:
12
Makefile
12
Makefile
@ -43,7 +43,7 @@ else ifneq ($(QUICK),)
|
||||
@printf "Skipping \033[36m%s\033[0m because \033[36m$$QUICK\033[0m is not empty.\n" $(target)
|
||||
else
|
||||
@printf "Applying \033[36m%s\033[0m target...\n" $(target)
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=19.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=22.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U $(PYTHON_REQUIREMENTS_INLINE) -r $(PYTHON_REQUIREMENTS_FILE)
|
||||
@mkdir -p .medikit; touch $@
|
||||
endif
|
||||
@ -61,7 +61,7 @@ else ifneq ($(QUICK),)
|
||||
@printf "Skipping \033[36m%s\033[0m because \033[36m$$QUICK\033[0m is not empty.\n" $(target)
|
||||
else
|
||||
@printf "Applying \033[36m%s\033[0m target...\n" $(target)
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=19.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=22.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U $(PYTHON_REQUIREMENTS_DEV_INLINE) -r $(PYTHON_REQUIREMENTS_DEV_FILE)
|
||||
@mkdir -p .medikit; touch $@
|
||||
endif
|
||||
@ -78,7 +78,7 @@ else ifneq ($(QUICK),)
|
||||
@printf "Skipping \033[36m%s\033[0m because \033[36m$$QUICK\033[0m is not empty.\n" $(target)
|
||||
else
|
||||
@printf "Applying \033[36m%s\033[0m target...\n" $(target)
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=19.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=22.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U $(PYTHON_REQUIREMENTS_DOCKER_INLINE) -r $(PYTHON_REQUIREMENTS_DOCKER_FILE)
|
||||
@mkdir -p .medikit; touch $@
|
||||
endif
|
||||
@ -92,7 +92,7 @@ else ifneq ($(QUICK),)
|
||||
@printf "Skipping \033[36m%s\033[0m because \033[36m$$QUICK\033[0m is not empty.\n" $(target)
|
||||
else
|
||||
@printf "Applying \033[36m%s\033[0m target...\n" $(target)
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=19.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=22.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U $(PYTHON_REQUIREMENTS_JUPYTER_INLINE) -r $(PYTHON_REQUIREMENTS_JUPYTER_FILE)
|
||||
@mkdir -p .medikit; touch $@
|
||||
endif
|
||||
@ -106,7 +106,7 @@ else ifneq ($(QUICK),)
|
||||
@printf "Skipping \033[36m%s\033[0m because \033[36m$$QUICK\033[0m is not empty.\n" $(target)
|
||||
else
|
||||
@printf "Applying \033[36m%s\033[0m target...\n" $(target)
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=19.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U "pip ~=22.0" wheel
|
||||
$(PIP) install $(PIP_INSTALL_OPTIONS) -U $(PYTHON_REQUIREMENTS_SQLALCHEMY_INLINE) -r $(PYTHON_REQUIREMENTS_SQLALCHEMY_FILE)
|
||||
@mkdir -p .medikit; touch $@
|
||||
endif
|
||||
@ -125,7 +125,7 @@ format: ## Reformats the whole codebase using our standards (requires black an
|
||||
isort -rc -o mondrian -o whistle -y .
|
||||
|
||||
medikit: # Checks installed medikit version and updates it if it is outdated.
|
||||
@$(PYTHON) -c 'import medikit, pip, sys; from packaging.version import Version; sys.exit(0 if (Version(medikit.__version__) >= Version("$(MEDIKIT_VERSION)")) and (Version(pip.__version__) < Version("10")) else 1)' || $(PYTHON) -m pip install -U "pip ~=19.0" "medikit>=$(MEDIKIT_VERSION)"
|
||||
@$(PYTHON) -c 'import medikit, pip, sys; from packaging.version import Version; sys.exit(0 if (Version(medikit.__version__) >= Version("$(MEDIKIT_VERSION)")) and (Version(pip.__version__) < Version("10")) else 1)' || $(PYTHON) -m pip install -U "pip ~=22.0" "medikit>=$(MEDIKIT_VERSION)"
|
||||
|
||||
update: medikit ## Update project artifacts using medikit.
|
||||
$(MEDIKIT) update $(MEDIKIT_UPDATE_OPTIONS)
|
||||
|
||||
Reference in New Issue
Block a user