python-github-plus 0.0.6__py3-none-any.whl → 1.1.0__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.
@@ -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(self.__class__.__name__)
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(self.__class__.__name__)
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(self.__class__.__name__)
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(self.__class__.__name__)
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(self.__class__.__name__)
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(self.__class__.__name__)
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(self.__class__.__name__)
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: 0.0.6
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>=2.0.10
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
+ ![PyPI version](https://img.shields.io/pypi/v/python-github-plus)
29
+ ![Python](https://img.shields.io/badge/python->=3.12-blue)
30
+ ![Development Status](https://img.shields.io/badge/status-stable-green)
31
+ ![Maintenance](https://img.shields.io/maintenance/yes/2026)
32
+ ![PyPI](https://img.shields.io/pypi/dm/python-github-plus)
33
+ ![License](https://img.shields.io/pypi/l/python-github-plus)
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
 
@@ -0,0 +1,8 @@
1
+ python_github_plus/__init__.py,sha256=X9i7u5Or-dmMMWc2R9Vq982MjK-BGpPbvSs3yL7i_ew,211
2
+ python_github_plus/const.py,sha256=lS3kH5jzxhNlJf_jfvH3bc98jQGmpnHoDkJGdj7jLzI,34
3
+ python_github_plus/github_plus.py,sha256=zESx4F3bS3kKKyo5MvL8H66Uxoh_KEteXaFwLQkNfE8,12095
4
+ python_github_plus-1.1.0.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
5
+ python_github_plus-1.1.0.dist-info/METADATA,sha256=RSkzt2JwQdf_NjWAF7DoYv_5it1cIJXipzc7Zafu0CY,7311
6
+ python_github_plus-1.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
7
+ python_github_plus-1.1.0.dist-info/top_level.txt,sha256=lm_rQAamcpxcN00h3Thamd05_z5PdTfy-RVSuCpN_xA,19
8
+ python_github_plus-1.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (81.0.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- python_github_plus/__init__.py,sha256=X9i7u5Or-dmMMWc2R9Vq982MjK-BGpPbvSs3yL7i_ew,211
2
- python_github_plus/github_plus.py,sha256=-01qHZSq76JZJOq_LKL63aRjN9JIWzJb--xJDv0dkbQ,12129
3
- python_github_plus-0.0.6.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
4
- python_github_plus-0.0.6.dist-info/METADATA,sha256=i7d4pIrQ0gSSt-vt5jAkQHMuBbbCs_QmxD4Iwdwrd0k,6856
5
- python_github_plus-0.0.6.dist-info/WHEEL,sha256=YLJXdYXQ2FQ0Uqn2J-6iEIC-3iOey8lH3xCtvFLkd8Q,91
6
- python_github_plus-0.0.6.dist-info/top_level.txt,sha256=lm_rQAamcpxcN00h3Thamd05_z5PdTfy-RVSuCpN_xA,19
7
- python_github_plus-0.0.6.dist-info/RECORD,,