gpt-pr 0.6.1__py3-none-any.whl → 0.7.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.
Potentially problematic release.
This version of gpt-pr might be problematic. Click here for more details.
- {gpt_pr-0.6.1.dist-info → gpt_pr-0.7.0.dist-info}/METADATA +5 -5
- {gpt_pr-0.6.1.dist-info → gpt_pr-0.7.0.dist-info}/RECORD +8 -8
- gptpr/gitutil.py +5 -5
- gptpr/main.py +2 -2
- gptpr/version.py +1 -1
- {gpt_pr-0.6.1.dist-info → gpt_pr-0.7.0.dist-info}/WHEEL +0 -0
- {gpt_pr-0.6.1.dist-info → gpt_pr-0.7.0.dist-info}/entry_points.txt +0 -0
- {gpt_pr-0.6.1.dist-info → gpt_pr-0.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gpt-pr
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Automate your GitHub workflow with GPT-PR: an OpenAI powered library for streamlined PR generation.
|
|
5
5
|
Home-page: http://github.com/alissonperez/gpt-pr
|
|
6
6
|
Author: Alisson R. Perez
|
|
@@ -8,11 +8,11 @@ Author-email: alissonperez@outlook.com
|
|
|
8
8
|
License: MIT
|
|
9
9
|
Requires-Python: >=3.7
|
|
10
10
|
Requires-Dist: cffi ==1.15.1
|
|
11
|
-
Requires-Dist: cryptography ==43.0.
|
|
11
|
+
Requires-Dist: cryptography ==43.0.3
|
|
12
12
|
Requires-Dist: fire ==0.6.0
|
|
13
13
|
Requires-Dist: pycparser ==2.21
|
|
14
14
|
Requires-Dist: wcwidth ==0.2.13
|
|
15
|
-
Requires-Dist: charset-normalizer ==3.
|
|
15
|
+
Requires-Dist: charset-normalizer ==3.4.0 ; python_full_version >= "3.7.0"
|
|
16
16
|
Requires-Dist: prompt-toolkit ==3.0.43 ; python_full_version >= "3.7.0"
|
|
17
17
|
Requires-Dist: openai ==1.14.0 ; python_full_version >= "3.7.1"
|
|
18
18
|
Requires-Dist: exceptiongroup ==1.2.2 ; python_version < "3.11"
|
|
@@ -22,7 +22,7 @@ Requires-Dist: six ==1.16.0 ; python_version >= "2.7" and python_version not in
|
|
|
22
22
|
Requires-Dist: deprecated ==1.2.14 ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
|
|
23
23
|
Requires-Dist: certifi ==2024.8.30 ; python_version >= "3.6"
|
|
24
24
|
Requires-Dist: distro ==1.9.0 ; python_version >= "3.6"
|
|
25
|
-
Requires-Dist: idna ==3.
|
|
25
|
+
Requires-Dist: idna ==3.10 ; python_version >= "3.6"
|
|
26
26
|
Requires-Dist: pynacl ==1.5.0 ; python_version >= "3.6"
|
|
27
27
|
Requires-Dist: wrapt ==1.16.0 ; python_version >= "3.6"
|
|
28
28
|
Requires-Dist: annotated-types ==0.5.0 ; python_version >= "3.7"
|
|
@@ -40,7 +40,7 @@ Requires-Dist: requests ==2.31.0 ; python_version >= "3.7"
|
|
|
40
40
|
Requires-Dist: smmap ==5.0.1 ; python_version >= "3.7"
|
|
41
41
|
Requires-Dist: sniffio ==1.3.1 ; python_version >= "3.7"
|
|
42
42
|
Requires-Dist: termcolor ==2.3.0 ; python_version >= "3.7"
|
|
43
|
-
Requires-Dist: tqdm ==4.
|
|
43
|
+
Requires-Dist: tqdm ==4.67.0 ; python_version >= "3.7"
|
|
44
44
|
Requires-Dist: typing-extensions ==4.7.1 ; python_version >= "3.7"
|
|
45
45
|
Requires-Dist: urllib3 ==2.0.7 ; python_version >= "3.7"
|
|
46
46
|
Requires-Dist: zipp ==3.15.0 ; python_version >= "3.7"
|
|
@@ -3,15 +3,15 @@ gptpr/checkversion.py,sha256=PmbGiYJelecs1Fv2aAZwdr6wn-qDC826nsYI4A6LLvk,2389
|
|
|
3
3
|
gptpr/config.py,sha256=jOr95rErnk-MByWtC92bpgY2dyVc6bbrjaVoP61oO-s,2822
|
|
4
4
|
gptpr/consolecolor.py,sha256=_JmBMNjIflWMlgP2VkCWu6uQLR9oHBy52uV3TRJJgF4,800
|
|
5
5
|
gptpr/gh.py,sha256=E03xg8UHfZlHJAY-aAYphpgS3xl-FZ2dmI5oBC2XdoA,1136
|
|
6
|
-
gptpr/gitutil.py,sha256=
|
|
7
|
-
gptpr/main.py,sha256=
|
|
6
|
+
gptpr/gitutil.py,sha256=yqvpw_pq7Bw_uOcNa4eaUVIFu6YhrK6cjd-74Obtqfk,5996
|
|
7
|
+
gptpr/main.py,sha256=Is8CMg6lCNKiAFZ4OWUZk9gv8uk-JtqxBKviKoVmYXw,2719
|
|
8
8
|
gptpr/prdata.py,sha256=Uls18CtkxWlflfHKrB62hT21MTUVabf8JgJ6CxOOccQ,7053
|
|
9
9
|
gptpr/test_checkversion.py,sha256=WtJ3v4MMkFG0Kob0R1wi_nwVhcQFd4mXtKCKZHajEhM,4266
|
|
10
10
|
gptpr/test_config.py,sha256=iL3b-Ypv1TaMQTFb6mrDKw8fPio3WBpMcaFkWbiLdNQ,3369
|
|
11
11
|
gptpr/test_prdata.py,sha256=rSJ-yqOdw-iYdBWyqnA2SXbdrhT8KgIkRTTf9SY1S1g,474
|
|
12
|
-
gptpr/version.py,sha256=
|
|
13
|
-
gpt_pr-0.
|
|
14
|
-
gpt_pr-0.
|
|
15
|
-
gpt_pr-0.
|
|
16
|
-
gpt_pr-0.
|
|
17
|
-
gpt_pr-0.
|
|
12
|
+
gptpr/version.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
|
|
13
|
+
gpt_pr-0.7.0.dist-info/METADATA,sha256=BgN9xwsERgW0Z4GLToiWkBmUXAxlVnFwdfWu0n8-6I8,2640
|
|
14
|
+
gpt_pr-0.7.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
15
|
+
gpt_pr-0.7.0.dist-info/entry_points.txt,sha256=WhcbcQXqo5-IGliYWiYMhop4-Wm7bcH2ljFKLWrmO7c,81
|
|
16
|
+
gpt_pr-0.7.0.dist-info/top_level.txt,sha256=DZcbzlsjh4BD8njGcvhOeCZ83U_oYWgCn0w8qx5--04,6
|
|
17
|
+
gpt_pr-0.7.0.dist-info/RECORD,,
|
gptpr/gitutil.py
CHANGED
|
@@ -32,7 +32,7 @@ class FileChange:
|
|
|
32
32
|
return f'{self.file_path} (+{(self.lines_added)} -{self.lines_removed})'
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
def get_branch_info(base_branch, yield_confirmation):
|
|
35
|
+
def get_branch_info(base_branch, origin, yield_confirmation):
|
|
36
36
|
# Get current directory
|
|
37
37
|
current_dir = os.getcwd()
|
|
38
38
|
|
|
@@ -57,7 +57,7 @@ def get_branch_info(base_branch, yield_confirmation):
|
|
|
57
57
|
if not _branch_exists(repo, base_branch):
|
|
58
58
|
raise Exception(f'Base branch {base_branch} does not exist.')
|
|
59
59
|
|
|
60
|
-
owner, repo_name = _get_remote_info(repo)
|
|
60
|
+
owner, repo_name = _get_remote_info(repo, origin)
|
|
61
61
|
|
|
62
62
|
commits = _get_diff_messages_against_base_branch(repo, current_branch.name, base_branch)
|
|
63
63
|
commits = _get_valid_commits(commits, yield_confirmation)
|
|
@@ -125,9 +125,9 @@ def _get_highlight_commits(commits, yield_confirmation):
|
|
|
125
125
|
return highlight_commits
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
def _get_remote_info(repo):
|
|
128
|
+
def _get_remote_info(repo, origin):
|
|
129
129
|
for remote in repo.remotes:
|
|
130
|
-
if remote.name !=
|
|
130
|
+
if remote.name != origin:
|
|
131
131
|
continue
|
|
132
132
|
|
|
133
133
|
remote_urls_joined = ','.join([str(url) for url in remote.urls])
|
|
@@ -137,7 +137,7 @@ def _get_remote_info(repo):
|
|
|
137
137
|
for url in remote.urls:
|
|
138
138
|
return _extract_owner_and_repo(url)
|
|
139
139
|
|
|
140
|
-
raise Exception('Could not find origin remote.')
|
|
140
|
+
raise Exception(f'Could not find \'{origin}\' remote.')
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
def _extract_owner_and_repo(repo_url):
|
gptpr/main.py
CHANGED
|
@@ -10,7 +10,7 @@ from gptpr import consolecolor as cc
|
|
|
10
10
|
from gptpr.checkversion import check_for_updates
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
def run(base_branch='main', yield_confirmation=False, version=False):
|
|
13
|
+
def run(base_branch='main', origin='origin', yield_confirmation=False, version=False):
|
|
14
14
|
'''
|
|
15
15
|
Create Pull Requests from current branch with base branch (default 'main' branch)
|
|
16
16
|
'''
|
|
@@ -19,7 +19,7 @@ def run(base_branch='main', yield_confirmation=False, version=False):
|
|
|
19
19
|
print('Current version:', __version__)
|
|
20
20
|
return
|
|
21
21
|
|
|
22
|
-
branch_info = get_branch_info(base_branch, yield_confirmation)
|
|
22
|
+
branch_info = get_branch_info(base_branch, origin, yield_confirmation)
|
|
23
23
|
|
|
24
24
|
if not branch_info:
|
|
25
25
|
exit(0)
|
gptpr/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.7.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|