Skip to content

Commit

Permalink
update to make importing as a lib easier
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgillij committed Apr 10, 2021
1 parent 7b38aee commit dacf072
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

pkgname=amdfan
pkgdesc="Python daemon for controlling the fans on amdgpu cards"
pkgver=0.1.7
pkgver=0.1.8
pkgrel=1
arch=('any')
license=('GPL2')
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/0.1.7/amdfan-0.1.7.tar.gz")
md5sums=('c6c556f72fbe35a4bdb777754e8e41aa')
source=("https://github.com/mcgillij/amdfan/releases/download/0.1.8/amdfan-0.1.8.tar.gz")
md5sums=('47964c44e9a345d8944dfcb6325e99ec')

build() {
cd "$srcdir/$pkgname-$pkgver"
Expand All @@ -22,5 +22,5 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --prefix=/usr --root="$pkgdir"
mkdir -p "$pkgdir/usr/lib/systemd/system"
install -Dm644 amdfan/amdfan.service "$pkgdir/usr/lib/systemd/system/"
}
install -Dm644 src/amdfan/amdfan.service "$pkgdir/usr/lib/systemd/system/"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "amdfan"
version = "0.1.7"
version = "0.1.8"
description = "Fan monitor and controller for AMD gpus in Linux"
authors = ["mcgillij <[email protected]>"]
license = "GPL-2.0-only"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions amdfan/amdfan.py → src/amdfan/amdfan.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ def load_config(path):
"--configuration",
is_flag=True,
default=False,
help="Prints out the default configuration for you to use"
help="Prints out the default configuration for you to use",
)
@click.option(
"--service",
is_flag=True,
default=False,
help="Prints out the amdfan.service file to use with systemd"
help="Prints out the amdfan.service file to use with systemd",
)
def cli(daemon, monitor, manual, configuration, service):
if daemon:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_card.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from amdfan.amdfan import Card
from src.amdfan.amdfan import Card


pwm_max = 250
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from click.testing import CliRunner
from amdfan.amdfan import cli
from src.amdfan.amdfan import cli


class TestCli(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_curve.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from amdfan.amdfan import Curve
from src.amdfan.amdfan import Curve


class TestCurve(unittest.TestCase):
Expand Down

0 comments on commit dacf072

Please sign in to comment.