Skip to content

Commit 0112552

Browse files
committed
update to work with py3status entry_point
1 parent a3df687 commit 0112552

File tree

5 files changed

+31
-8
lines changed

5 files changed

+31
-8
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ __pycache__/
66
# C extensions
77
*.so
88

9+
# arch stuff
10+
temp/
11+
*.zst
12+
*.tar.gz
13+
914
# Distribution / packaging
1015
.Python
1116
build/

PKGBUILD

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Maintainer: Jason McGillivray < mcgillivray dot jason at gmail dot com>
2+
3+
4+
pkgname=py3status-http-monitor
5+
pkgdesc="Python daemon for controlling the fans on amdgpu cards"
6+
pkgver=0.1.0
7+
pkgrel=1
8+
arch=('any')
9+
license=('GPL2')
10+
depends=('python' 'py3status')
11+
makedepends=('python-setuptools')
12+
url="https://github.com/mcgillij/py3status-http-monitor"
13+
source=("py3status-http-monitor-0.1.0.tar.gz")
14+
#source=("https://github.com/mcgillij/amdfan/releases/download/0.1.7/amdfan-0.1.7.tar.gz")
15+
md5sums=('dd00f7e8fb722a776b630d525e3c6d8e')
16+
17+
build() {
18+
cd "$srcdir/$pkgname-$pkgver"
19+
python setup.py build
20+
}
21+
22+
package() {
23+
cd "$srcdir/$pkgname-$pkgver"
24+
python setup.py install --prefix=/usr --root="$pkgdir"
25+
}

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ documentation = "https://github.com/mcgillij/py3status-http-monitor"
1111
keywords = ["http", "monitor", "status", "i3", "py3status"]
1212
include = [ "LICENSE", ]
1313

14-
[tool.poetry.scripts]
15-
py3status_http_monitor = "py3status_http_monitor:run"
16-
1714
[tool.poetry.plugins."py3status"]
18-
module = "py3status_http_monitor"
15+
module = "py3status_http_monitor.http_monitor"
1916

2017
[tool.poetry.dependencies]
2118
python = "^3.9"

src/py3status_http_monitor.py renamed to src/py3status_http_monitor/http_monitor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ def http_monitor(self):
3535
}
3636

3737

38-
def run():
39-
print("You need to install py3status-http-monitor into ~/.i3/py3status/")
40-
41-
4238
if __name__ == "__main__":
4339
from py3status.module_test import module_test
4440
module_test(Py3status)

0 commit comments

Comments
 (0)