pygitpub 0.0.53__tar.gz → 0.0.55__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pygitpub
3
- Version: 0.0.53
3
+ Version: 0.0.55
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.11
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.53
58
+ version: 0.0.55
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.53
15
+ version: 0.0.55
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
@@ -0,0 +1,5 @@
1
+ """
2
+ Initialize the module
3
+ """
4
+
5
+ LOGGER_NAME = "pygitpub"
@@ -94,24 +94,50 @@ def fix_metadata() -> None:
94
94
  ConfigAlgo,
95
95
  ],
96
96
  )
97
- def fix_website() -> None:
97
+ def homepage_fix() -> None:
98
98
  for repo in yield_repos():
99
- if repo.homepage == "" or repo.homepage is None:
100
- homepage = f"{repo.html_url}"
101
- print(f"patching [{repo.name}]...")
102
- repo.edit(repo.name, homepage=homepage)
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)
103
128
 
104
129
 
105
130
  @register_endpoint(
106
- description="Show name and website for each repo",
131
+ description="Show github pages sites",
107
132
  configs=[
108
133
  ConfigGithub,
109
134
  ConfigAlgo,
110
135
  ],
111
136
  )
112
- def show_website() -> None:
137
+ def repos_show_pages() -> None:
113
138
  for repo in yield_repos():
114
- print(f"{repo.name} {repo.html_url}")
139
+ if repo.has_pages:
140
+ print(f"{repo.name}: {repo.homepage}")
115
141
 
116
142
 
117
143
  @register_endpoint(
@@ -1,5 +1,5 @@
1
1
  """ version which can be consumed from within the module """
2
- VERSION_STR = "0.0.53"
2
+ VERSION_STR = "0.0.55"
3
3
  DESCRIPTION = "Pygitpub will help you work with github"
4
4
  APP_NAME = "pygitpub"
5
5
  LOGGER_NAME = "pygitpub"
@@ -0,0 +1 @@
1
+ """ __init__.py """
@@ -1,3 +1,5 @@
1
+ """ importlib.py """
2
+
1
3
  import importlib.util
2
4
 
3
5
 
@@ -1,3 +1,5 @@
1
+ """ misc.py """
2
+
1
3
  import logging
2
4
  from typing import Set
3
5
  import os
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pygitpub
3
- Version: 0.0.53
3
+ Version: 0.0.55
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.11
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.53
58
+ version: 0.0.55
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
@@ -1,6 +1,9 @@
1
1
  [bdist_wheel]
2
2
  universal = 0
3
3
 
4
+ [pycodestyle]
5
+ max-line-length = 130
6
+
4
7
  [egg_info]
5
8
  tag_build =
6
9
  tag_date = 0
@@ -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.53",
12
+ version="0.0.55",
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.11",
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