nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.56k stars 1.52k forks source link

Distribute as Flatpak #1374

Open drschwabe opened 5 years ago

drschwabe commented 5 years ago

After searching for it on flathub.org today, figured I would post here to make the suggestion/request to make Glances available as a Flatpak

Kallb123 commented 2 years ago

This would be amazing for Steam Deck compatibility, to keep an eye on battery etc.

nicolargo commented 2 years ago

Should have a look on:

Any contributor welcome to package Glances for Flathub

nicolargo commented 1 year ago

Give a first (failed) try here: https://github.com/nicolargo/glancesflatpak

flatpak-builder --force-clean --ccache --require-changes --repo=repo --subject="Build of python3-glances-full, `date`" build com.github.nicolargo.Glances.yml
Emptying app dir 'build'
Downloading sources
Starting build of com.github.nicolargo.glances
Cache miss, checking out last cache hit
========================================================================
Building module python3-glances in /home/nicolargo/dev/glancesflatpak/.flatpak-builder/build/python3-glances-2
========================================================================
Running: pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "glances[all]" --no-build-isolation
Using pip 23.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)
Looking in links: file:///run/build/python3-glances
Processing ./Glances-3.3.1.1-py3-none-any.whl
Processing ./psutil-5.9.5.tar.gz (from glances[all])
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info
  writing /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/dependency_links.txt
  writing requirements to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/requires.txt
  writing top-level names to /tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file '/tmp/pip-modern-metadata-dy9z8duq/psutil.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-dy9z8duq/psutil-5.9.5.dist-info'
  Preparing metadata (pyproject.toml) ... done
Processing ./defusedxml-0.7.1-py2.py3-none-any.whl (from glances[all])
Processing ./packaging-23.1-py3-none-any.whl (from glances[all])
Processing ./ujson-5.7.0.tar.gz (from glances[all])
  Running command Preparing metadata (pyproject.toml)
  /usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
    warnings.warn(msg)
  running dist_info
  creating /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info
  writing /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/dependency_links.txt
  writing top-level names to /tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE.txt'
  writing manifest file '/tmp/pip-modern-metadata-f053gpb1/ujson.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-f053gpb1/ujson-0.0.0.dist-info'
  Preparing metadata (pyproject.toml) ... done
  WARNING: Requested ujson>=5.4.0 from file:///run/build/python3-glances/ujson-5.7.0.tar.gz (from glances[all]), but installing version 0.0.0
Discarding file:///run/build/python3-glances/ujson-5.7.0.tar.gz: Requested ujson>=5.4.0 from file:///run/build/python3-glances/ujson-5.7.0.tar.gz (from glances) has inconsistent version: expected '5.7.0', but metadata has '0.0.0'
INFO: pip is looking at multiple versions of glances[all] to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement ujson>=5.4.0; python_version >= "3.7" (from glances[all]) (from versions: 5.7.0)
ERROR: No matching distribution found for ujson>=5.4.0; python_version >= "3.7"
Error: module python3-glances: Child process exited with code 1
nicolargo commented 1 year ago

To be tested after the 4.0.0 release.