6 Commits

Author SHA1 Message Date
geos_one
c7290907ed make compat to buster 2025-08-10 01:49:15 +02:00
root
d75e6c51bd Bump 2025-08-06 15:14:17 +02:00
root
206067cb4f Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1'
with Debian dir abc6ff77b6
2025-08-06 15:00:39 +02:00
root
e7961a02b2 New upstream version 3.1.1 2025-08-06 15:00:39 +02:00
Mario Fetka
c813f3cb15 update compat 2023-07-01 11:58:21 +02:00
Mario Fetka
3f4ba32dbb Imported Upstream version 3.1.0 2023-07-01 11:55:30 +02:00
14 changed files with 47 additions and 121 deletions

View File

@@ -1,37 +0,0 @@
language: python
dist: xenial
python:
- "3.6"
- "3.7"
- "3.8"
# TODO add 3.9
- "3.9-dev"
install: pip install tox-travis tox tox-venv
# Used by the `test` stage.
script: tox
stages:
- test
- lint
jobs:
allow_failures:
- python: "3.9-dev"
include:
# The `test` stage using the `python` matrix defined above
# is included implicitly.
- stage: lint
name: "Code Linting"
python: "3.7"
script: TOXENV=lint tox
- stage: check-docs
name: "Docs check"
python: "3.7"
script: TOXENV=check-docs tox

10
debian/afancontrol.postinst.debhelper vendored Normal file
View File

@@ -0,0 +1,10 @@
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p afancontrol
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p afancontrol || true
fi
# End automatically added section

12
debian/afancontrol.postrm.debhelper vendored Normal file
View File

@@ -0,0 +1,12 @@
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'afancontrol.service' >/dev/null || true
fi
fi
# End automatically added section

10
debian/afancontrol.prerm.debhelper vendored Normal file
View File

@@ -0,0 +1,10 @@
# Automatically added by dh_python3
if command -v py3clean >/dev/null 2>&1; then
py3clean -p afancontrol
else
dpkg -L afancontrol | sed -En -e '/^(.*)\/(.+)\.py$/s,,rm "\1/__pycache__/\2".*,e'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi
# End automatically added section

3
debian/afancontrol.substvars vendored Normal file
View File

@@ -0,0 +1,3 @@
python3:Depends=python3-click, python3:any
misc:Depends=
misc:Pre-Depends=

13
debian/changelog vendored
View File

@@ -1,5 +1,13 @@
<<<<<<< HEAD afancontrol (3.1.1-1) UNRELEASED; urgency=medium
=======
[ Mario Fetka ]
* Imported Upstream version 3.1.0
[ root ]
* New upstream version 3.1.1
-- root <mario.fetka@disconnected-by-peer.at> Wed, 06 Aug 2025 15:01:06 +0200
afancontrol (3.1.0-1) unstable; urgency=medium afancontrol (3.1.0-1) unstable; urgency=medium
[ Juha Yrjölä ] [ Juha Yrjölä ]
@@ -16,7 +24,6 @@ afancontrol (3.0.0-2) unstable; urgency=medium
-- Kostya Esmukov <kostya@esmukov.ru> Mon, 02 Aug 2021 19:19:34 +0000 -- Kostya Esmukov <kostya@esmukov.ru> Mon, 02 Aug 2021 19:19:34 +0000
>>>>>>> upstream/3.1.0
afancontrol (3.0.0-1) unstable; urgency=medium afancontrol (3.0.0-1) unstable; urgency=medium
* Drop support for prometheus-client < 0.1.0 (debian stretch) * Drop support for prometheus-client < 0.1.0 (debian stretch)

16
debian/control vendored
View File

