Merge branch 'develop' into issue2791

This commit is contained in:
nicolargo 2024-05-25 10:03:21 +02:00
commit 23cd99d11e
4 changed files with 14 additions and 28 deletions

View File

@ -123,19 +123,12 @@ jobs:
- name: Retrieve Repository Docker metadata - name: Retrieve Repository Docker metadata
id: docker_meta id: docker_meta
uses: crazy-max/ghaction-docker-meta@v5.0.0 uses: docker/metadata-action@v5
with: with:
images: ${{ env.DEFAULT_DOCKER_IMAGE }} images: ${{ env.DEFAULT_DOCKER_IMAGE }}
labels: | labels: |
org.opencontainers.image.url=https://nicolargo.github.io/glances/ org.opencontainers.image.url=https://nicolargo.github.io/glances/
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ env.NODE_ENV }}-${{ matrix.os }}-${{ matrix.tag.tag }}
restore-keys: ${{ runner.os }}-buildx-${{ env.NODE_ENV }}-${{ matrix.os }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
with: with:
@ -166,5 +159,7 @@ jobs:
platforms: ${{ matrix.os != 'ubuntu' && env.DOCKER_PLATFORMS || env.DOCKER_PLATFORMS_UBUNTU }} platforms: ${{ matrix.os != 'ubuntu' && env.DOCKER_PLATFORMS || env.DOCKER_PLATFORMS_UBUNTU }}
target: ${{ matrix.tag.target }} target: ${{ matrix.tag.target }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache # GHA default behaviour overwrites last build cache. Causes alpine and ubuntu cache to overwrite each other.
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max # Use `scope` with the os name to prevent that
cache-from: 'type=gha,scope=${{ matrix.os }}'
cache-to: 'type=gha,mode=max,scope=${{ matrix.os }}'

View File

@ -1,9 +1,8 @@
# install with base requirements file # install with base requirements file
-r requirements.txt -r requirements.txt
docker>=6.1.1; python_version >= "3.7" docker>=6.1.1
packaging; python_version >= "3.7" podman
podman; python_version >= "3.6"
python-dateutil python-dateutil
requests requests
six six

View File

@ -7,35 +7,32 @@ cassandra-driver
chevron chevron
docker>=6.1.1 docker>=6.1.1
elasticsearch elasticsearch
fastapi; python_version >= "3.8" fastapi
graphitesender graphitesender
hddtemp hddtemp
influxdb>=1.0.0 # For InfluxDB < 1.8 influxdb>=1.0.0 # For InfluxDB < 1.8
influxdb-client; python_version >= "3.7" # For InfluxDB >= 1.8 influxdb-client # For InfluxDB >= 1.8
jinja2 jinja2
kafka-python kafka-python
netifaces netifaces
nvidia-ml-py; python_version >= "3.5" nvidia-ml-py
packaging; python_version >= "3.7"
paho-mqtt paho-mqtt
pika pika
podman; python_version >= "3.6" podman
potsdb potsdb
prometheus_client prometheus_client
pycouchdb pycouchdb
pydantic pydantic
pygal pygal
pymdstat pymdstat
pymongo; python_version >= "3.7" pymongo
pySMART.smartx pySMART.smartx
pysnmp-lextudio; python_version >= "3.7" pysnmp-lextudio
python-dateutil python-dateutil
pyzmq pyzmq
requests requests
scandir; python_version < "3.5"
six six
sparklines sparklines
statsd statsd
uvicorn; python_version >= "3.8" uvicorn
wifi
zeroconf==0.131.0 # Waiting correction for ARMv7: https://github.com/python-zeroconf/python-zeroconf/issues/1372 zeroconf==0.131.0 # Waiting correction for ARMv7: https://github.com/python-zeroconf/python-zeroconf/issues/1372

View File

@ -1,8 +1,3 @@
[tool.black]
line-length = 120
skip-string-normalization = true
exclude = '\./glances/outputs/static/*'
[tool.ruff] [tool.ruff]
line-length = 120 line-length = 120
target-version = "py38" target-version = "py38"