Initial packaging working

pip install works if client files are built and moved manually
This commit is contained in:
Charlotte Weaver
2018-07-05 17:06:51 -07:00
parent 85506db971
commit 451f95b0a4
6 changed files with 44 additions and 13 deletions
-3
View File
@@ -13,7 +13,6 @@ Compress(app)
CORS(app)
# Config
CONFIG_FILE = os.environ.get("CXG_CONFIG_FILE", default="scanpy-test.cfg")
CXG_DIR = os.environ.get("CXG_DIRECTORY", default="/Users/charlotteweaver/Documents/Git/cxg-v2/data/")
SECRET_KEY = os.environ.get("CXG_SECRET_KEY", default="SparkleAndShine")
ENGINE = os.environ.get("CXG_ENGINE", default="scanpy")
@@ -24,8 +23,6 @@ CXG_API_BASE = os.environ.get("CXG_API_BASE2", default="http://0.0.0.0:5005/api/
if not CONFIG_FILE:
raise ValueError("No config file set for Flask application")
# TODO check what is actually being configured here
app.config.from_pyfile(os.path.join(CXG_DIR, "config", CONFIG_FILE), silent=True)
app.config.update(
SECRET_KEY=SECRET_KEY,
CXG_API_BASE=CXG_API_BASE,