gptdiff 0.1.3__tar.gz → 0.1.5__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.
- {gptdiff-0.1.3 → gptdiff-0.1.5}/PKG-INFO +2 -2
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff/gptdiff.py +9 -2
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/PKG-INFO +2 -2
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/requires.txt +1 -1
- {gptdiff-0.1.3 → gptdiff-0.1.5}/setup.py +2 -2
- {gptdiff-0.1.3 → gptdiff-0.1.5}/LICENSE.txt +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/README.md +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff/__init__.py +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/SOURCES.txt +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/dependency_links.txt +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/entry_points.txt +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/gptdiff.egg-info/top_level.txt +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/setup.cfg +0 -0
- {gptdiff-0.1.3 → gptdiff-0.1.5}/tests/test_smartapply.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: gptdiff
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.5
|
4
4
|
Summary: A tool to generate and apply git diffs using LLMs
|
5
5
|
Author: 255labs
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -10,7 +10,7 @@ Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.txt
|
11
11
|
Requires-Dist: openai>=1.0.0
|
12
12
|
Requires-Dist: tiktoken>=0.5.0
|
13
|
-
Requires-Dist: ai_agent_toolbox>=0.1.
|
13
|
+
Requires-Dist: ai_agent_toolbox>=0.1.9
|
14
14
|
Provides-Extra: test
|
15
15
|
Requires-Dist: pytest; extra == "test"
|
16
16
|
Requires-Dist: pytest-mock; extra == "test"
|
@@ -36,7 +36,14 @@ def create_toolbox():
|
|
36
36
|
"description": "Complete diff."
|
37
37
|
}
|
38
38
|
},
|
39
|
-
description="Save the calculated diff as used in 'git apply'
|
39
|
+
description="""Save the calculated diff as used in 'git apply'. Should include the file and line number. For example:
|
40
|
+
a/file.py b/file.py
|
41
|
+
--- a/file.py
|
42
|
+
+++ b/file.py
|
43
|
+
@@ -1,2 +1,2 @@
|
44
|
+
-def old():
|
45
|
+
+def new():
|
46
|
+
"""
|
40
47
|
)
|
41
48
|
return toolbox
|
42
49
|
|
@@ -282,7 +289,7 @@ def apply_diff(project_dir, diff_text):
|
|
282
289
|
with open(diff_file, 'w') as f:
|
283
290
|
f.write(diff_text)
|
284
291
|
|
285
|
-
result = subprocess.run(["patch", "-p1", "--remove-empty-files", "--input", str(diff_file)], cwd=project_dir, capture_output=True, text=True)
|
292
|
+
result = subprocess.run(["patch", "-p1", "-f", "--remove-empty-files", "--input", str(diff_file)], cwd=project_dir, capture_output=True, text=True)
|
286
293
|
if result.returncode != 0:
|
287
294
|
return False
|
288
295
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: gptdiff
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.5
|
4
4
|
Summary: A tool to generate and apply git diffs using LLMs
|
5
5
|
Author: 255labs
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -10,7 +10,7 @@ Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.txt
|
11
11
|
Requires-Dist: openai>=1.0.0
|
12
12
|
Requires-Dist: tiktoken>=0.5.0
|
13
|
-
Requires-Dist: ai_agent_toolbox>=0.1.
|
13
|
+
Requires-Dist: ai_agent_toolbox>=0.1.9
|
14
14
|
Provides-Extra: test
|
15
15
|
Requires-Dist: pytest; extra == "test"
|
16
16
|
Requires-Dist: pytest-mock; extra == "test"
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='gptdiff',
|
5
|
-
version='0.1.
|
5
|
+
version='0.1.5',
|
6
6
|
description='A tool to generate and apply git diffs using LLMs',
|
7
7
|
author='255labs',
|
8
8
|
packages=find_packages(), # Use find_packages() to automatically discover packages
|
@@ -12,7 +12,7 @@ setup(
|
|
12
12
|
install_requires=[
|
13
13
|
'openai>=1.0.0',
|
14
14
|
'tiktoken>=0.5.0',
|
15
|
-
'ai_agent_toolbox>=0.1.
|
15
|
+
'ai_agent_toolbox>=0.1.9'
|
16
16
|
],
|
17
17
|
extras_require={
|
18
18
|
'test': ['pytest', 'pytest-mock'],
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|