sysetup 1.4.4__tar.gz → 1.4.5__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.4.4/src/sysetup.egg-info → sysetup-1.4.5}/PKG-INFO +3 -3
- {sysetup-1.4.4 → sysetup-1.4.5}/pyproject.toml +3 -3
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/files.py +2 -29
- {sysetup-1.4.4 → sysetup-1.4.5/src/sysetup.egg-info}/PKG-INFO +3 -3
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup.egg-info/requires.txt +2 -2
- {sysetup-1.4.4 → sysetup-1.4.5}/LICENSE +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/README.md +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/setup.cfg +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/cli/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/cli/entry_point.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/context/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/context/context.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/context/options.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/context/secrets_.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/context/system.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/linux/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/linux/installations.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/linux/packages.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/linux/setup.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/main.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/main/packages.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/models/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/models/path.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/py.typed +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/utils/__init__.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/utils/bitwarden.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup/utils/download.py +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup.egg-info/SOURCES.txt +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup.egg-info/dependency_links.txt +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup.egg-info/entry_points.txt +0 -0
- {sysetup-1.4.4 → sysetup-1.4.5}/src/sysetup.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sysetup
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.5
|
|
4
4
|
Summary: Personal system setup
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -10,13 +10,13 @@ Description-Content-Type: text/markdown
|
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Dist: backupmaster<3,>=2.0.5
|
|
12
12
|
Requires-Dist: package-utils[context]<1,>=0.8.3
|
|
13
|
-
Requires-Dist: powercli<1,>=0.
|
|
13
|
+
Requires-Dist: powercli<1,>=0.4.0
|
|
14
14
|
Requires-Dist: requests<3,>=2.32.3
|
|
15
15
|
Requires-Dist: superpathlib<3,>=2.0.11
|
|
16
16
|
Provides-Extra: dev
|
|
17
17
|
Requires-Dist: dirhash<1,>=0.5.0; extra == "dev"
|
|
18
18
|
Requires-Dist: types-requests<3,>=2.32.0.20250306; extra == "dev"
|
|
19
|
-
Requires-Dist: package-dev-tools<1,>=0.8.
|
|
19
|
+
Requires-Dist: package-dev-tools<1,>=0.8.1; extra == "dev"
|
|
20
20
|
Dynamic: license-file
|
|
21
21
|
|
|
22
22
|
# Sysetup
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sysetup"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.5"
|
|
4
4
|
description = "Personal system setup"
|
|
5
5
|
authors = [{name = "Quinten Roets", email = "qdr2104@columbia.edu"}]
|
|
6
6
|
license = "MIT"
|
|
@@ -9,7 +9,7 @@ requires-python = ">=3.10"
|
|
|
9
9
|
dependencies = [
|
|
10
10
|
"backupmaster >=2.0.5, <3",
|
|
11
11
|
"package-utils[context] >=0.8.3, <1",
|
|
12
|
-
"powercli >=0.
|
|
12
|
+
"powercli >=0.4.0, <1",
|
|
13
13
|
"requests >=2.32.3, <3",
|
|
14
14
|
"superpathlib >=2.0.11, <3",
|
|
15
15
|
]
|
|
@@ -18,7 +18,7 @@ dependencies = [
|
|
|
18
18
|
dev = [
|
|
19
19
|
"dirhash >=0.5.0, <1",
|
|
20
20
|
"types-requests >=2.32.0.20250306, <3",
|
|
21
|
-
"package-dev-tools >=0.8.
|
|
21
|
+
"package-dev-tools >=0.8.1, <1",
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
[project.urls]
|
|
@@ -2,19 +2,15 @@ import stat
|
|
|
2
2
|
|
|
3
3
|
import cli
|
|
4
4
|
|
|
5
|
-
from sysetup.context import
|
|
6
|
-
from sysetup.context.system import is_linux, is_mac
|
|
5
|
+
from sysetup.context.system import is_linux
|
|
7
6
|
from sysetup.models import Path
|
|
8
|
-
from sysetup.utils import download_directory
|
|
9
|
-
|
|
10
|
-
from .packages import install
|
|
7
|
+
from sysetup.utils import download_directory
|
|
11
8
|
|
|
12
9
|
|
|
13
10
|
def setup() -> None:
|
|
14
11
|
configure_git()
|
|
15
12
|
configure_ssh()
|
|
16
13
|
remove_clutter()
|
|
17
|
-
install_custom_certificate()
|
|
18
14
|
|
|
19
15
|
|
|
20
16
|
def configure_git() -> None:
|
|
@@ -64,26 +60,3 @@ def remove_clutter() -> None:
|
|
|
64
60
|
nginx_path = root / "etc" / "nginx" / "sites-enabled" / "default"
|
|
65
61
|
if nginx_path.exists():
|
|
66
62
|
cli.run("rm", nginx_path, root=True)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
def install_custom_certificate() -> None:
|
|
70
|
-
certificate_file = Path.assets / "certificates" / "certificate.crt"
|
|
71
|
-
ensure_downloaded(certificate_file)
|
|
72
|
-
if is_mac():
|
|
73
|
-
keychain = "/Library/Keychains/System.keychain"
|
|
74
|
-
command = (
|
|
75
|
-
f"security add-trusted-cert -d -r trustRoot "
|
|
76
|
-
f"-k {keychain} {certificate_file}"
|
|
77
|
-
)
|
|
78
|
-
else:
|
|
79
|
-
install(["libnss3-tools"])
|
|
80
|
-
certificate_directory = Path.HOME / ".pki" / "nssdb"
|
|
81
|
-
if not certificate_directory.exists():
|
|
82
|
-
certificate_directory.mkdir(parents=True)
|
|
83
|
-
cli.run(f"certutil -d sql:{certificate_directory} -N --empty-password")
|
|
84
|
-
command = (
|
|
85
|
-
f"certutil -d sql:{certificate_directory} "
|
|
86
|
-
f'-A -t "C,," -n "QCA" -i {certificate_file}'
|
|
87
|
-
)
|
|
88
|
-
if not context.is_running_in_container:
|
|
89
|
-
cli.run(command, root=is_mac())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sysetup
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.5
|
|
4
4
|
Summary: Personal system setup
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -10,13 +10,13 @@ Description-Content-Type: text/markdown
|
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Dist: backupmaster<3,>=2.0.5
|
|
12
12
|
Requires-Dist: package-utils[context]<1,>=0.8.3
|
|
13
|
-
Requires-Dist: powercli<1,>=0.
|
|
13
|
+
Requires-Dist: powercli<1,>=0.4.0
|
|
14
14
|
Requires-Dist: requests<3,>=2.32.3
|
|
15
15
|
Requires-Dist: superpathlib<3,>=2.0.11
|
|
16
16
|
Provides-Extra: dev
|
|
17
17
|
Requires-Dist: dirhash<1,>=0.5.0; extra == "dev"
|
|
18
18
|
Requires-Dist: types-requests<3,>=2.32.0.20250306; extra == "dev"
|
|
19
|
-
Requires-Dist: package-dev-tools<1,>=0.8.
|
|
19
|
+
Requires-Dist: package-dev-tools<1,>=0.8.1; extra == "dev"
|
|
20
20
|
Dynamic: license-file
|
|
21
21
|
|
|
22
22
|
# Sysetup
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
backupmaster<3,>=2.0.5
|
|
2
2
|
package-utils[context]<1,>=0.8.3
|
|
3
|
-
powercli<1,>=0.
|
|
3
|
+
powercli<1,>=0.4.0
|
|
4
4
|
requests<3,>=2.32.3
|
|
5
5
|
superpathlib<3,>=2.0.11
|
|
6
6
|
|
|
7
7
|
[dev]
|
|
8
8
|
dirhash<1,>=0.5.0
|
|
9
9
|
types-requests<3,>=2.32.0.20250306
|
|
10
|
-
package-dev-tools<1,>=0.8.
|
|
10
|
+
package-dev-tools<1,>=0.8.1
|
|
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
|
|
File without changes
|