diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-11-26 10:02:30 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-11-26 10:02:30 +0100 |
commit | bcf4ce45fc0394ea64d35062c97a5e5dfdedd29b (patch) | |
tree | e22f75fe8f89b6b1d306ce81629b4d7ce87ae642 /snap | |
parent | 36ed96b05a6627aa8eeb4f8afbd7a268ce0aa572 (diff) |
Rename any reference to Bottle in doc and dep file. Ready to refactor the main glances_restful_api.py file.
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4af96e96..7185846c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -53,16 +53,28 @@ parts: override-pull: | snapcraftctl pull "$SNAPCRAFT_STAGE"/scriptlets/selective-checkout - bottle: + + fastapi: + plugin: python + source: https://github.com/tiangolo/fastapi.git + source-tag: '0.104.1' + source-depth: 1 + override-build: | + mkdir -p $SNAPCRAFT_PART_BUILD/dist + cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/fastapi-dist + organize: + fastapi-dist: fastapi/dist + + uvicorn: plugin: python - source: https://github.com/bottlepy/bottle.git - source-branch: release-0.12 + source: https://github.com/encode/uvicorn.git + source-tag: '0.24.0.post1' source-depth: 1 override-build: | mkdir -p $SNAPCRAFT_PART_BUILD/dist - cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/bottle-dist + cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/uvicorn-dist organize: - bottle-dist: bottle/dist + uvicorn-dist: uvicorn/dist docker: plugin: python |