From 5674d9a7a00f2d57e2344c9bcc0d9b24406d9a65 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 27 Apr 2023 11:43:50 -0700 Subject: [PATCH] Fix pynecone json (#894) --- pynecone/utils/prerequisites.py | 4 +--- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pynecone/utils/prerequisites.py b/pynecone/utils/prerequisites.py index 3f664af94..1122a613c 100644 --- a/pynecone/utils/prerequisites.py +++ b/pynecone/utils/prerequisites.py @@ -207,10 +207,8 @@ def initialize_web_directory(): path_ops.cp(constants.WEB_TEMPLATE_DIR, constants.WEB_DIR) # Write the current version of distributed pynecone package to a PCVERSION_APP_FILE.""" - with open(constants.PCVERSION_APP_FILE) as f: # type: ignore - pynecone_json = json.load(f) - pynecone_json["version"] = constants.VERSION with open(constants.PCVERSION_APP_FILE, "w") as f: + pynecone_json = {"version": constants.VERSION} json.dump(pynecone_json, f, ensure_ascii=False) diff --git a/pyproject.toml b/pyproject.toml index 7bf1aa7f2..db14b5171 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pynecone" -version = "0.1.26" +version = "0.1.27" description = "Web apps in pure Python." license = "Apache-2.0" authors = [