File tree 5 files changed +47
-4
lines changed
5 files changed +47
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ pip install --force-reinstall /tmp/liboxide-${VERSION}-py3-none-any.whl
13
13
endef
14
14
export SCRIPT
15
15
16
+ ifeq ($(VENV_BIN_ACTIVATE ) ,)
17
+ VENV_BIN_ACTIVATE := .venv/bin/activate
18
+ endif
19
+
16
20
dist/liboxide-${VERSION}.tar.gz : $(shell find liboxide -type f)
17
21
python -m build --sdist
18
22
@@ -31,4 +35,26 @@ install: deploy
31
35
test : install
32
36
cat test.py
| ssh
[email protected] /opt/bin/python -u
33
37
34
- .PHONY : clean install test deploy
38
+ $(VENV_BIN_ACTIVATE ) :
39
+ @echo " Setting up development virtual env in .venv"
40
+ python -m venv .venv
41
+ . $(VENV_BIN_ACTIVATE ) ; \
42
+ python -m pip install ruff
43
+
44
+ lint : $(VENV_BIN_ACTIVATE )
45
+ . $(VENV_BIN_ACTIVATE ) ; \
46
+ python -m ruff check
47
+
48
+ lint-fix : $(VENV_BIN_ACTIVATE )
49
+ . $(VENV_BIN_ACTIVATE ) ; \
50
+ python -m ruff check
51
+
52
+ format : $(VENV_BIN_ACTIVATE )
53
+ . $(VENV_BIN_ACTIVATE ) ; \
54
+ python -m ruff format --diff
55
+
56
+ format-fix : $(VENV_BIN_ACTIVATE )
57
+ . $(VENV_BIN_ACTIVATE ) ; \
58
+ python -m ruff format
59
+
60
+ .PHONY : clean install test deploy lint lint-fix format format-fix
Original file line number Diff line number Diff line change 14
14
from ._wifi import Network
15
15
from ._wifi import WifiAPI as wifi
16
16
from ._xdgsettings import Settings as settings
17
+
18
+ __all__ = [
19
+ "Application" ,
20
+ "apps" ,
21
+ "TooFewArguments" ,
22
+ "TooManyArguments" ,
23
+ "ObjectNotFound" ,
24
+ "RotException" ,
25
+ "Notification" ,
26
+ "notification" ,
27
+ "power" ,
28
+ "screen" ,
29
+ "Screenshot" ,
30
+ "system" ,
31
+ "BSS" ,
32
+ "Network" ,
33
+ "wifi" ,
34
+ "settings" ,
35
+ ]
Original file line number Diff line number Diff line change 3
3
from ._util import classproperty
4
4
from ._util import rot
5
5
from ._util import static_init
6
- from ._apps import AppsAPI
7
6
8
7
9
8
class Notification (APIObject ):
Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
import json
3
- import sys
4
3
5
4
from ._errors import TooFewArguments
6
5
from ._errors import TooManyArguments
Original file line number Diff line number Diff line change 2
2
name = " liboxide"
3
3
description = " Python wrapper around the oxide command line tools."
4
4
readme = " README.md"
5
- version = " 0.1.1 "
5
+ version = " 0.1.2 "
6
6
requires-python = " >= 3.9"
7
7
authors = [
8
8
{
name =
" Nathaniel van Diepen" ,
email =
" [email protected] " },
You can’t perform that action at this time.
0 commit comments