glances/snap/snapcraft.yaml

127 lines
3.1 KiB
YAML
Raw Normal View History

2017-06-24 19:47:16 +03:00
name: glances
adopt-info: glances
2017-06-24 19:47:16 +03:00
summary: Glances an Eye on your system. A top/htop alternative.
description: |
Glances is a cross-platform monitoring tool which aims to present
a maximum of information in a minimum of space through a curses or
Web based interface. It can adapt dynamically the displayed information
depending on the user interface size.
2024-02-03 11:59:31 +03:00
base: core22
2017-06-24 19:47:16 +03:00
grade: stable
confinement: strict
apps:
glances:
# adapter: none
command: bin/glances-launch $SNAP/bin/glances
2017-06-24 19:47:16 +03:00
plugs:
- network
- system-observe
2018-01-01 12:43:34 +03:00
- mount-observe
- hardware-observe
- log-observe
- network-observe
- physical-memory-observe
- upower-observe
- home
- network-bind
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
plugs:
home-glances-config:
interface: personal-files
read:
- $HOME/.config/glances/glances.conf
etc-glances-config:
interface: system-files
read:
- /etc/glances/glances.conf
2017-06-24 19:47:16 +03:00
parts:
glances:
after:
- selective-checkout
2017-06-24 19:47:16 +03:00
plugin: python
source: .
# FIXME: Theoretically this also replaces `summary` and `description`
# keys, however due to the following bug we still need to keep
# them until it is fixed.
# https://bugs.launchpad.net/snapcraft/+bug/1813364
parse-info: [setup.py]
override-pull: |
craftctl default
"$CRAFT_STAGE"/scriptlets/selective-checkout
fastapi:
plugin: python
source: https://github.com/tiangolo/fastapi.git
2024-02-03 11:59:31 +03:00
source-tag: '0.109.0'
source-depth: 1
override-build: |
mkdir -p $CRAFT_PART_BUILD/dist
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/fastapi-dist
organize:
fastapi-dist: fastapi/dist
uvicorn:
2017-06-24 19:47:16 +03:00
plugin: python
source: https://github.com/encode/uvicorn.git
2024-02-03 11:59:31 +03:00
source-tag: '0.27.0.post1'
source-depth: 1
2021-01-24 23:51:58 +03:00
override-build: |
mkdir -p $CRAFT_PART_BUILD/dist
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/uvicorn-dist
2021-01-24 23:51:58 +03:00
organize:
uvicorn-dist: uvicorn/dist
2023-11-27 00:40:36 +03:00
orjson:
plugin: python
source: https://github.com/ijl/orjson.git
2024-02-03 11:59:31 +03:00
source-tag: '3.9.12'
2023-11-27 00:40:36 +03:00
source-depth: 1
override-build: |
mkdir -p $CRAFT_PART_BUILD/dist
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/orjson-dist
2023-11-27 00:40:36 +03:00
organize:
orjson-dist: orjson/dist
jinja2:
plugin: python
source: https://github.com/pallets/jinja.git
2024-02-03 11:59:31 +03:00
source-tag: '3.1.3'
2023-11-27 00:40:36 +03:00
source-depth: 1
override-build: |
mkdir -p $CRAFT_PART_BUILD/dist
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/jinja2-dist
2023-11-27 00:40:36 +03:00
organize:
jinja2-dist: jinja2/dist
2017-06-25 11:17:12 +03:00
docker:
plugin: python
source: https://github.com/docker/docker-py.git
2024-02-03 11:59:31 +03:00
source-tag: '7.0.0'
source-depth: 1
2021-01-24 23:51:58 +03:00
override-build: |
mkdir -p $CRAFT_PART_BUILD/dist
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/docker-dist
2021-01-24 23:51:58 +03:00
organize:
docker-dist: docker/dist
launchers:
source: snap/local/launchers
plugin: dump
organize:
'*': bin/
selective-checkout:
plugin: nil
build-packages:
- git
stage-snaps:
- selective-checkout
prime:
- -*