@@ -2,9 +2,8 @@ Source: afancontrol
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: Kostya Esmukov <kostya@esmukov.ru> Maintainer: Kostya Esmukov <kostya@esmukov.ru>
Build-Depends: debhelper-compat (= 13), Build-Depends: debhelper-compat (= 12),
dh-python, dh-python,
debhelper (>= 9.20160709) | dh-systemd,
python3-all, python3-all,
python3-click, python3-click,
python3-prometheus-client (>= 0.1.0), python3-prometheus-client (>= 0.1.0),
@@ -12,14 +11,6 @@ Build-Depends: debhelper-compat (= 13),
python3-requests, python3-requests,
python3-serial, python3-serial,
python3-setuptools python3-setuptools
<<<<<<< HEAD
Build-Depends-Indep: python3-pytest,
python3-requests,
python3-click,
python3-prometheus-client (>= 0.1.0),
python3-serial
=======
>>>>>>> upstream/3.1.0
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: https://github.com/KostyaEsmukov/afancontrol Homepage: https://github.com/KostyaEsmukov/afancontrol
@@ -30,15 +21,10 @@ Depends: hddtemp,
python3-click, python3-click,
python3-pkg-resources, python3-pkg-resources,
python3-prometheus-client (>= 0.1.0), python3-prometheus-client (>= 0.1.0),
<<<<<<< HEAD
python3-serial
Suggests: freeipmi-tools,
=======
python3-serial, python3-serial,
${misc:Depends}, ${misc:Depends},
${python3:Depends} ${python3:Depends}
Suggests: freeipmi-tools Suggests: freeipmi-tools
>>>>>>> upstream/3.1.0
Description: Advanced Fan Control program (Python 3) Description: Advanced Fan Control program (Python 3)
afancontrol is an Advanced Fan Control program, which controls PWM afancontrol is an Advanced Fan Control program, which controls PWM
fans according to the current temperatures of the system components. fans according to the current temperatures of the system components.

2
debian/rules vendored
View File

@@ -9,4 +9,4 @@ export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/tests/ export PYBUILD_TEST_ARGS={dir}/tests/
%: %:
dh $@ --with systemd,python3 --buildsystem=pybuild dh $@ --with python3 --buildsystem=pybuild

View File

@@ -26,15 +26,7 @@ per-file-ignores =
[isort] [isort]
multi_line_output = 3 multi_line_output = 3
<<<<<<< HEAD
; https://github.com/ambv/black#how-black-wraps-lines
include_trailing_comma = True
force_grid_wrap = 0
combine_as_imports = True
line_length = 88
=======
profile = black profile = black
>>>>>>> upstream/3.1.0
[metadata] [metadata]
author = Kostya Esmukov author = Kostya Esmukov
@@ -48,13 +40,6 @@ classifier =
Programming Language :: Python Programming Language :: Python
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 :: Only
<<<<<<< HEAD
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
=======
>>>>>>> upstream/3.1.0
Topic :: System :: Hardware Topic :: System :: Hardware
Topic :: System :: Monitoring Topic :: System :: Monitoring
Topic :: System :: Systems Administration Topic :: System :: Systems Administration
@@ -82,11 +67,7 @@ install_requires =
package_dir = package_dir =
= src = src
packages = find: packages = find:
<<<<<<< HEAD
python_requires = >=3.6
=======
python_requires = >=3.7 python_requires = >=3.7
>>>>>>> upstream/3.1.0
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
@@ -98,17 +79,6 @@ arduino =
metrics = metrics =
prometheus-client>=0.1.0 prometheus-client>=0.1.0
dev = dev =
<<<<<<< HEAD
black==20.8b1
coverage==5.3
flake8==3.8.4
isort==5.5.4
mypy==0.782
pytest==6.1.0
requests
sphinx==3.2.1
wheel
=======
black==22.10.0 black==22.10.0
coverage==6.5.0 coverage==6.5.0
flake8==5.0.4 flake8==5.0.4
@@ -119,7 +89,6 @@ dev =
vcrpy==4.2.1 vcrpy==4.2.1
requests requests
types-requests types-requests
>>>>>>> upstream/3.1.0
[options.packages.find] [options.packages.find]
where = src where = src

View File

@@ -1,5 +1 @@
<<<<<<< HEAD
__version__ = "3.0.0"
=======
__version__ = "3.1.0" __version__ = "3.1.0"
>>>>>>> upstream/3.1.0

View File

