File tree 3 files changed +13
-9
lines changed
3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 34
34
INTERNAL_ERROR = 3
35
35
NOT_IN_GL_REPO = 4
36
36
37
- VERSION = '0.8.5 '
37
+ __version__ = '0.8.6 '
38
38
URL = 'http://gitless.com'
39
39
40
40
@@ -76,7 +76,7 @@ def main():
76
76
parser .add_argument (
77
77
'--version' , action = 'version' , version = (
78
78
'GL Version: {0}\n You can check if there\' s a new version of Gitless '
79
- 'available at {1}' .format (VERSION , URL )))
79
+ 'available at {1}' .format (__version__ , URL )))
80
80
subparsers = parser .add_subparsers (title = 'subcommands' , dest = 'subcmd_name' )
81
81
subparsers .required = True
82
82
@@ -117,5 +117,5 @@ def main():
117
117
pprint .err_exp (
118
118
'If you want to help, see {0} for info on how to report bugs and '
119
119
'include the following information:\n \n {1}\n \n {2}' .format (
120
- URL , VERSION , traceback .format_exc ()))
120
+ URL , __version__ , traceback .format_exc ()))
121
121
return INTERNAL_ERROR
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ import os
3
3
4
4
a = Analysis (['gl.py' ],
5
5
pathex = [os .getcwd ()],
6
- hiddenimports = ['pygit2_cffi_51591433xe8494016' ],
7
6
hookspath = None ,
8
7
runtime_hooks = None )
9
8
10
- # this is a file pygit2 requires
11
- a .datas += [('decl.h' , '../pygit2/pygit2/decl.h' , 'DATA' )]
12
9
13
10
pyz = PYZ (a .pure )
14
11
exe = EXE (pyz ,
Original file line number Diff line number Diff line change 2
2
# -*- coding: utf-8 -*-
3
3
4
4
5
+ import ast
6
+ import re
5
7
import sys
6
8
7
9
from setuptools import setup
8
10
9
11
10
- VERSION = '0.8.5'
12
+ _version_re = re .compile (r'__version__\s+=\s+(.*)' )
13
+
14
+
15
+ with open ('gitless/cli/gl.py' , 'rb' ) as f :
16
+ version = str (ast .literal_eval (_version_re .search (
17
+ f .read ().decode ('utf-8' )).group (1 )))
11
18
12
19
13
20
# Build helper
18
25
import platform
19
26
20
27
rel = 'gl-v{0}-{1}-{2}' .format (
21
- VERSION , platform .system ().lower (), platform .machine ())
28
+ version , platform .system ().lower (), platform .machine ())
22
29
23
30
print ('running pyinstaller...' )
24
31
pyinstaller (
52
59
53
60
setup (
54
61
name = 'gitless' ,
55
- version = VERSION ,
62
+ version = version ,
56
63
description = 'A version control system built on top of Git' ,
57
64
long_description = ld ,
58
65
author = 'Santiago Perez De Rosso' ,
You can’t perform that action at this time.
0 commit comments