Explorar o código

Merge pull request #56 from Avaiga/fix/flask

Fix/flask
Jean-Robin %!s(int64=2) %!d(string=hai) anos
pai
achega
8c5dbf78e5
Modificáronse 3 ficheiros con 6 adicións e 6 borrados
  1. 1 1
      .github/workflows/release.yml
  2. 1 1
      setup.py
  3. 4 4
      taipy/_run.py

+ 1 - 1
.github/workflows/release.yml

@@ -69,6 +69,6 @@ jobs:
 
       - name: Create/update release and tag
         run: |
-            gh release create ${{ github.event.inputs.version }} --target ${{ steps.extract_hash.outputs.hash }} --notes "Release created using Github Workflows"
+            gh release create ${{ github.event.inputs.version }} --target ${{ steps.extract_hash.outputs.hash }} --title ${{ github.event.inputs.version }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 1 - 1
setup.py

@@ -53,7 +53,7 @@ setup(
     name="taipy",
     packages=find_packages(include=['taipy']),
     url="https://github.com/avaiga/taipy",
-    version="1.1.0.dev",
+    version="1.1.0",
     zip_safe=False,
     extras_require=extras_require,
 )

+ 4 - 4
taipy/_run.py

@@ -15,7 +15,7 @@ from .gui import Gui
 from .rest import Rest
 
 
-def _run(*apps: t.List[t.Union[Gui, Rest]], **kwargs):
+def _run(*apps: t.List[t.Union[Gui, Rest]], **kwargs) -> t.Optional[t.Union[Gui, Rest]]:
     """Run one or multiple Taipy services.
 
     A Taipy service is an instance of a class that runs code as a Web application.
@@ -28,14 +28,14 @@ def _run(*apps: t.List[t.Union[Gui, Rest]], **kwargs):
     rest = __typing_get(apps, Rest)
 
     if not rest and not gui:
-        return
+        return None
 
     if gui and rest:
         gui._set_flask(rest._app)
-        gui.run(**kwargs)
+        return gui.run(**kwargs)
     else:
         app = rest or gui
-        app.run(**kwargs)
+        return app.run(**kwargs)
 
 
 def __typing_get(l, type_):