python-github-plus 0.0.6__tar.gz → 1.1.0__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.
- {python_github_plus-0.0.6/python_github_plus.egg-info → python_github_plus-1.1.0}/PKG-INFO +12 -2
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/README.md +9 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/pyproject.toml +3 -2
- python_github_plus-1.1.0/python_github_plus/const.py +1 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus/github_plus.py +9 -7
- {python_github_plus-0.0.6 → python_github_plus-1.1.0/python_github_plus.egg-info}/PKG-INFO +12 -2
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus.egg-info/SOURCES.txt +1 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus.egg-info/requires.txt +1 -1
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/LICENSE +0 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/MANIFEST.in +0 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus/__init__.py +0 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus.egg-info/dependency_links.txt +0 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus.egg-info/top_level.txt +0 -0
- {python_github_plus-0.0.6 → python_github_plus-1.1.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-github-plus
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: Enhanced Python GitHub client.
|
|
5
5
|
Author: Avi Zaguri
|
|
6
6
|
License: MIT
|
|
@@ -12,10 +12,11 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
16
|
Requires-Python: >=3.12
|
|
16
17
|
Description-Content-Type: text/markdown
|
|
17
18
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: custom-python-logger>=
|
|
19
|
+
Requires-Dist: custom-python-logger>=4.0.0
|
|
19
20
|
Requires-Dist: pre-commit>=4.5.0
|
|
20
21
|
Requires-Dist: pygithub>=2.8.1
|
|
21
22
|
Requires-Dist: pytest>=9.0.1
|
|
@@ -24,6 +25,15 @@ Requires-Dist: setuptools>=80.9.0
|
|
|
24
25
|
Requires-Dist: wheel>=0.45.1
|
|
25
26
|
Dynamic: license-file
|
|
26
27
|
|
|
28
|
+

|
|
29
|
+

|
|
30
|
+

|
|
31
|
+

|
|
32
|
+

|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
27
37
|
# Python GitHub Plus
|
|
28
38
|
An enhanced Python client for GitHub that extends the functionality of the official `pygithub` package, providing better error handling, merge request management, branch operations, and more.
|
|
29
39
|
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
1
10
|
# Python GitHub Plus
|
|
2
11
|
An enhanced Python client for GitHub that extends the functionality of the official `pygithub` package, providing better error handling, merge request management, branch operations, and more.
|
|
3
12
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-github-plus"
|
|
7
|
-
version = "
|
|
7
|
+
version = "1.1.0"
|
|
8
8
|
description = "Enhanced Python GitHub client."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -17,10 +17,11 @@ classifiers = [
|
|
|
17
17
|
"Intended Audience :: Developers",
|
|
18
18
|
"Programming Language :: Python :: 3.12",
|
|
19
19
|
"Operating System :: OS Independent",
|
|
20
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
20
21
|
]
|
|
21
22
|
|
|
22
23
|
dependencies = [
|
|
23
|
-
"custom-python-logger>=
|
|
24
|
+
"custom-python-logger>=4.0.0",
|
|
24
25
|
"pre-commit>=4.5.0",
|
|
25
26
|
"pygithub>=2.8.1",
|
|
26
27
|
"pytest>=9.0.1",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LOGGER_NAME = "pytest_depends_on"
|
|
@@ -15,6 +15,8 @@ from github.Tag import Tag
|
|
|
15
15
|
from github.Workflow import Workflow
|
|
16
16
|
from github.WorkflowRun import WorkflowRun
|
|
17
17
|
|
|
18
|
+
from python_github_plus.const import LOGGER_NAME
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
class GitHubPRStatus(Enum):
|
|
20
22
|
OPEN = "open"
|
|
@@ -30,7 +32,7 @@ class GitHubWorkflowStatus(Enum):
|
|
|
30
32
|
|
|
31
33
|
class GitHubProjectService:
|
|
32
34
|
def __init__(self, repo: Repository) -> None:
|
|
33
|
-
self.logger = get_logger(
|
|
35
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
34
36
|
self.repo = repo
|
|
35
37
|
|
|
36
38
|
def get_info(self) -> Repository:
|
|
@@ -56,7 +58,7 @@ class GitHubProjectService:
|
|
|
56
58
|
|
|
57
59
|
class GitHubWorkflowService:
|
|
58
60
|
def __init__(self, repo: Repository) -> None:
|
|
59
|
-
self.logger = get_logger(
|
|
61
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
60
62
|
self.repo = repo
|
|
61
63
|
|
|
62
64
|
def list(self) -> list[Workflow]:
|
|
@@ -120,7 +122,7 @@ class GitHubWorkflowService:
|
|
|
120
122
|
|
|
121
123
|
class GitHubBranchService:
|
|
122
124
|
def __init__(self, repo: Repository) -> None:
|
|
123
|
-
self.logger = get_logger(
|
|
125
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
124
126
|
self.repo = repo
|
|
125
127
|
|
|
126
128
|
def create(self, branch_name: str, from_branch: str) -> GitRef:
|
|
@@ -168,7 +170,7 @@ class GitHubBranchService:
|
|
|
168
170
|
|
|
169
171
|
class GitHubTagService:
|
|
170
172
|
def __init__(self, repo: Repository) -> None:
|
|
171
|
-
self.logger = get_logger(
|
|
173
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
172
174
|
self.repo = repo
|
|
173
175
|
|
|
174
176
|
def create_from_sha(self, tag_name: str, sha: str, message: str | None = None) -> GitTag:
|
|
@@ -193,7 +195,7 @@ class GitHubTagService:
|
|
|
193
195
|
|
|
194
196
|
class GitHubPRService:
|
|
195
197
|
def __init__(self, repo: Repository) -> None:
|
|
196
|
-
self.logger = get_logger(
|
|
198
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
197
199
|
self.repo = repo
|
|
198
200
|
|
|
199
201
|
def get_info(self, number: int) -> PullRequest:
|
|
@@ -243,7 +245,7 @@ class GitHubPRService:
|
|
|
243
245
|
|
|
244
246
|
class GitHubFileService:
|
|
245
247
|
def __init__(self, repo: Repository) -> None:
|
|
246
|
-
self.logger = get_logger(
|
|
248
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
247
249
|
self.repo = repo
|
|
248
250
|
|
|
249
251
|
def get(self, path: str, ref: str = "main") -> ContentFile:
|
|
@@ -275,7 +277,7 @@ class GitHubFileService:
|
|
|
275
277
|
|
|
276
278
|
class GitHubClient:
|
|
277
279
|
def __init__(self, repo_full_name: str, access_token: str | None = None) -> None:
|
|
278
|
-
self.logger = get_logger(
|
|
280
|
+
self.logger = get_logger(LOGGER_NAME)
|
|
279
281
|
self.github_access_token = access_token or os.environ.get("GITHUB_ACCESS_TOKEN")
|
|
280
282
|
|
|
281
283
|
self.github = Github(auth=Auth.Token(self.github_access_token))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-github-plus
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: Enhanced Python GitHub client.
|
|
5
5
|
Author: Avi Zaguri
|
|
6
6
|
License: MIT
|
|
@@ -12,10 +12,11 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
16
|
Requires-Python: >=3.12
|
|
16
17
|
Description-Content-Type: text/markdown
|
|
17
18
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: custom-python-logger>=
|
|
19
|
+
Requires-Dist: custom-python-logger>=4.0.0
|
|
19
20
|
Requires-Dist: pre-commit>=4.5.0
|
|
20
21
|
Requires-Dist: pygithub>=2.8.1
|
|
21
22
|
Requires-Dist: pytest>=9.0.1
|
|
@@ -24,6 +25,15 @@ Requires-Dist: setuptools>=80.9.0
|
|
|
24
25
|
Requires-Dist: wheel>=0.45.1
|
|
25
26
|
Dynamic: license-file
|
|
26
27
|
|
|
28
|
+

|
|
29
|
+

|
|
30
|
+

|
|
31
|
+

|
|
32
|
+

|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
27
37
|
# Python GitHub Plus
|
|
28
38
|
An enhanced Python client for GitHub that extends the functionality of the official `pygithub` package, providing better error handling, merge request management, branch operations, and more.
|
|
29
39
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_github_plus-0.0.6 → python_github_plus-1.1.0}/python_github_plus.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|