From 42e3a8b7284fe68d2780a1c618e0396fa2256c81 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Wed, 18 Jan 2023 21:15:13 -0800 Subject: [PATCH] Add windows support (#290) --- poetry.lock | 6 +++--- pynecone/components/component.py | 2 +- pynecone/constants.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 023c5cbb8..eef27aff4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -609,14 +609,14 @@ plugins = ["importlib-metadata"] [[package]] name = "pyright" -version = "1.1.288" +version = "1.1.290" description = "Command line wrapper for pyright" category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "pyright-1.1.288-py3-none-any.whl", hash = "sha256:ab5da004e2de3b0567c685aa8d38bba68d872b1b4a20f1013400ace571a7efc7"}, - {file = "pyright-1.1.288.tar.gz", hash = "sha256:c45594c5833b01d5125bc291d2498d4ed0f2c2e3dd4fd8236fbdaf597099f617"}, + {file = "pyright-1.1.290-py3-none-any.whl", hash = "sha256:c1a57ad812f740fc7fb6bb416cd7e3f46f4e88384c723192402a77e2e756b550"}, + {file = "pyright-1.1.290.tar.gz", hash = "sha256:956d8efc70eb5a54da54c82feef842affd3a81719c8864769cd196e211961e3a"}, ] [package.dependencies] diff --git a/pynecone/components/component.py b/pynecone/components/component.py index 71f8ef11b..fe5bafd18 100644 --- a/pynecone/components/component.py +++ b/pynecone/components/component.py @@ -339,7 +339,7 @@ class Component(Base, ABC): tag.add_props(**self.event_triggers, key=self.key, sx=self.style).set( contents=utils.join( [str(tag.contents)] + [child.render() for child in self.children] - ), + ).strip(), ) ) diff --git a/pynecone/constants.py b/pynecone/constants.py index a1a09dc6d..3063a8dc2 100644 --- a/pynecone/constants.py +++ b/pynecone/constants.py @@ -126,7 +126,7 @@ DEFAULT_IMAGE = "favicon.ico" # The gitignore file. GITIGNORE_FILE = ".gitignore" # Files to gitignore. -DEFAULT_GITIGNORE = {".web", DB_NAME} +DEFAULT_GITIGNORE = {WEB_DIR, DB_NAME} # The name of the pynecone config module. CONFIG_MODULE = "pcconfig" # The python config file.