This file contains hidden or 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
import fastapi | |
app = fastapi.FastAPI() | |
@app.get("/") | |
async def root(): | |
return {"msg": "Hello World"} | |
if __name__ == "__main__": | |
uvicorn.run(app) |
This file contains hidden or 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
import anyio | |
from anyio import from_thread, to_thread | |
def main(): | |
def in_main(): | |
anyio.Event() | |
def in_thread(): | |
from_thread.run_sync(in_main) |
This file contains hidden or 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
SHELL=/bin/bash | |
export PEX_ROOT:=$(abspath .)/.pex | |
download-wheels: requirements-ci.txt | |
pip wheel -r requirements-ci.txt --wheel-dir wheels | |
pexes: $(patsubst %,pex%.pex,$(shell seq 10)) | |
pex%.pex: | |
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o $@ -r requirements-ci.txt |
This file contains hidden or 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
{ | |
"name": "tobias/symfony-cache-issue", | |
"description": "Testcase for a symfony cache issue", | |
"type": "project", | |
"require": { | |
"symfony/cache": "^4.2" | |
}, | |
"authors": [ | |
{ | |
"name": "Tobias Alex-Petersen", |