git-ember 1.2.0__tar.gz → 1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-ember
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A GitHub-style heatmap of commits for your terminal
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -23,20 +23,39 @@ The tool supports multiple color schemes, branch filtering, custom date ranges,
23
23
 
24
24
  ## Installation
25
25
 
26
- Clone the repository:
26
+ 1. Clone the repository:
27
27
 
28
- ```bash
29
- git clone https://codeberg.org/lukavr05/git-ember.git
30
- cd git-ember
31
- ```
28
+ ```bash
29
+ git clone https://codeberg.org/lukavr05/git-ember.git
30
+ cd git-ember
31
+ ```
32
+
33
+ 2. Install the package:
32
34
 
35
+ ```bash
36
+ pip install -e .
37
+ ```
33
38
 
34
39
  ### Running without installation
35
40
 
41
+ If you prefer not to install the package, run directly:
42
+
36
43
  ```bash
37
44
  PYTHONPATH=src python3 main.py .
38
45
  ```
39
46
 
47
+ To verify the installation:
48
+
49
+ ```bash
50
+ git-ember --version
51
+ ```
52
+
53
+ To uninstall:
54
+
55
+ ```bash
56
+ pip uninstall git-ember
57
+ ```
58
+
40
59
  ## Configuration
41
60
 
42
61
  git-ember reads configuration from `~/.config/git-ember/config.toml`. CLI arguments take precedence over config values.
@@ -142,11 +161,11 @@ git-ember/
142
161
  │ ├── CHANGELOG.md # Version history
143
162
  │ └── PLAN.md # Feature planning
144
163
  └── src/
145
- └── githeat/
164
+ └── gitember/
146
165
  ├── __init__.py # Package version
147
166
  ├── cli.py # CLI argument parsing and config
148
167
  ├── git.py # Git command execution and parsing
149
- ├── render.py # Grid and branch tree rendering
168
+ ├── render.py # Grid and branch tree rendering
150
169
  └── colors.py # ANSI color scheme definitions
151
170
  ```
152
171
 
@@ -15,20 +15,39 @@ The tool supports multiple color schemes, branch filtering, custom date ranges,
15
15
 
16
16
  ## Installation
17
17
 
18
- Clone the repository:
18
+ 1. Clone the repository:
19
19
 
20
- ```bash
21
- git clone https://codeberg.org/lukavr05/git-ember.git
22
- cd git-ember
23
- ```
20
+ ```bash
21
+ git clone https://codeberg.org/lukavr05/git-ember.git
22
+ cd git-ember
23
+ ```
24
+
25
+ 2. Install the package:
24
26
 
27
+ ```bash
28
+ pip install -e .
29
+ ```
25
30
 
26
31
  ### Running without installation
27
32
 
33
+ If you prefer not to install the package, run directly:
34
+
28
35
  ```bash
29
36
  PYTHONPATH=src python3 main.py .
30
37
  ```
31
38
 
39
+ To verify the installation:
40
+
41
+ ```bash
42
+ git-ember --version
43
+ ```
44
+
45
+ To uninstall:
46
+
47
+ ```bash
48
+ pip uninstall git-ember
49
+ ```
50
+
32
51
  ## Configuration
33
52
 
34
53
  git-ember reads configuration from `~/.config/git-ember/config.toml`. CLI arguments take precedence over config values.
@@ -134,11 +153,11 @@ git-ember/
134
153
  │ ├── CHANGELOG.md # Version history
135
154
  │ └── PLAN.md # Feature planning
136
155
  └── src/
137
- └── githeat/
156
+ └── gitember/
138
157
  ├── __init__.py # Package version
139
158
  ├── cli.py # CLI argument parsing and config
140
159
  ├── git.py # Git command execution and parsing
141
- ├── render.py # Grid and branch tree rendering
160
+ ├── render.py # Grid and branch tree rendering
142
161
  └── colors.py # ANSI color scheme definitions
143
162
  ```
144
163
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "git-ember"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "A GitHub-style heatmap of commits for your terminal"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-ember
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A GitHub-style heatmap of commits for your terminal
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -23,20 +23,39 @@ The tool supports multiple color schemes, branch filtering, custom date ranges,
23
23
 
