فهرست منبع

Add windows support (#290)

Nikhil Rao 2 سال پیش
والد
کامیت
42e3a8b728
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 3 3
      poetry.lock
  2. 1 1
      pynecone/components/component.py
  3. 1 1
      pynecone/constants.py

+ 3 - 3
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]

+ 1 - 1
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(),
             )
         )
 

+ 1 - 1
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.