sysetup 1.3.1__tar.gz → 1.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sysetup-1.3.1/src/sysetup.egg-info → sysetup-1.3.3}/PKG-INFO +2 -1
- {sysetup-1.3.1 → sysetup-1.3.3}/README.md +1 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/pyproject.toml +1 -4
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/environment.py +2 -3
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/files/settings.py +1 -1
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/installations.py +0 -1
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/models/path.py +7 -1
- {sysetup-1.3.1 → sysetup-1.3.3/src/sysetup.egg-info}/PKG-INFO +2 -1
- {sysetup-1.3.1 → sysetup-1.3.3}/tests/test_background.py +4 -3
- {sysetup-1.3.1 → sysetup-1.3.3}/tests/test_cli_entry_point.py +1 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/tests/test_installer.py +1 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/tests/test_main.py +1 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/LICENSE +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/bin/pw +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/bin/pw-askpass +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/setup.cfg +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/cli/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/cli/entry_point.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/context/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/context/context.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/files/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/files/assets.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/files/permissions.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/files/setup.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/main.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/main/packages.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/models/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/models/action.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/models/options.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/py.typed +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/utils/__init__.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup/utils/download.py +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup.egg-info/SOURCES.txt +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup.egg-info/dependency_links.txt +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup.egg-info/entry_points.txt +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup.egg-info/requires.txt +0 -0
- {sysetup-1.3.1 → sysetup-1.3.3}/src/sysetup.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sysetup
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: Personal system setup
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License: MIT
|
|
@@ -21,6 +21,7 @@ Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
|
|
|
21
21
|
|
|
22
22
|
# Sysetup
|
|
23
23
|
[](https://badge.fury.io/py/sysetup)
|
|
24
|
+

|
|
24
25
|

|
|
25
26
|

|
|
26
27
|

|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Sysetup
|
|
2
2
|
[](https://badge.fury.io/py/sysetup)
|
|
3
|
+

|
|
3
4
|

|
|
4
5
|

|
|
5
6
|

|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sysetup"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.3"
|
|
4
4
|
description = "Personal system setup"
|
|
5
5
|
authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
|
|
6
6
|
license = {text = "MIT"}
|
|
@@ -62,9 +62,6 @@ ignore = [
|
|
|
62
62
|
"S101", # assert used
|
|
63
63
|
]
|
|
64
64
|
|
|
65
|
-
[tool.ruff.lint.isort]
|
|
66
|
-
known-first-party = ["src"]
|
|
67
|
-
|
|
68
65
|
[tool.ruff.lint.per-file-ignores]
|
|
69
66
|
"__init__.py" = ["F401"]
|
|
70
67
|
|
|
@@ -9,6 +9,5 @@ from sysetup.utils import download_file
|
|
|
9
9
|
def setup() -> None:
|
|
10
10
|
download_file(Path("etc") / "environment")
|
|
11
11
|
if "SUDO_ASKPASS" not in os.environ:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
load_dotenv(dotenv_path=Path.HOME / path)
|
|
12
|
+
download_file(Path.profile)
|
|
13
|
+
load_dotenv(dotenv_path=Path.profile)
|
|
@@ -41,5 +41,5 @@ def run_kde_script(script: str) -> None: # pragma: nocover
|
|
|
41
41
|
command = (
|
|
42
42
|
"qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript"
|
|
43
43
|
)
|
|
44
|
-
if not context.is_running_in_test:
|
|
44
|
+
if not context.is_running_in_test and cli.completes_successfully("which qdbus"):
|
|
45
45
|
cli.run(command, script)
|
|
@@ -33,7 +33,7 @@ class Path(superpathlib.Path):
|
|
|
33
33
|
@classmethod
|
|
34
34
|
@classproperty
|
|
35
35
|
def linter_env(cls: type[T]) -> T:
|
|
36
|
-
path =
|
|
36
|
+
path = cls.HOME / ".local" / "share" / "envs" / "linterenv"
|
|
37
37
|
return cast(T, path)
|
|
38
38
|
|
|
39
39
|
@classmethod
|
|
@@ -47,3 +47,9 @@ class Path(superpathlib.Path):
|
|
|
47
47
|
def update_wallpaper_script(cls: type[T]) -> T:
|
|
48
48
|
path = cls.source_root / "assets" / "scripts" / "update_wallpaper.js"
|
|
49
49
|
return cast(T, path)
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
@classproperty
|
|
53
|
+
def profile(cls: type[T]) -> T:
|
|
54
|
+
path = cls.HOME / ".bash_profile"
|
|
55
|
+
return cast(T, path)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sysetup
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: Personal system setup
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License: MIT
|
|
@@ -21,6 +21,7 @@ Requires-Dist: package-dev-utils<1,>=0.1.6; extra == "dev"
|
|
|
21
21
|
|
|
22
22
|
# Sysetup
|
|
23
23
|
[](https://badge.fury.io/py/sysetup)
|
|
24
|
+

|
|
24
25
|

|
|
25
26
|

|
|
26
27
|

|
|
@@ -5,13 +5,14 @@ import cli
|
|
|
5
5
|
import pytest
|
|
6
6
|
from backup.context import context
|
|
7
7
|
from backup.utils import setup
|
|
8
|
+
|
|
8
9
|
from sysetup.main.files.settings import set_background
|
|
9
10
|
from sysetup.models import Path
|
|
10
11
|
|
|
11
12
|
plasma_config_path = Path.HOME / ".config" / "plasma-org.kde.plasma.desktop-appletsrc"
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
@pytest.fixture
|
|
15
|
+
@pytest.fixture
|
|
15
16
|
def restore(path: Path) -> Callable[[Path], Iterator[None]]:
|
|
16
17
|
def _restore(restored_path: Path) -> Iterator[None]:
|
|
17
18
|
exists = restored_path.exists()
|
|
@@ -24,7 +25,7 @@ def restore(path: Path) -> Callable[[Path], Iterator[None]]:
|
|
|
24
25
|
return _restore
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
@pytest.fixture
|
|
28
|
+
@pytest.fixture
|
|
28
29
|
def restore_and_check(
|
|
29
30
|
restore: Callable[[Path], Iterator[None]],
|
|
30
31
|
) -> Callable[[Path], Iterator[None]]:
|
|
@@ -48,7 +49,7 @@ def restore_and_check(
|
|
|
48
49
|
return _restore_and_check
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
@pytest.fixture
|
|
52
|
+
@pytest.fixture
|
|
52
53
|
def restore_config_path(
|
|
53
54
|
restore_and_check: Callable[[Path], Iterator[None]],
|
|
54
55
|
) -> Iterator[None]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|