From d88f81f206dd3da38fcf7ed6dc45a39125097413 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 17 Jul 2019 12:19:52 +0200 Subject: [PATCH] Polish Makefile removing unused target 'patch-dev' Since 'make patch-dev' is no longer needed, we can get rid of it, and also delete 'srcd/superset/superset_config_dev.py' Signed-off-by: David Pordomingo --- Makefile | 11 ----------- srcd/superset/superset_config_dev.py | 11 ----------- 2 files changed, 22 deletions(-) delete mode 100644 srcd/superset/superset_config_dev.py diff --git a/Makefile b/Makefile index 43f7d0af..4a0cf328 100644 --- a/Makefile +++ b/Makefile @@ -72,17 +72,6 @@ patch: clean apply-patch apply-patch: cp -r $(PATCH_SOURCE_DIR)/* $(SUPERSET_DIR)/ -# Copy src-d files in the superset repository using symlinks. it's useful for development. -# Allows to run flask locally and work only inside superset directory. -.PHONY: patch-dev -patch-dev: clean - @diff=`diff -r $(PATCH_SOURCE_DIR) $(SUPERSET_DIR) | grep "$(PATCH_SOURCE_DIR)" | awk '{gsub(/: /,"/");print $$3}'`; \ - for file in $${diff}; do \ - to=`echo $${file} | cut -d'/' -f2-`; \ - ln -s "$(PWD)/$${file}" "$(SUPERSET_DIR)/$${to}"; \ - done; \ - ln -s "$(PWD)/$(PATCH_SOURCE_DIR)/superset/superset_config_dev.py" "$(SUPERSET_DIR)/superset_config.py"; \ - # Start a watcher that will run 'make apply-patch' automatically when 'srcd' changes # It will require either inotify or fswatch. More info in CONTRIBUTING.md .PHONY: watch diff --git a/srcd/superset/superset_config_dev.py b/srcd/superset/superset_config_dev.py deleted file mode 100644 index 401c86dc..00000000 --- a/srcd/superset/superset_config_dev.py +++ /dev/null @@ -1,11 +0,0 @@ -GITBASE_DATABASE_URI = 'mysql://root@127.0.0.1:3306/gitbase' -BBLFSH_WEB_ADDRESS = 'http://127.0.0.1:9999' -WTF_CSRF_EXEMPT_LIST = ['superset.bblfsh.views.api'] - - -def mutator(): - # pylint: disable=unused-variable - from superset.bblfsh import views # noqa - - -FLASK_APP_MUTATOR = mutator