tgit 0.7.1__tar.gz → 0.8.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tgit
3
- Version: 0.7.1
3
+ Version: 0.8.0
4
4
  Summary: Tool for Git Interaction Temptation (tgit): An elegant CLI tool that simplifies and streamlines your Git workflow, making version control a breeze.
5
5
  Author-email: Jannchie <jannchie@gmail.com>
6
6
  License-Expression: MIT
@@ -13,11 +13,11 @@ Classifier: Topic :: Software Development :: Version Control
13
13
  Classifier: Topic :: Utilities
14
14
  Classifier: Typing :: Typed
15
15
  Requires-Python: >=3.11
16
- Requires-Dist: gitpython
17
- Requires-Dist: inquirer
16
+ Requires-Dist: gitpython>=3.1.43
17
+ Requires-Dist: inquirer>=3.4.0
18
18
  Requires-Dist: openai>=1.51.0
19
- Requires-Dist: pyyaml
20
- Requires-Dist: rich
19
+ Requires-Dist: pyyaml>=6.0.2
20
+ Requires-Dist: rich>=13.9.2
21
21
  Description-Content-Type: text/markdown
22
22
 
23
23
  # tgit
@@ -1,10 +1,16 @@
1
1
  [project]
2
2
  name = "tgit"
3
- version = "0.7.1"
3
+ version = "0.8.0"
4
4
  description = "Tool for Git Interaction Temptation (tgit): An elegant CLI tool that simplifies and streamlines your Git workflow, making version control a breeze."
5
5
  authors = [{ name = "Jannchie", email = "jannchie@gmail.com" }]
6
- dependencies = ["rich", "PyYAML", "inquirer", "gitpython", "openai>=1.51.0"]
7
- readme = "README.md"
6
+ dependencies = [
7
+ "rich>=13.9.2",
8
+ "pyyaml>=6.0.2",
9
+ "inquirer>=3.4.0",
10
+ "gitpython>=3.1.43",
11
+ "openai>=1.51.0",
12
+ ]
13
+ readme = { content-type = "text/markdown", file = "README.md" }
8
14
  requires-python = ">= 3.11"
9
15
  classifiers = [
10
16
  "Development Status :: 3 - Alpha",
@@ -76,7 +76,7 @@ pyyaml==6.0.2
76
76
  # via tgit
77
77
  readchar==4.2.0
78
78
  # via inquirer
79
- rich==13.9.1
79
+ rich==13.9.2
80
80
  # via tgit
81
81
  runs==1.2.2
82
82
  # via editor
@@ -63,7 +63,7 @@ pyyaml==6.0.2
63
63
  # via tgit
64
64
  readchar==4.2.0
65
65
  # via inquirer
66
- rich==13.9.1
66
+ rich==13.9.2
67
67
  # via tgit
68
68
  runs==1.2.2
69
69
  # via editor
@@ -12,7 +12,7 @@ from rich import print
12
12
  from tgit.settings import settings
13
13
  from tgit.utils import get_commit_command, run_command, type_emojis
14
14
 
15
- commit_type = ["feat", "fix", "chore", "docs", "style", "refactor", "perf"]
15
+ commit_type = ["feat", "fix", "chore", "docs", "style", "refactor", "perf", "wip"]
16
16
 
17
17
 
18
18
  def define_commit_parser(subparsers: argparse._SubParsersAction):
@@ -70,7 +70,7 @@ def get_ai_command() -> str | None:
70
70
  messages=[
71
71
  {
72
72
  "role": "system",
73
- "content": f"You are a git bot. You should read the diff and suggest a commit message. The type should be one of {types}. The message should in all lowercase.",
73
+ "content": f"You are a git bot. You should read the diff and suggest a commit message. The type should be one of {types}. The message should in all lowercase. The message should cover all the changes in the diff.",
74
74
  },
75
75
  {"role": "user", "content": diff},
76
76
  ],
@@ -108,7 +108,7 @@ def handle_commit(args: CommitArgs):
108
108
  commit_scope = None
109
109
  commit_msg = messages[1]
110
110
  if commit_type not in choices:
111
- print(f"Invalid type: {args.type}")
111
+ print(f"Invalid type: {commit_type}")
112
112
  print(f"Valid types: {choices}")
113
113
  return
114
114
  use_emoji = args.emoji
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
File without changes
File without changes
File without changes
File without changes