mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-07 05:23:49 +01:00
Merge 62ae7f0fd1 into 26021c8cd3
This commit is contained in:
commit
207b8e24a9
|
|
@ -1,3 +1,24 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=82.0.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "throttled"
|
||||
version = "0.11"
|
||||
description = "Fix Intel CPU throttling on Linux"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.8"
|
||||
dependencies = [
|
||||
"dbus-python>=1.3.2",
|
||||
"pygobject>=3.48.2",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
throttled = "throttled:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
skip-string-normalization = true
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
configparser==7.0.0
|
||||
dbus-python==1.3.2
|
||||
PyGObject==3.48.2
|
||||
1
src/throttled/__init__.py
Normal file
1
src/throttled/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from .throttled import main
|
||||
|
|
@ -22,7 +22,7 @@ from time import time
|
|||
import dbus
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
from gi.repository import GLib
|
||||
from mmio import MMIO, MMIOError
|
||||
from .mmio import MMIO, MMIOError
|
||||
|
||||
DEFAULT_SYSFS_POWER_PATH = '/sys/class/power_supply/AC*/online'
|
||||
VOLTAGE_PLANES = {'CORE': 0, 'GPU': 1, 'CACHE': 2, 'UNCORE': 3, 'ANALOGIO': 4}
|
||||
Loading…
Reference in a new issue