NikGapps 3.15__py3-none-any.whl → 3.16__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/GitlabManager.py +15 -0
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/METADATA +1 -1
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/RECORD +7 -7
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/LICENSE +0 -0
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/WHEEL +0 -0
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/entry_points.txt +0 -0
- {NikGapps-3.15.dist-info → NikGapps-3.16.dist-info}/top_level.txt +0 -0
|
@@ -29,6 +29,21 @@ class GitLabManager:
|
|
|
29
29
|
self.create_and_commit_readme(project_id=project.id)
|
|
30
30
|
return project
|
|
31
31
|
|
|
32
|
+
def create_lfs_repository(self, project_name, provide_owner_access=False, user_id=8064473, visibility='public',
|
|
33
|
+
extn_list=None):
|
|
34
|
+
"""Creates a new repository with the given project name and attributes."""
|
|
35
|
+
if extn_list is None:
|
|
36
|
+
extn_list = []
|
|
37
|
+
project = self.gl.projects.create({'name': project_name, 'visibility': visibility})
|
|
38
|
+
if provide_owner_access:
|
|
39
|
+
self.provide_owner_access(project_id=project.id, user_id=user_id)
|
|
40
|
+
self.create_and_commit_readme(project_id=project.id)
|
|
41
|
+
gitattributes = ""
|
|
42
|
+
for extn in extn_list:
|
|
43
|
+
gitattributes += f"*.{extn} filter=lfs diff=lfs merge=lfs -text\n"
|
|
44
|
+
self.create_and_commit_file(project_id=project.id, file_path=".gitattributes", content=gitattributes)
|
|
45
|
+
return project
|
|
46
|
+
|
|
32
47
|
def provide_owner_access(self, project_id, user_id):
|
|
33
48
|
"""Provides owner access to a repository for a particular user."""
|
|
34
49
|
project = self.gl.projects.get(project_id)
|
|
@@ -80,7 +80,7 @@ NikGapps/helper/git/Git.py,sha256=rHK81xZMfLjH9uNBAnQWVW2a5StmHrmnNc6Lvh_mjiU,10
|
|
|
80
80
|
NikGapps/helper/git/GitOperations.py,sha256=iaAVkwYfMGn0oRv7ef8UIt6tZ5KAwaMSBtMnYtN6kdY,6169
|
|
81
81
|
NikGapps/helper/git/GitStatics.py,sha256=Y63VP_oV4q97y3s3kJq4Z74HRNLBEf7Dli6ZWVn0jJQ,683
|
|
82
82
|
NikGapps/helper/git/GithubManager.py,sha256=MuD8wAh362SjiHVUJwU4Q450AUT9HF-dPqlywOa4AcQ,499
|
|
83
|
-
NikGapps/helper/git/GitlabManager.py,sha256=
|
|
83
|
+
NikGapps/helper/git/GitlabManager.py,sha256=UKCzFkZnDxLYZks9nZElTtVC9BXIvgU9fagOltdhPC4,12817
|
|
84
84
|
NikGapps/helper/git/TestGit.py,sha256=_XCN2cRy_yWNtk0AZDTmsw_fSebR2Twy8uOYMG06q-A,2126
|
|
85
85
|
NikGapps/helper/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
NikGapps/helper/overlay/ApkMetaInfo.py,sha256=WyEMGl_7fM2KdudB4pIGUuYbjSstieKMpjflfUosi5U,1565
|
|
@@ -99,9 +99,9 @@ NikGapps/helper/upload/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
99
99
|
NikGapps/helper/web/Requests.py,sha256=HaZUHe_xi_7LjPLOYBUwK3uwOYOcVaW2E1zazjw2wow,5502
|
|
100
100
|
NikGapps/helper/web/TelegramApi.py,sha256=XREdngh0vPvPMUOJsCJ3wSqXMFqS8q3qJUhmFMY6SH8,4743
|
|
101
101
|
NikGapps/helper/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
|
-
NikGapps-3.
|
|
103
|
-
NikGapps-3.
|
|
104
|
-
NikGapps-3.
|
|
105
|
-
NikGapps-3.
|
|
106
|
-
NikGapps-3.
|
|
107
|
-
NikGapps-3.
|
|
102
|
+
NikGapps-3.16.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
103
|
+
NikGapps-3.16.dist-info/METADATA,sha256=5yUR37N1SlSP19fPxazECBSRU00f2NMN5NEQgZze20g,4070
|
|
104
|
+
NikGapps-3.16.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
105
|
+
NikGapps-3.16.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
|
|
106
|
+
NikGapps-3.16.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
|
|
107
|
+
NikGapps-3.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|