lbranch 0.1.0__tar.gz → 0.1.2__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.
@@ -3,3 +3,4 @@ TODO
3
3
  __pycache__
4
4
  .pytest_cache
5
5
  *.*.swp
6
+ dist
@@ -1,14 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbranch
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Git utility that shows recently checked-out branches in chronological order and lets you quickly switch between them.
5
+ Project-URL: Homepage, https://github.com/dcchuck/lbranch
6
+ Project-URL: Source Code, https://github.com/dcchuck/lbranch
5
7
  Author: Chuck Danielsson
6
8
  License-Expression: MIT
7
9
  License-File: LICENSE
10
+ Keywords: branch,cli,developer-tools,git,git-tools,version-control
8
11
  Classifier: Development Status :: 4 - Beta
9
12
  Classifier: Environment :: Console
10
13
  Classifier: Intended Audience :: Developers
11
14
  Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Natural Language :: English
12
16
  Classifier: Programming Language :: Python :: 3
13
17
  Classifier: Programming Language :: Python :: 3.7
14
18
  Classifier: Programming Language :: Python :: 3.8
@@ -16,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
16
20
  Classifier: Programming Language :: Python :: 3.10
17
21
  Classifier: Programming Language :: Python :: 3.11
18
22
  Classifier: Topic :: Software Development :: Version Control :: Git
23
+ Classifier: Topic :: Utilities
19
24
  Requires-Python: >=3.7
20
25
  Description-Content-Type: text/markdown
21
26
 
@@ -69,8 +74,27 @@ lbranch follows the standard exit codes from sysexits.h for better integration w
69
74
  These follow Unix conventions where exit codes 64-78 are standardized error codes, and 128+N indicates termination by signal N.
70
75
 
71
76
  ## Requirements
72
- - Python 3.6+
77
+ - Python 3.7+
73
78
  - Git
74
79
 
80
+ ## Installation
81
+
82
+ ### Using pip
83
+
84
+ You can install lbranch directly from [PyPI](https://pypi.org/project/lbranch/):
85
+
86
+ ```bash
87
+ pip install lbranch
88
+ ```
89
+
90
+ ### Using Homebrew
91
+
92
+ You can install lbranch using [Homebrew](https://brew.sh/):
93
+
94
+ ```bash
95
+ brew tap dcchuck/lbranch
96
+ brew install lbranch
97
+ ```
98
+
75
99
  ## License
76
100
  Distributed under the MIT License. See `LICENSE`
@@ -48,8 +48,27 @@ lbranch follows the standard exit codes from sysexits.h for better integration w
48
48
  These follow Unix conventions where exit codes 64-78 are standardized error codes, and 128+N indicates termination by signal N.
49
49
 
50
50
  ## Requirements
51
- - Python 3.6+
51
+ - Python 3.7+
52
52
  - Git
53
53
 
54
+ ## Installation
55
+
56
+ ### Using pip
57
+
58
+ You can install lbranch directly from [PyPI](https://pypi.org/project/lbranch/):
59
+
60
+ ```bash
61
+ pip install lbranch
62
+ ```
63
+
64
+ ### Using Homebrew
65
+
66
+ You can install lbranch using [Homebrew](https://brew.sh/):
67
+
68
+ ```bash
69
+ brew tap dcchuck/lbranch
70
+ brew install lbranch
71
+ ```
72
+
54
73
  ## License
55
74
  Distributed under the MIT License. See `LICENSE`
@@ -0,0 +1,12 @@
1
+ """
2
+ lbranch - A Git utility that shows recently checked out branches in chronological order.
3
+ """
4
+
5
+ from pathlib import Path
6
+ from .main import main
7
+
8
+ # Read version from VERSION file
9
+ _version_file = Path(__file__).parent.parent / 'VERSION'
10
+ __version__ = _version_file.read_text().strip()
11
+
12
+ __all__ = ['main']
@@ -82,8 +82,8 @@ else:
82
82
  BLUE = ''
83
83
  NC = ''
84
84
 
85
- # Version - should match pyproject.toml
86
- __version__ = '0.1.0'
85
+ # Import version from __init__.py
86
+ from . import __version__
87
87
 
88
88
 
89
89
  def print_error(message, exit_code=EXIT_SOFTWARE):
@@ -249,8 +249,9 @@ def main():
249
249
  # Handle select mode
250
250
  if args.select:
251
251
  try:
252
- print(f'\n{GREEN}Enter branch number to checkout (1-{branch_limit}):{NC}')
253
- branch_num = input()
252
+ branch_num = input(
253
+ f'\n{GREEN}Enter branch number to checkout (1-{branch_limit}): {NC}'
254
+ )
254
255
 
255
256
  if (
256
257
  not re.match(r'^\d+$', branch_num)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "lbranch"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "A Git utility that shows recently checked-out branches in chronological order and lets you quickly switch between them."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -12,11 +12,13 @@ license = "MIT"
12
12
  authors = [
13
13
  { name = "Chuck Danielsson" }
14
14
  ]
15
+ keywords = ["git", "branch", "git-tools", "developer-tools", "version-control", "cli"]
15
16
  classifiers = [
16
17
  "Development Status :: 4 - Beta",
17
18
  "Environment :: Console",
18
19
  "Intended Audience :: Developers",
19
20
  "License :: OSI Approved :: MIT License",
21
+ "Natural Language :: English",
20
22
  "Programming Language :: Python :: 3",
21
23
  "Programming Language :: Python :: 3.7",
22
24
  "Programming Language :: Python :: 3.8",
@@ -24,14 +26,19 @@ classifiers = [
24
26
  "Programming Language :: Python :: 3.10",
25
27
  "Programming Language :: Python :: 3.11",
26
28
  "Topic :: Software Development :: Version Control :: Git",
29
+ "Topic :: Utilities",
27
30
  ]
28
31
  dependencies = []
29
32
 
33
+ [project.urls]
34
+ "Homepage" = "https://github.com/dcchuck/lbranch"
35
+ "Source Code" = "https://github.com/dcchuck/lbranch"
36
+
30
37
  [project.scripts]
31
38
  lbranch = "lbranch.main:main"
32
39
 
33
40
  [tool.hatch.build]
34
- packages = ["lbranch"]
41
+ packages = ["lbranch"]
35
42
 
36
43
  [tool.ruff]
37
44
  # Same as Black formatter default
@@ -1,8 +0,0 @@
1
- """
2
- lbranch - A Git utility that shows recently checked out branches in chronological order.
3
- """
4
-
5
- from .main import main
6
-
7
- __version__ = '0.1.0'
8
- __all__ = ['main']
File without changes