15 Commits

Author SHA1 Message Date
Adnan Hodzic
6789cb6ce4 Update logic to determine and set PyGObject version in pyproject.toml based on libgirepository apt package version 2025-04-10 19:02:00 +02:00
Devin McAnelly
af5fb382e1
Added pyasyncore to pyproject, fixing issue #601 (#822)
Changed python version requirement to >=3.9 to fix error:
pygobject requires Python <4.0,>=3.9, so it will not be satisfied for
Python >=3.8,<3.9
Changes to be committed:
	modified:   poetry.lock
	modified:   pyproject.toml
2025-03-25 07:29:35 +01:00
Grimmauld
8f026ac649
deps: allow psutil 7.x (#821)
This allows building with both psutil 6.x and 7.x. Closes #817.

Upstream [1] released psutil 7.0.0 recently, which caused a build failure on nixpkgs ci [2].
Checking release notes [3], `memory_info_ex` was removed (unused in auto-cpufreq),
and minimum python version requirements were increased to what this project uses already anyways.

[1] https://pypi.org/project/psutil/#history
[2] https://hydra.nixos.org/build/292453144/log
[3] https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#700

Tested with:
```patch
diff --git a/flake.nix b/flake.nix
index ab3449b..89a11db 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,6 +1,6 @@
 {
   inputs = {
-    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+    nixpkgs.url = "github:NixOS/nixpkgs/staging-next";
   };

   outputs = {nixpkgs, ...} @ inputs: let
```
2025-03-22 13:01:15 +01:00
shadeyg56
f2c4a2d763 Pin PyGObject version
Fixes #813
2025-03-10 22:51:26 -05:00
LAITH343
081dbda79c
Enhance CLI System Monitoring with a TUI (#810)
* create a cli for better visual monitor, live and stats

- created a system info module
- created system monitor module
- fixed avg_all_core_temp not defined

* fixed snap package error and added missing implementations
2025-03-01 06:43:55 +01:00
Adnan Hodzic
c0d9ec565a auto-cpufreq v2.5.0 release 2025-01-10 08:07:08 +01:00
Adnan Hodzic
a42e8fb51e v2.4.0 release 2024-09-05 07:35:37 +02:00
shadeyg56
c6a4580e85
Unpin psutil and requests (#759) 2024-08-04 10:34:19 +02:00
dependabot[bot]
2b09bf7543
Bump requests from 2.31.0 to 2.32.0 #705
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 17:13:07 +02:00
Adnan Hodzic
78c3f71438 v2.3.0 release 2024-05-09 10:07:52 +02:00
shadeyg56
0815e7eb96
Rework config and reload config on file change/creation/deletion (#663)
* add config.py and config_event_handler.py
also introduces the utils folder

* update config imports and variables

* add 'pyinotify' dependency

* config: check for changes using threading

* config: handle errors and new eventsx

* config: set_path even if file doesn't exist and make new ConfigParser on every update

* fix get_config call

* config: check for changes on moved file

* call notifier.start() manually to prevent hanging

* config: update comments

* battery: fix config imports

* config: fix config deletion detection

* Add load from user config in XDG_CONFIG_HOME if available (#672)

* Add load from user config from in XDG_CONFIG_HOME if available

This update introduces the flexibility to load the configuration file from
multiple locations, prioritizing user preferences and system standards.
Previously, the configuration was strictly read from a hardcoded
system path (`/etc/auto-cpufreq.conf`). Now, the application first checks if the
user has specified a configuration file path via command line arguments. If not,
it looks for a configuration file in the user's config
directory (`$XDG_CONFIG_HOME/auto-cpufreq/auto-cpufreq.conf`). If neither is
found, it defaults to the original system-wide configuration file.

This allows users to add their auto-cpufreq configuration to their dotfiles.

* If --config is set but invalid, exit with error

* Remove redundant empty string check on config file path

* Remove duplicate isfile check for config path

See also: https://github.com/AdnanHodzic/auto-cpufreq/pull/672#discussion_r1548003119

* Update configuration options in README

See also: #672

* config: move find_config_file function and fix finding home directory

* auto_cpufreq: fix hanging on --daemon, --live, and --monitor

* swap pyinotify for patched version

---------

Co-authored-by: Steven Braun <steven.braun.mz@gmail.com>
2024-04-30 08:35:53 +02:00
shadeyg56
5e17ee31b1 update psutil to patched Git version
Fixes #654
2024-04-09 23:57:05 -05:00
Adnan Hodzic
7afd192ff9 v2.2.0 release 2024-02-14 17:47:37 +01:00
Julia
35a08192da
v2.1.0 tag update (#605) 2023-11-22 06:06:27 +01:00
Lab Rat
37e12a4266
Support for pyproject.toml (#576)
* feat: support for pyproject.toml

* Nix: Fix package to work with pyproject.toml

---------

Co-authored-by: shadeyg56 <shadeyg56@gmail.com>
2023-10-13 08:04:49 +02:00