lbranch 0.1.1__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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbranch
3
- Version: 0.1.1
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
5
  Project-URL: Homepage, https://github.com/dcchuck/lbranch
6
6
  Project-URL: Source Code, https://github.com/dcchuck/lbranch
@@ -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=JCiPT3tWaf7B2uo_4y3KTQCZeNjuSEt03y_A6vfqbGQ,9009
3
- lbranch-0.1.1.dist-info/METADATA,sha256=djpL6kGe9RE1ip0_I6enGqbpcjr3Rr6SGca00K97f0M,3134
4
- lbranch-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- lbranch-0.1.1.dist-info/entry_points.txt,sha256=Qt0Vg0xVAPAdyS9CTdTlrFJKuknrpuei08izhQb6bfY,46
6
- lbranch-0.1.1.dist-info/licenses/LICENSE,sha256=oCT5BBwIA4HS-px42XMGO-QxY9dENLbh3_-GMpm1DFc,1066
7
- lbranch-0.1.1.dist-info/RECORD,,