pygitpub 0.0.54__tar.gz → 0.0.56__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.
- {pygitpub-0.0.54 → pygitpub-0.0.56}/PKG-INFO +20 -6
- {pygitpub-0.0.54 → pygitpub-0.0.56}/README.rst +2 -2
- pygitpub-0.0.56/pygitpub/__init__.py +5 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub/main.py +46 -8
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub/static.py +1 -1
- pygitpub-0.0.56/pygitpub/utils/__init__.py +1 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub/utils/importlib.py +2 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub/utils/misc.py +2 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/PKG-INFO +20 -6
- {pygitpub-0.0.54 → pygitpub-0.0.56}/setup.py +2 -3
- pygitpub-0.0.54/pygitpub/__init__.py +0 -1
- pygitpub-0.0.54/pygitpub/utils/__init__.py +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/LICENSE +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub/configs.py +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/SOURCES.txt +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/dependency_links.txt +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/entry_points.txt +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/requires.txt +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/pygitpub.egg-info/top_level.txt +0 -0
- {pygitpub-0.0.54 → pygitpub-0.0.56}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pygitpub
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.56
|
|
4
4
|
Summary: Pygitpub will help you work with github
|
|
5
5
|
Home-page: https://veltzer.github.io/pygitpub
|
|
6
6
|
Download-URL: https://github.com/veltzer/pygitpub
|
|
@@ -17,15 +17,29 @@ Classifier: Operating System :: OS Independent
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Topic :: Utilities
|
|
22
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
23
22
|
Description-Content-Type: text/x-rst
|
|
24
23
|
License-File: LICENSE
|
|
25
24
|
Requires-Dist: pytconf
|
|
26
25
|
Requires-Dist: pylogconf
|
|
27
26
|
Requires-Dist: PyGithub
|
|
28
27
|
Requires-Dist: pyapikey
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: download-url
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: maintainer
|
|
39
|
+
Dynamic: maintainer-email
|
|
40
|
+
Dynamic: platform
|
|
41
|
+
Dynamic: requires-dist
|
|
42
|
+
Dynamic: summary
|
|
29
43
|
|
|
30
44
|
==========
|
|
31
45
|
*pygitpub*
|
|
@@ -41,6 +55,6 @@ project website: https://veltzer.github.io/pygitpub
|
|
|
41
55
|
|
|
42
56
|
author: Mark Veltzer
|
|
43
57
|
|
|
44
|
-
version: 0.0.
|
|
58
|
+
version: 0.0.56
|
|
45
59
|
|
|
46
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
|
|
60
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024, 2025
|
|
@@ -12,6 +12,6 @@ project website: https://veltzer.github.io/pygitpub
|
|
|
12
12
|
|
|
13
13
|
author: Mark Veltzer
|
|
14
14
|
|
|
15
|
-
version: 0.0.
|
|
15
|
+
version: 0.0.56
|
|
16
16
|
|
|
17
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
|
|
17
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024, 2025
|
|
@@ -94,24 +94,62 @@ def fix_metadata() -> None:
|
|
|
94
94
|
ConfigAlgo,
|
|
95
95
|
],
|
|
96
96
|
)
|
|
97
|
-
def
|
|
97
|
+
def homepage_fix() -> None:
|
|
98
98
|
for repo in yield_repos():
|
|
99
|
-
if repo.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
if repo.has_pages:
|
|
100
|
+
right_homepage = f"https://{ConfigGithub.username}.github.io/{repo.name}/"
|
|
101
|
+
if repo.homepage != right_homepage:
|
|
102
|
+
print(f"{repo.name} is wrong!")
|
|
103
|
+
print(f"homepage: {repo.homepage}")
|
|
104
|
+
print(f"right_homepage: {right_homepage}")
|
|
105
|
+
print(f"patching [{repo.name}]...")
|
|
106
|
+
repo.edit(repo.name, homepage=right_homepage)
|
|
107
|
+
else:
|
|
108
|
+
right_homepage = f"https://github.com/{ConfigGithub.username}/{repo.name}/"
|
|
109
|
+
if repo.homepage != right_homepage:
|
|
110
|
+
print(f"{repo.name} is wrong!")
|
|
111
|
+
print(f"homepage: {repo.homepage}")
|
|
112
|
+
print(f"right_homepage: {right_homepage}")
|
|
113
|
+
print(f"patching [{repo.name}]...")
|
|
114
|
+
repo.edit(repo.name, homepage=right_homepage)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@register_endpoint(
|
|
118
|
+
description="Show all data about repositories as JSON",
|
|
119
|
+
configs=[
|
|
120
|
+
ConfigGithub,
|
|
121
|
+
ConfigAlgo,
|
|
122
|
+
],
|
|
123
|
+
)
|
|
124
|
+
def repos_show() -> None:
|
|
125
|
+
for repo in yield_repos():
|
|
126
|
+
# pylint: disable=protected-access
|
|
127
|
+
json.dump(repo._rawData, fp=sys.stdout, indent=4)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
@register_endpoint(
|
|
131
|
+
description="Show github homepage for github pages sites",
|
|
132
|
+
configs=[
|
|
133
|
+
ConfigGithub,
|
|
134
|
+
ConfigAlgo,
|
|
135
|
+
],
|
|
136
|
+
)
|
|
137
|
+
def repos_show_pages() -> None:
|
|
138
|
+
for repo in yield_repos():
|
|
139
|
+
if repo.has_pages:
|
|
140
|
+
print(f"{repo.name}: {repo.homepage}")
|
|
103
141
|
|
|
104
142
|
|
|
105
143
|
@register_endpoint(
|
|
106
|
-
description="Show
|
|
144
|
+
description="Show github homepage",
|
|
107
145
|
configs=[
|
|
108
146
|
ConfigGithub,
|
|
109
147
|
ConfigAlgo,
|
|
110
148
|
],
|
|
111
149
|
)
|
|
112
|
-
def
|
|
150
|
+
def repos_show_homepage() -> None:
|
|
113
151
|
for repo in yield_repos():
|
|
114
|
-
print(f"{repo.name} {repo.
|
|
152
|
+
print(f"{repo.name}: {repo.homepage}")
|
|
115
153
|
|
|
116
154
|
|
|
117
155
|
@register_endpoint(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
""" __init__.py """
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pygitpub
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.56
|
|
4
4
|
Summary: Pygitpub will help you work with github
|
|
5
5
|
Home-page: https://veltzer.github.io/pygitpub
|
|
6
6
|
Download-URL: https://github.com/veltzer/pygitpub
|
|
@@ -17,15 +17,29 @@ Classifier: Operating System :: OS Independent
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Topic :: Utilities
|
|
22
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
23
22
|
Description-Content-Type: text/x-rst
|
|
24
23
|
License-File: LICENSE
|
|
25
24
|
Requires-Dist: pytconf
|
|
26
25
|
Requires-Dist: pylogconf
|
|
27
26
|
Requires-Dist: PyGithub
|
|
28
27
|
Requires-Dist: pyapikey
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: download-url
|
|
34
|
+
Dynamic: home-page
|
|
35
|
+
Dynamic: keywords
|
|
36
|
+
Dynamic: license
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: maintainer
|
|
39
|
+
Dynamic: maintainer-email
|
|
40
|
+
Dynamic: platform
|
|
41
|
+
Dynamic: requires-dist
|
|
42
|
+
Dynamic: summary
|
|
29
43
|
|
|
30
44
|
==========
|
|
31
45
|
*pygitpub*
|
|
@@ -41,6 +55,6 @@ project website: https://veltzer.github.io/pygitpub
|
|
|
41
55
|
|
|
42
56
|
author: Mark Veltzer
|
|
43
57
|
|
|
44
|
-
version: 0.0.
|
|
58
|
+
version: 0.0.56
|
|
45
59
|
|
|
46
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
|
|
60
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024, 2025
|
|
@@ -9,7 +9,7 @@ def get_readme():
|
|
|
9
9
|
setuptools.setup(
|
|
10
10
|
# the first three fields are a must according to the documentation
|
|
11
11
|
name="pygitpub",
|
|
12
|
-
version="0.0.
|
|
12
|
+
version="0.0.56",
|
|
13
13
|
packages=[
|
|
14
14
|
"pygitpub",
|
|
15
15
|
"pygitpub.utils",
|
|
@@ -45,9 +45,8 @@ setuptools.setup(
|
|
|
45
45
|
"Programming Language :: Python",
|
|
46
46
|
"Programming Language :: Python :: 3",
|
|
47
47
|
"Programming Language :: Python :: 3 :: Only",
|
|
48
|
-
"Programming Language :: Python :: 3.
|
|
48
|
+
"Programming Language :: Python :: 3.12",
|
|
49
49
|
"Topic :: Utilities",
|
|
50
|
-
"License :: OSI Approved :: MIT License",
|
|
51
50
|
],
|
|
52
51
|
entry_points={"console_scripts": [
|
|
53
52
|
"pygitpub=pygitpub.main:main",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
LOGGER_NAME = "pygitpub"
|
|
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
|