lbranch 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.
lbranch/__init__.py CHANGED
@@ -2,7 +2,11 @@
2
2
  lbranch - A Git utility that shows recently checked out branches in chronological order.
3
3
  """
4
4
 
5
+ from pathlib import Path
5
6
  from .main import main
6
7
 
7
- __version__ = '0.1.0'
8
+ # Read version from VERSION file
9
+ _version_file = Path(__file__).parent.parent / 'VERSION'
10
+ __version__ = _version_file.read_text().strip()
11
+
8
12
  __all__ = ['main']
lbranch/main.py CHANGED
@@ -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)
@@ -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`
@@ -0,0 +1,7 @@
1
+ lbranch/__init__.py,sha256=cIYcI8JltVFTgCiht33b6bk0VX80VTZIUrLvR0Yazmo,305
2
+ lbranch/main.py,sha256=K3k09CpcFtzhVMgew3nDXaHAOHdVrANBSh9L8ilrKCs,9007
3
+ lbranch-0.1.2.dist-info/METADATA,sha256=OZOzyWMI2aDXE2JjaNLoSrwl4Ttbkkw4P_AcrNhofck,3134
4
+ lbranch-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ lbranch-0.1.2.dist-info/entry_points.txt,sha256=Qt0Vg0xVAPAdyS9CTdTlrFJKuknrpuei08izhQb6bfY,46
6
+ lbranch-0.1.2.dist-info/licenses/LICENSE,sha256=oCT5BBwIA4HS-px42XMGO-QxY9dENLbh3_-GMpm1DFc,1066
7
+ lbranch-0.1.2.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- lbranch/__init__.py,sha256=_er8xHaxsjo0D5us09aEXjFOv5g4wCqbbZ74Cn5Sc48,163
2
- lbranch/main.py,sha256=qlCuVBK8QYMaSuGsLXyHM-LRcE5gpWlbuEldKQQ8jH0,8998
3
- lbranch-0.1.0.dist-info/METADATA,sha256=7_f_p6kqPdRRmkWX4rNd-kOjz7N-jqRhesIa-QmeBXw,2590
4
- lbranch-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- lbranch-0.1.0.dist-info/entry_points.txt,sha256=Qt0Vg0xVAPAdyS9CTdTlrFJKuknrpuei08izhQb6bfY,46
6
- lbranch-0.1.0.dist-info/licenses/LICENSE,sha256=oCT5BBwIA4HS-px42XMGO-QxY9dENLbh3_-GMpm1DFc,1066
7
- lbranch-0.1.0.dist-info/RECORD,,