[+] update

1. fix python3.13 regression
    with class property;
  2. update books dependency;
This commit is contained in:
Siarhei Siniak 2025-01-18 12:43:28 +03:00
parent 759ce361e3
commit ff22d9311b
3 changed files with 7 additions and 7 deletions

@ -25,7 +25,7 @@ python_clean_env:
python_put_env:
[[ -d $(INSTALL_ROOT)/env3 ]] || (\
uv venv --system-site-packages --seed $(INSTALL_ROOT)/env3 && \
$(INSTALL_ROOT)/env3/bin/python3 -m pip install uv \
$(INSTALL_ROOT)/env3/bin/python3 -m pip install --force-reinstall uv \
);
python_clean_dist:
@ -37,13 +37,14 @@ python_clean_dist:
python_clean: python_clean_dist python_clean_env
UV_ARGS ?= --offline
python_put_dist:
for f in \
$(PYTHON_PROJECTS); do \
[[ -d $$f/dist ]] && continue; \
echo $$f; \
python3 -m build -n $$f; \
$(INSTALL_ROOT)/env3/bin/python3 -m uv pip install --offline $$f/dist/*.whl; \
$(INSTALL_ROOT)/env3/bin/python3 -m uv pip install $(UV_ARGS) $$f/dist/*.whl; \
done
ln -sf $(INSTALL_ROOT)/env3/bin/online-fxreader-pr34-commands $(INSTALL_ROOT)/commands

@ -1 +1 @@
Subproject commit 7cc59533c0eddbe04e3b58109d1d861a6f92f40d
Subproject commit 41006e6e73c710c0b78d1fbb37b149579dad34f0

@ -2542,7 +2542,6 @@ def desktop_services(argv):
class Cpufreq:
@classmethod
@property
def profile(cls) -> Literal['applesmc.768']:
if os.path.exists('/sys/bus/platform/devices/applesmc.768'):
return 'applesmc.768'
@ -2551,7 +2550,7 @@ def desktop_services(argv):
@classmethod
def powersave(cls):
if cls.profile == 'applesmc.768':
if cls.profile() == 'applesmc.768':
subprocess.check_call(r'''
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
echo powersave | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
@ -2563,7 +2562,7 @@ echo 2000 > /sys/bus/platform/devices/applesmc.768/fan1_output;
@classmethod
def performance(cls):
if cls.profile == 'applesmc.768':
if cls.profile() == 'applesmc.768':
subprocess.check_call(r'''
echo powersave | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
@ -3981,4 +3980,4 @@ def commands_cli(
if __name__ == '__main__':
sys.exit(commands_cli())
sys.exit(commands_cli())