NikGapps 3.45__py3-none-any.whl → 3.46__py3-none-any.whl
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.
- NikGapps/helper/git/TestGit.py +15 -0
- NikGapps/main.py +7 -1
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/METADATA +1 -1
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/RECORD +8 -8
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/LICENSE +0 -0
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/WHEEL +0 -0
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/entry_points.txt +0 -0
- {NikGapps-3.45.dist-info → NikGapps-3.46.dist-info}/top_level.txt +0 -0
NikGapps/helper/git/TestGit.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import time
|
|
3
|
+
from shutil import copyfile
|
|
2
4
|
|
|
3
5
|
from niklibrary.git.Git import Git
|
|
4
6
|
import git.exc
|
|
7
|
+
from niklibrary.git.GitStatics import GitStatics
|
|
8
|
+
|
|
9
|
+
from NikGapps.helper.Assets import Assets
|
|
5
10
|
|
|
6
11
|
|
|
7
12
|
class TestGit(Git):
|
|
@@ -59,3 +64,13 @@ class TestGit(Git):
|
|
|
59
64
|
if debug:
|
|
60
65
|
print(f"Pushed {info.summary}")
|
|
61
66
|
return True
|
|
67
|
+
|
|
68
|
+
def update_changelog(self):
|
|
69
|
+
source_file = Assets.changelog
|
|
70
|
+
dest_file = GitStatics.website_repo_dir + os.path.sep + "_data" + os.path.sep + "changelogs.yaml"
|
|
71
|
+
copyfile(source_file, dest_file)
|
|
72
|
+
if self.due_changes():
|
|
73
|
+
print("Updating the changelog to the website")
|
|
74
|
+
self.git_push("Update Changelog")
|
|
75
|
+
else:
|
|
76
|
+
print("There is no changelog to update!")
|
NikGapps/main.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
+
from niklibrary.git.GitStatics import GitStatics
|
|
3
|
+
|
|
2
4
|
from NikGapps.build.Release import Release
|
|
3
5
|
from NikGapps.helper.Args import Args
|
|
4
6
|
from NikGapps.helper import Config
|
|
@@ -7,6 +9,8 @@ from niklibrary.helper.T import T
|
|
|
7
9
|
from niklibrary.compression.Modes import Modes
|
|
8
10
|
from niklibrary.git.GitOp import GitOp
|
|
9
11
|
|
|
12
|
+
from NikGapps.helper.git.TestGit import TestGit
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
def main():
|
|
12
16
|
args = Args()
|
|
@@ -51,7 +55,9 @@ def main():
|
|
|
51
55
|
GitOp.mark_a_release(android_version, Config.RELEASE_TYPE)
|
|
52
56
|
if args.release:
|
|
53
57
|
if args.update_website:
|
|
54
|
-
website_repo =
|
|
58
|
+
website_repo = TestGit(GitStatics.website_repo_dir)
|
|
59
|
+
if GitStatics.website_repo_url is not None:
|
|
60
|
+
website_repo.clone_repo(repo_url=GitStatics.website_repo_url, fresh_clone=False, branch="main")
|
|
55
61
|
if website_repo is not None:
|
|
56
62
|
website_repo.update_changelog()
|
|
57
63
|
|
|
@@ -3,7 +3,7 @@ NikGapps/build_config.py,sha256=QVWmRLUIv1US8OWeBwwiAHLTBu6heMF1aFezsud8Fxw,3193
|
|
|
3
3
|
NikGapps/cache.py,sha256=lQTX3-JZOCWhgsiaklKRLSy46FKX9WwQ49dyrLnSQTk,4057
|
|
4
4
|
NikGapps/config_upload.py,sha256=0HE7txm73XXxat_cR0JDXWtQUmg1IYK_SktwJS6N34s,652
|
|
5
5
|
NikGapps/copy_repos.py,sha256=AXI1LIO_4pXkJUTlIsW45JRpEIkmICPVcCDOJ-YIauk,1951
|
|
6
|
-
NikGapps/main.py,sha256=
|
|
6
|
+
NikGapps/main.py,sha256=86OrjdjqZwfdzgrQte6e8ADzGgKms37YaM_QlbY3BlE,2904
|
|
7
7
|
NikGapps/overlay_control.py,sha256=3BVA8v5JeaFPqKbnjbrDE9qyxY12YTYAoH15r1thE-w,3097
|
|
8
8
|
NikGapps/test.py,sha256=M6fpDBtOpwHgR9bjAEhhjgGtAN9UuLEKZSU0HFX-xdE,84
|
|
9
9
|
NikGapps/build/Build.py,sha256=_-gEQD2vkci-dQOmiE-SCULiAGQ-LkyKWXhvCP61884,7621
|
|
@@ -43,7 +43,7 @@ NikGapps/helper/assets/unmount.sh,sha256=L8Lq7ZVfwazXaZp5Jkuce2pCGJCLZh57uj_BzFS
|
|
|
43
43
|
NikGapps/helper/compression/CompOps.py,sha256=RjYxtNh98xCds58oWxX8UGbe9g-WUYCriTRupWZqMZc,1823
|
|
44
44
|
NikGapps/helper/compression/Export.py,sha256=9cN1RhJAcWFoZYtW_0Q9eX2XjyUwmd6Ns_49t4REZvE,9383
|
|
45
45
|
NikGapps/helper/compression/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
|
-
NikGapps/helper/git/TestGit.py,sha256
|
|
46
|
+
NikGapps/helper/git/TestGit.py,sha256=DGSksIqMn3KpkbPpz-eiQEDJgHOoV6JpmgclEN_lS0k,2674
|
|
47
47
|
NikGapps/helper/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
NikGapps/helper/overlay/ApkMetaInfo.py,sha256=l8Au74MPXWqllzooNGF8AIn-JTWiwxIuYAnu1nwq-e0,1567
|
|
49
49
|
NikGapps/helper/overlay/Bool.py,sha256=1VfI30ytFvT5eTWHwRCePE2hVRb_X-lFYPhAxS6xVCM,372
|
|
@@ -54,9 +54,9 @@ NikGapps/helper/overlay/Resources.py,sha256=bKWJEF2avl3j2ud390HQq9fRMMA8GKh9-KAB
|
|
|
54
54
|
NikGapps/helper/overlay/String.py,sha256=nyCAD_dNfwHlOgj4zuKGGz71n20CLEKyZCgrVAmiX2I,469
|
|
55
55
|
NikGapps/helper/overlay/StringArray.py,sha256=DYPEAIdpicaJ3C08IYW6Q2tnTH6gUFXmu3KhQlHGY5g,563
|
|
56
56
|
NikGapps/helper/overlay/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
-
NikGapps-3.
|
|
58
|
-
NikGapps-3.
|
|
59
|
-
NikGapps-3.
|
|
60
|
-
NikGapps-3.
|
|
61
|
-
NikGapps-3.
|
|
62
|
-
NikGapps-3.
|
|
57
|
+
NikGapps-3.46.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
58
|
+
NikGapps-3.46.dist-info/METADATA,sha256=BHXvjzMeDOXC-0oL66TNHpZ3c9gB21laytlzKBBR71Q,4147
|
|
59
|
+
NikGapps-3.46.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
60
|
+
NikGapps-3.46.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
|
|
61
|
+
NikGapps-3.46.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
|
|
62
|
+
NikGapps-3.46.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|