commit-maker 0.2.0__tar.gz → 0.2.1__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.
- {commit_maker-0.2.0/src/commit_maker.egg-info → commit_maker-0.2.1}/PKG-INFO +3 -7
- {commit_maker-0.2.0 → commit_maker-0.2.1}/README.md +1 -1
- {commit_maker-0.2.0 → commit_maker-0.2.1}/pyproject.toml +1 -1
- {commit_maker-0.2.0 → commit_maker-0.2.1}/setup.py +1 -1
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker/main.py +22 -13
- {commit_maker-0.2.0 → commit_maker-0.2.1/src/commit_maker.egg-info}/PKG-INFO +3 -7
- {commit_maker-0.2.0 → commit_maker-0.2.1}/LICENSE +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/setup.cfg +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker/__init__.py +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker.egg-info/SOURCES.txt +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker.egg-info/dependency_links.txt +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker.egg-info/entry_points.txt +0 -0
- {commit_maker-0.2.0 → commit_maker-0.2.1}/src/commit_maker.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: commit-maker
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: CLI-утилита для генерации git-коммитов с помощью ИИ
|
|
5
5
|
Home-page: https://github.com/Sashayerty/commit_maker
|
|
6
6
|
Author: Alex Bulgakov
|
|
@@ -10,10 +10,6 @@ Project-URL: Homepage, https://github.com/sashayerty/commit_maker
|
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
-
Dynamic: author
|
|
14
|
-
Dynamic: home-page
|
|
15
|
-
Dynamic: license-file
|
|
16
|
-
Dynamic: requires-python
|
|
17
13
|
|
|
18
14
|
# Commit Maker [](https://www.python.org/) [](https://docs.astral.sh/uv/) [](https://ollama.com/) [](https://pypi.org/project/commit-maker/)
|
|
19
15
|
|
|
@@ -101,7 +97,7 @@ pip3 install commit_maker
|
|
|
101
97
|
|
|
102
98
|
### Пример использования
|
|
103
99
|
|
|
104
|
-
**`-h`**, **`--help`** - вывод помощи
|
|
100
|
+
**`-h`**, **`--help`** - вывод помощи
|
|
105
101
|
**`-l`**, **`--local-models`** - использование локальных моделей
|
|
106
102
|
**`-m`**, **`--max-symbols`** - ограничение длины сообщения коммита
|
|
107
103
|
**`-M`**, **`--model`** - какую локальную модель использовать (при **`-l`**)
|
|
@@ -84,7 +84,7 @@ pip3 install commit_maker
|
|
|
84
84
|
|
|
85
85
|
### Пример использования
|
|
86
86
|
|
|
87
|
-
**`-h`**, **`--help`** - вывод помощи
|
|
87
|
+
**`-h`**, **`--help`** - вывод помощи
|
|
88
88
|
**`-l`**, **`--local-models`** - использование локальных моделей
|
|
89
89
|
**`-m`**, **`--max-symbols`** - ограничение длины сообщения коммита
|
|
90
90
|
**`-M`**, **`--model`** - какую локальную модель использовать (при **`-l`**)
|
|
@@ -286,20 +286,23 @@ def main() -> None:
|
|
|
286
286
|
encoding="utf-8",
|
|
287
287
|
).stdout
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
289
|
+
if use_local_models:
|
|
290
|
+
# Получаем список моделей из Ollama, если Ollama есть
|
|
291
|
+
ollama_list_of_models = (
|
|
292
|
+
subprocess.run(
|
|
293
|
+
["ollama", "ls"],
|
|
294
|
+
capture_output=True,
|
|
295
|
+
text=True,
|
|
296
|
+
encoding="utf-8",
|
|
297
|
+
)
|
|
298
|
+
.stdout.strip()
|
|
299
|
+
.split("\n")
|
|
296
300
|
)
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
]
|
|
301
|
+
ollama_list_of_models = [
|
|
302
|
+
i.split()[0] for i in ollama_list_of_models[1:]
|
|
303
|
+
]
|
|
304
|
+
else:
|
|
305
|
+
ollama_list_of_models = 0
|
|
303
306
|
|
|
304
307
|
# Обработка отсутствия ollama
|
|
305
308
|
if not ollama_list_of_models and use_local_models:
|
|
@@ -556,6 +559,12 @@ def main() -> None:
|
|
|
556
559
|
== "y"
|
|
557
560
|
else None
|
|
558
561
|
)
|
|
562
|
+
except FileNotFoundError as e:
|
|
563
|
+
print(
|
|
564
|
+
colored("Ollama не установлена!", "red")
|
|
565
|
+
if "ollama" in str(e)
|
|
566
|
+
else colored(str(e), "red")
|
|
567
|
+
)
|
|
559
568
|
except Exception as e:
|
|
560
569
|
print(colored("Ошибка:", "red") + " " + str(e))
|
|
561
570
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: commit-maker
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: CLI-утилита для генерации git-коммитов с помощью ИИ
|
|
5
5
|
Home-page: https://github.com/Sashayerty/commit_maker
|
|
6
6
|
Author: Alex Bulgakov
|
|
@@ -10,10 +10,6 @@ Project-URL: Homepage, https://github.com/sashayerty/commit_maker
|
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
-
Dynamic: author
|
|
14
|
-
Dynamic: home-page
|
|
15
|
-
Dynamic: license-file
|
|
16
|
-
Dynamic: requires-python
|
|
17
13
|
|
|
18
14
|
# Commit Maker [](https://www.python.org/) [](https://docs.astral.sh/uv/) [](https://ollama.com/) [](https://pypi.org/project/commit-maker/)
|
|
19
15
|
|
|
@@ -101,7 +97,7 @@ pip3 install commit_maker
|
|
|
101
97
|
|
|
102
98
|
### Пример использования
|
|
103
99
|
|
|
104
|
-
**`-h`**, **`--help`** - вывод помощи
|
|
100
|
+
**`-h`**, **`--help`** - вывод помощи
|
|
105
101
|
**`-l`**, **`--local-models`** - использование локальных моделей
|
|
106
102
|
**`-m`**, **`--max-symbols`** - ограничение длины сообщения коммита
|
|
107
103
|
**`-M`**, **`--model`** - какую локальную модель использовать (при **`-l`**)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|