@@ -1,8 +1,5 @@
import configparser import configparser
<<<<<<< HEAD
=======
import glob import glob
>>>>>>> upstream/3.1.0
from typing import Any, Generic, Iterator, Optional, Type, TypeVar, Union, overload from typing import Any, Generic, Iterator, Optional, Type, TypeVar, Union, overload
T = TypeVar("T", bound=str) T = TypeVar("T", bound=str)
@@ -131,8 +128,6 @@ class ConfigParserSection(Generic[T]):
"[%s] %r option is expected to be set" % (self.__section.name, option) "[%s] %r option is expected to be set" % (self.__section.name, option)
) )
return res return res
<<<<<<< HEAD
=======
def expand_glob(path: str): def expand_glob(path: str):
@@ -142,4 +137,3 @@ def expand_glob(path: str):
if len(matches) == 1: if len(matches) == 1:
return matches[0] return matches[0]
raise ValueError("Expected glob to expand to a single path, got %r" % (matches,)) raise ValueError("Expected glob to expand to a single path, got %r" % (matches,))
>>>>>>> upstream/3.1.0

View File

@@ -1,11 +1,7 @@
from pathlib import Path from pathlib import Path
from typing import NewType from typing import NewType
<<<<<<< HEAD
from afancontrol.configparser import ConfigParserSection
=======
from afancontrol.configparser import ConfigParserSection, expand_glob from afancontrol.configparser import ConfigParserSection, expand_glob
>>>>>>> upstream/3.1.0
from afancontrol.pwmfan.base import ( from afancontrol.pwmfan.base import (
BaseFanPWMRead, BaseFanPWMRead,
BaseFanPWMWrite, BaseFanPWMWrite,
@@ -28,10 +24,6 @@ class LinuxFanSpeed(BaseFanSpeed):
def from_configparser(cls, section: ConfigParserSection) -> BaseFanSpeed: def from_configparser(cls, section: ConfigParserSection) -> BaseFanSpeed:
return cls(FanInputDevice(section["fan_input"])) return cls(FanInputDevice(section["fan_input"]))
@classmethod
def from_configparser(cls, section: ConfigParserSection) -> BaseFanSpeed:
return cls(FanInputDevice(section["fan_input"]))
def get_speed(self) -> FanValue: def get_speed(self) -> FanValue:
return FanValue(int(self._fan_input.read_text())) return FanValue(int(self._fan_input.read_text()))
@@ -49,10 +41,6 @@ class LinuxFanPWMRead(BaseFanPWMRead):
def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMRead: def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMRead:
return cls(PWMDevice(section["pwm"])) return cls(PWMDevice(section["pwm"]))
@classmethod
def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMRead:
return cls(PWMDevice(section["pwm"]))
def get(self) -> PWMValue: def get(self) -> PWMValue:
return PWMValue(int(self._pwm.read_text())) return PWMValue(int(self._pwm.read_text()))
@@ -71,10 +59,6 @@ class LinuxFanPWMWrite(BaseFanPWMWrite):
def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMWrite: def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMWrite:
return cls(PWMDevice(section["pwm"])) return cls(PWMDevice(section["pwm"]))
@classmethod
def from_configparser(cls, section: ConfigParserSection) -> BaseFanPWMWrite:
return cls(PWMDevice(section["pwm"]))
def _set_raw(self, pwm: PWMValue) -> None: def _set_raw(self, pwm: PWMValue) -> None:
self._pwm.write_text(str(int(pwm))) self._pwm.write_text(str(int(pwm)))

View File

@@ -2,11 +2,7 @@ import re
from pathlib import Path from pathlib import Path
from typing import Optional, Tuple from typing import Optional, Tuple
<<<<<<< HEAD
from afancontrol.configparser import ConfigParserSection
=======
from afancontrol.configparser import ConfigParserSection, expand_glob from afancontrol.configparser import ConfigParserSection, expand_glob
>>>>>>> upstream/3.1.0
from afancontrol.temp.base import Temp, TempCelsius from afancontrol.temp.base import Temp, TempCelsius

View File

@@ -1,9 +1,5 @@
[tox] [tox]
<<<<<<< HEAD
envlist=py{36,37,38,39,310}{,-arduino,-metrics},lint,check-docs
=======
envlist=py{37,38,39,310,311,312}{,-arduino,-metrics},lint,check-docs envlist=py{37,38,39,310,311,312}{,-arduino,-metrics},lint,check-docs
>>>>>>> upstream/3.1.0
[testenv] [testenv]
extras = extras =