From bcf4ce45fc0394ea64d35062c97a5e5dfdedd29b Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 26 Nov 2023 10:02:30 +0100 Subject: Rename any reference to Bottle in doc and dep file. Ready to refactor the main glances_restful_api.py file. --- snap/snapcraft.yaml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'snap') 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 -- cgit v1.2.3