pygitpub 0.0.50__tar.gz → 0.0.52__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
1
  Metadata-Version: 2.1
2
2
  Name: pygitpub
3
- Version: 0.0.50
3
+ Version: 0.0.52
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,9 +17,7 @@ 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.8
21
- Classifier: Programming Language :: Python :: 3.9
22
- Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
23
21
  Classifier: Topic :: Utilities
24
22
  Classifier: License :: OSI Approved :: MIT License
25
23
  Description-Content-Type: text/x-rst
@@ -42,6 +40,6 @@ project website: https://veltzer.github.io/pygitpub
42
40
 
43
41
  author: Mark Veltzer
44
42
 
45
- version: 0.0.50
43
+ version: 0.0.52
46
44
 
47
- Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023
45
+ Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
@@ -12,6 +12,6 @@ project website: https://veltzer.github.io/pygitpub
12
12
 
13
13
  author: Mark Veltzer
14
14
 
15
- version: 0.0.50
15
+ version: 0.0.52
16
16
 
17
- Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023
17
+ Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
@@ -57,6 +57,7 @@ def fix_metadata() -> None:
57
57
  # print(f"folder [{folder}] does not exist, continuing...")
58
58
  continue
59
59
  os.chdir(folder)
60
+ # print(f"doing [{folder}]...")
60
61
  file_path = "config/project.py"
61
62
  if not os.path.isfile(file_path):
62
63
  os.chdir(orig_folder)
@@ -71,6 +72,16 @@ def fix_metadata() -> None:
71
72
  print(f"description_short is [{description_short}]")
72
73
  print(f"repo.description is [{repo.description}]")
73
74
  repo.edit(description=description_short)
75
+ if not hasattr(mod, "keywords"):
76
+ print(f"{folder} no keywords")
77
+ os.chdir(orig_folder)
78
+ continue
79
+ keywords = getattr(mod, "keywords")
80
+ if set(keywords) != set(repo.get_topics()):
81
+ print(f"in {folder}...")
82
+ print(f"keywords is [{keywords}]")
83
+ print(f"repo.get_topics() is [{repo.get_topics()}]")
84
+ repo.replace_topics(keywords)
74
85
  os.chdir(orig_folder)
75
86
 
76
87
 
@@ -136,13 +147,16 @@ def runs_cleanup() -> None:
136
147
  # if it's a pages build delete it unless it's in mid work (run.conclusion is None)
137
148
  if workflow.name == "pages-build-deployment" and run.conclusion is not None:
138
149
  delete_it = True
150
+ # if it's not on the master branch, delete it
151
+ if run.head_branch != "master":
152
+ delete_it = True
139
153
  # if it's not a paged build and it failed then delete it
140
154
  if workflow.name != "pages-build-deployment" and run.conclusion == "failure":
141
155
  delete_it = True
142
156
  if existing >= 4:
143
157
  delete_it = True
144
158
  if delete_it:
145
- print(f"deleting {repo.name} {workflow.name} {run.conclusion} {run.url}")
159
+ print(f"deleting {repo.name} {workflow.name} {run.head_branch} {run.conclusion} {run.url}")
146
160
  delete(run)
147
161
  else:
148
162
  existing += 1
@@ -1,5 +1,5 @@
1
1
  """ version which can be consumed from within the module """
2
- VERSION_STR = "0.0.50"
2
+ VERSION_STR = "0.0.52"
3
3
  DESCRIPTION = "Pygitpub will help you work with github"
4
4
  APP_NAME = "pygitpub"
5
5
  LOGGER_NAME = "pygitpub"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pygitpub
3
- Version: 0.0.50
3
+ Version: 0.0.52
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,9 +17,7 @@ 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.8
21
- Classifier: Programming Language :: Python :: 3.9
22
- Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
23
21
  Classifier: Topic :: Utilities
24
22
  Classifier: License :: OSI Approved :: MIT License
25
23
  Description-Content-Type: text/x-rst
@@ -42,6 +40,6 @@ project website: https://veltzer.github.io/pygitpub
42
40
 
43
41
  author: Mark Veltzer
44
42
 
45
- version: 0.0.50
43
+ version: 0.0.52
46
44
 
47
- Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023
45
+ Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2022, 2023, 2024
@@ -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.50",
12
+ version="0.0.52",
13
13
  packages=[
14
14
  "pygitpub",
15
15
  "pygitpub.utils",
@@ -44,9 +44,7 @@ setuptools.setup(
44
44
  "Programming Language :: Python",
45
45
  "Programming Language :: Python :: 3",
46
46
  "Programming Language :: Python :: 3 :: Only",
47
- "Programming Language :: Python :: 3.8",
48
- "Programming Language :: Python :: 3.9",
49
- "Programming Language :: Python :: 3.10",
47
+ "Programming Language :: Python :: 3.11",
50
48
  "Topic :: Utilities",
51
49
  "License :: OSI Approved :: MIT License",
52
50
  ],
File without changes
File without changes
File without changes