-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Bumped to 0.1.1 of official release, and applied breaking changes - Have a flaky, but working plugin using lift files
- Loading branch information
1 parent
e797d47
commit ea2b275
Showing
10 changed files
with
230 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[lift] | ||
name = "hellofastapi" | ||
description = "An example FastAPI Lift application including using an external uvicorn server" | ||
platforms = [ | ||
"linux-aarch64", | ||
"linux-x86_64", | ||
"macos-aarch64", | ||
"macos-x86_64", | ||
] | ||
|
||
[[lift.interpreters]] | ||
id = "cpython" | ||
provider = "PythonBuildStandalone" | ||
release = "20230507" | ||
version = "3.11.3" | ||
|
||
[[lift.files]] | ||
name = ":hellofastapi-pex" | ||
|
||
[[lift.commands]] | ||
exe = "{scie.bindings.venv}/venv/bin/uvicorn" | ||
args = ["hellofastapi.main:app", "--port", "7999"] | ||
description = "The FastAPI executable." | ||
|
||
[[lift.bindings]] | ||
name = "venv" | ||
description = "Installs HelloFastAPI into a venv and pre-compiles .pyc" | ||
exe = "#{cpython:python}" | ||
args = [ | ||
"{:hellofastapi-pex}", | ||
"venv", | ||
"--bin-path", | ||
"prepend", | ||
"--compile", | ||
"--rm", | ||
"all", | ||
"{scie.bindings}/venv", | ||
] | ||
|
||
[lift.bindings.env.default] | ||
"=PATH" = "{cpython}/python/bin:{scie.env.PATH}" | ||
"PEX_TOOLS" = "1" | ||
"PEX_ROOT" = "{scie.bindings}/pex_root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[lift] | ||
name = "helloworld" | ||
description = "An example HelloWorld Lift application" | ||
platforms = [ | ||
"linux-aarch64", | ||
"linux-x86_64", | ||
"macos-aarch64", | ||
"macos-x86_64", | ||
] | ||
|
||
[[lift.interpreters]] | ||
id = "cpython" | ||
provider = "PythonBuildStandalone" | ||
release = "20230507" | ||
version = "3.11.3" | ||
|
||
[[lift.files]] | ||
name = ":helloworld-pex" | ||
|
||
[[lift.commands]] | ||
# This selects the `python` binary from within the CPython 3.11 interpreter distribution | ||
# (a tarball) provided by PythonBuildStandalone above. | ||
exe = "#{cpython:python}" | ||
args = [ | ||
"{:helloworld-pex}", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.