diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5ab80d5..75d7447 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: Python package on: @@ -15,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, '3.10'] + python-version: [3.9, '3.10'] steps: - uses: actions/checkout@v2 diff --git a/PKGBUILD b/PKGBUILD index 144f42e..39ab944 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,7 +11,7 @@ depends=('python' 'python-yaml' 'python-numpy' 'python-rich' 'python-click') makedepends=('python-setuptools') url="https://github.com/mcgillij/amdfan" source=("https://github.com/mcgillij/amdfan/releases/download/$pkgver/amdfan-$pkgver.tar.gz") -md5sums=('387643f8d342c6abd5c9d67d8f9d3687') +md5sums=('cb938f4c09db0d437e3991402f429114') build() { cd "$srcdir/$pkgname-$pkgver" diff --git a/poetry.lock b/poetry.lock index 261a49c..c1788bb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -14,6 +14,7 @@ files = [ [package.dependencies] lazy-object-proxy = ">=1.4.0" +typing-extensions = {version = ">=3.10", markers = "python_version < \"3.10\""} wrapt = [ {version = ">=1.11,<2", markers = "python_version < \"3.11\""}, {version = ">=1.14,<2", markers = "python_version >= \"3.11\""}, @@ -66,6 +67,7 @@ mypy-extensions = ">=0.4.3" pathspec = ">=0.9.0" platformdirs = ">=2" tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""} +typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -453,6 +455,7 @@ mccabe = ">=0.6,<0.8" platformdirs = ">=2.2.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} tomlkit = ">=0.10.1" +typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] spelling = ["pyenchant (>=3.2,<4.0)"] @@ -675,5 +678,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "^3.10" -content-hash = "f7fe9fccc7b0c9356fa0cb6ba15ecca3be0ad55dd73c8bbf957a685fcbab1ab5" +python-versions = "^3.9 || ^3.10" +content-hash = "43d051e9e3f67367d76b2d0910e2672a8726eae801af9180b1d1e518ee6893e4" diff --git a/pyproject.toml b/pyproject.toml index b4016a4..624e046 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ include = [ "LICENSE", ] [tool.poetry.dependencies] -python = "^3.8 || ^3.9 || ^3.10" +python = "^3.9 || ^3.10" numpy = "^1.24.1" pyyaml = "^6.0" click = "^8.1.3" diff --git a/src/amdfan/amdfan.py b/src/amdfan/amdfan.py index 3d9c283..8bb33bd 100755 --- a/src/amdfan/amdfan.py +++ b/src/amdfan/amdfan.py @@ -6,9 +6,10 @@ import re import sys import time -from typing import List, Dict, Callable +from typing import Any, List, Dict, Callable import yaml import numpy as np +from numpy import ndarray import click from rich.console import Console @@ -292,7 +293,7 @@ def __init__(self, points: list) -> None: if np.min(self.speeds) <= 3: raise ValueError("Lowest speed value to be set to 4") # Driver BUG - def get_speed(self, temp: int) -> int: + def get_speed(self, temp: int) -> ndarray[Any, Any]: """ returns a speed for a given temperature :param temp: int