commitmessagegenerator 1.2.4__tar.gz → 1.3.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.
Files changed (15) hide show
  1. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/PKG-INFO +10 -2
  2. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/README.md +9 -1
  3. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator/cli.py +3 -2
  4. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator/generator.py +1 -0
  5. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/PKG-INFO +10 -2
  6. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/pyproject.toml +1 -1
  7. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/LICENSE +0 -0
  8. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator/__init__.py +0 -0
  9. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator/configure.py +0 -0
  10. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/SOURCES.txt +0 -0
  11. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/dependency_links.txt +0 -0
  12. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/entry_points.txt +0 -0
  13. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/requires.txt +0 -0
  14. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/commitmessagegenerator.egg-info/top_level.txt +0 -0
  15. {commitmessagegenerator-1.2.4 → commitmessagegenerator-1.3.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitmessagegenerator
3
- Version: 1.2.4
3
+ Version: 1.3.0
4
4
  Summary: Generate commit messages with AI (Google Gemini) automatically using `git diff`.
5
5
  Author-email: Gabriel Terceiro <gcarolinoterceiro@gmail.com>
6
6
  License: MIT
@@ -31,6 +31,14 @@ pip install commitmessagegenerator
31
31
 
32
32
  ## ⚙️ Configuring
33
33
 
34
+ ```bash
35
+ commitgen -cf
36
+ ```
37
+
38
+ ## Run this and type you API key to the terminal so the package creates the .env file and automatically adds it to the .gitignore
39
+
40
+ Or do it manually:
41
+
34
42
  ## IMPORTANT - BEFORE CREATING THIS FILE ADD '.venv' TO YOUR .gitignore SO YOUR API KEY ISN'T EXPOSED
35
43
 
36
44
  Create a `.env` file in the directory where you will run commitgen (usually the root of your Git project):
@@ -44,7 +52,7 @@ GEMINI_API_KEY=your-gemini-api-key
44
52
  With the terminal, inside any Git repository with pending changes, run:
45
53
 
46
54
  ```bash
47
- commitgen (-c/-cg)
55
+ commitgen (-c/-cp)
48
56
  ```
49
57
 
50
58
  The command will:
@@ -18,6 +18,14 @@ pip install commitmessagegenerator
18
18
 
19
19
  ## ⚙️ Configuring
20
20
 
21
+ ```bash
22
+ commitgen -cf
23
+ ```
24
+
25
+ ## Run this and type you API key to the terminal so the package creates the .env file and automatically adds it to the .gitignore
26
+
27
+ Or do it manually:
28
+
21
29
  ## IMPORTANT - BEFORE CREATING THIS FILE ADD '.venv' TO YOUR .gitignore SO YOUR API KEY ISN'T EXPOSED
22
30
 
23
31
  Create a `.env` file in the directory where you will run commitgen (usually the root of your Git project):
@@ -31,7 +39,7 @@ GEMINI_API_KEY=your-gemini-api-key
31
39
  With the terminal, inside any Git repository with pending changes, run:
32
40
 
33
41
  ```bash
34
- commitgen (-c/-cg)
42
+ commitgen (-c/-cp)
35
43
  ```
36
44
 
37
45
  The command will:
@@ -3,6 +3,7 @@ import subprocess
3
3
  from .generator import gerar_mensagem_commit
4
4
  from .configure import api_key
5
5
  import sys
6
+ import getpass
6
7
 
7
8
  def main():
8
9
  parser = argparse.ArgumentParser(description="Gerador de mensagens de commit com IA")
@@ -29,8 +30,8 @@ def main():
29
30
  subprocess.run(["git", "push"])
30
31
 
31
32
  if args.configure:
32
- print("\nPlease input your API KEY\nThis is directly set in the .env file\n")
33
- key = input()
33
+ print("\nPlease input your API KEY\nThis is directly set in the .env file")
34
+ key = getpass.getpass()
34
35
  api_key(key)
35
36
  print("\nAPI KEY saved in .env file\n")
36
37
 
@@ -36,6 +36,7 @@ def gerar_mensagem_commit():
36
36
  )
37
37
 
38
38
  response = model.generate_content(
39
+ model="gemini-2.0-flash",
39
40
  contents=[{"role": "user", "parts": [prompt]}]
40
41
  )
41
42
  return response.text.strip()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitmessagegenerator
3
- Version: 1.2.4
3
+ Version: 1.3.0
4
4
  Summary: Generate commit messages with AI (Google Gemini) automatically using `git diff`.
5
5
  Author-email: Gabriel Terceiro <gcarolinoterceiro@gmail.com>
6
6
  License: MIT
@@ -31,6 +31,14 @@ pip install commitmessagegenerator
31
31
 
32
32
  ## ⚙️ Configuring
33
33
 
34
+ ```bash
35
+ commitgen -cf
36
+ ```
37
+
38
+ ## Run this and type you API key to the terminal so the package creates the .env file and automatically adds it to the .gitignore
39
+
40
+ Or do it manually:
41
+
34
42
  ## IMPORTANT - BEFORE CREATING THIS FILE ADD '.venv' TO YOUR .gitignore SO YOUR API KEY ISN'T EXPOSED
35
43
 
36
44
  Create a `.env` file in the directory where you will run commitgen (usually the root of your Git project):
@@ -44,7 +52,7 @@ GEMINI_API_KEY=your-gemini-api-key
44
52
  With the terminal, inside any Git repository with pending changes, run:
45
53
 
46
54
  ```bash
47
- commitgen (-c/-cg)
55
+ commitgen (-c/-cp)
48
56
  ```
49
57
 
50
58
  The command will:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "commitmessagegenerator"
7
- version = "1.2.4"
7
+ version = "1.3.0"
8
8
  description = "Generate commit messages with AI (Google Gemini) automatically using `git diff`."
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}