Browse Source

Shifted version to shibby and print on startup

Wayne Werner 2 years ago
parent
commit
7f04504cb8
2 changed files with 8 additions and 2 deletions
  1. 4
    1
      setup.py
  2. 4
    1
      shibboleth.py

+ 4
- 1
setup.py View File

@@ -1,9 +1,12 @@
1 1
 from setuptools import setup, find_packages
2 2
 
3
+with open('shibboleth.py') as f:
4
+    code = compile(f.read(), 'shibboleth.py', 'exec')
5
+    exec(code)
3 6
 
4 7
 setup(
5 8
     name='shibboleth',
6
-    version='0.1.9',
9
+    version=__version__,
7 10
     author='Wayne Werner',
8 11
     author_email='waynejwerner@gmail.com',
9 12
     url='https://github.com/waynew/shibboleth',

+ 4
- 1
shibboleth.py View File

@@ -5,12 +5,14 @@ import os
5 5
 import re
6 6
 import readline
7 7
 import sys
8
+import pkg_resources
8 9
 
9 10
 from datetime import datetime
10 11
 from textwrap import dedent
11 12
 
12 13
 logger = logging.getLogger(__name__)
13 14
 
15
+__version__ = '0.1.10'
14 16
 
15 17
 DEFAULT_COLORS = {
16 18
     '1-now': 31, #red
@@ -92,7 +94,8 @@ class Shibboleth(cmd.Cmd):
92 94
         )
93 95
         self.editor = os.environ.get('EDITOR', 'vim')
94 96
         self.intro = dedent(f'''
95
-        Welcome to Shibboleth, the tool designed to be *your* secret weapon.
97
+        Welcome to Shibboleth {__version__}, the tool designed to be *your*
98
+        secret weapon.
96 99
 
97 100
         Your editor is currently {self.editor}. If you don't like that, you
98 101
         should change or set your EDITOR environment variable.

Loading…
Cancel
Save