24
24
  ## Installation
25
25
 
26
- Clone the repository:
26
+ 1. Clone the repository:
27
27
 
28
- ```bash
29
- git clone https://codeberg.org/lukavr05/git-ember.git
30
- cd git-ember
31
- ```
28
+ ```bash
29
+ git clone https://codeberg.org/lukavr05/git-ember.git
30
+ cd git-ember
31
+ ```
32
+
33
+ 2. Install the package:
32
34
 
35
+ ```bash
36
+ pip install -e .
37
+ ```
33
38
 
34
39
  ### Running without installation
35
40
 
41
+ If you prefer not to install the package, run directly:
42
+
36
43
  ```bash
37
44
  PYTHONPATH=src python3 main.py .
38
45
  ```
39
46
 
47
+ To verify the installation:
48
+
49
+ ```bash
50
+ git-ember --version
51
+ ```
52
+
53
+ To uninstall:
54
+
55
+ ```bash
56
+ pip uninstall git-ember
57
+ ```
58
+
40
59
  ## Configuration
41
60
 
42
61
  git-ember reads configuration from `~/.config/git-ember/config.toml`. CLI arguments take precedence over config values.
@@ -142,11 +161,11 @@ git-ember/
142
161
  │ ├── CHANGELOG.md # Version history
143
162
  │ └── PLAN.md # Feature planning
144
163
  └── src/
145
- └── githeat/
164
+ └── gitember/
146
165
  ├── __init__.py # Package version
147
166
  ├── cli.py # CLI argument parsing and config
148
167
  ├── git.py # Git command execution and parsing
149
- ├── render.py # Grid and branch tree rendering
168
+ ├── render.py # Grid and branch tree rendering
150
169
  └── colors.py # ANSI color scheme definitions
151
170
  ```
152
171
 
@@ -6,9 +6,9 @@ import sys
6
6
  import time
7
7
  from pathlib import Path
8
8
 
9
- from githeat import __version__
10
- from githeat.colors import get_color_scheme, RESET, LIGHT_GRAY
11
- from githeat.git import (
9
+ from gitember import __version__
10
+ from gitember.colors import get_color_scheme, RESET, LIGHT_GRAY
11
+ from gitember.git import (
12
12
  run_git_log,
13
13
  get_recent_commits,
14
14
  get_top_contributors,
@@ -18,7 +18,7 @@ from githeat.git import (
18
18
  get_default_branch,
19
19
  get_streaks,
20
20
  )
21
- from githeat.render import render_grid, render_branch_tree, calculate_thresholds
21
+ from gitember.render import render_grid, render_branch_tree, calculate_thresholds
22
22
 
23
23
 
24
24
  def config_file_path() -> Path:
@@ -2,7 +2,7 @@ import calendar
2
2
  import datetime as dt
3
3
  from typing import Any, Dict, List, Optional
4
4
 
5
- from githeat.colors import RESET, LIGHT_GRAY, ColorScheme
5
+ from gitember.colors import RESET, LIGHT_GRAY, ColorScheme
6
6
 
7
7
 
8
8
  DEFAULT_THRESHOLDS = (0, 1, 3, 6, 10)
@@ -19,6 +19,7 @@ def calculate_thresholds(counts: Dict[dt.date, int], mode: str = "auto") -> tupl
19
19
  Tuple of threshold values.
20
20
  """
21
21
  if mode == "auto":
22
+ max_commits = max(counts.values()) if counts else 1
22
23
  return (
23
24
  0,
24
25
  max(1, int(max_commits * 0.2)),
@@ -28,7 +29,7 @@ def calculate_thresholds(counts: Dict[dt.date, int], mode: str = "auto") -> tupl
28
29
  )
29
30
 
30
31
  if mode == "adaptive":
31
- sorted_values = sorted(values)
32
+ sorted_values = sorted(counts.values())
32
33
  n = len(sorted_values)
33
34
  return (
34
35
  0,
File without changes
File without changes