Skip to content

Commit 8cd6ec1

Browse files
committed
0.8.6
1 parent dd38996 commit 8cd6ec1

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

gitless/cli/gl.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
INTERNAL_ERROR = 3
3535
NOT_IN_GL_REPO = 4
3636

37-
VERSION = '0.8.5'
37+
__version__ = '0.8.6'
3838
URL = 'http://gitless.com'
3939

4040

@@ -76,7 +76,7 @@ def main():
7676
parser.add_argument(
7777
'--version', action='version', version=(
7878
'GL Version: {0}\nYou can check if there\'s a new version of Gitless '
79-
'available at {1}'.format(VERSION, URL)))
79+
'available at {1}'.format(__version__, URL)))
8080
subparsers = parser.add_subparsers(title='subcommands', dest='subcmd_name')
8181
subparsers.required = True
8282

@@ -117,5 +117,5 @@ def main():
117117
pprint.err_exp(
118118
'If you want to help, see {0} for info on how to report bugs and '
119119
'include the following information:\n\n{1}\n\n{2}'.format(
120-
URL, VERSION, traceback.format_exc()))
120+
URL, __version__, traceback.format_exc()))
121121
return INTERNAL_ERROR

gl.spec

-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ import os
33

44
a = Analysis(['gl.py'],
55
pathex=[os.getcwd()],
6-
hiddenimports=['pygit2_cffi_51591433xe8494016'],
76
hookspath=None,
87
runtime_hooks=None)
98

10-
# this is a file pygit2 requires
11-
a.datas += [('decl.h', '../pygit2/pygit2/decl.h', 'DATA')]
129

1310
pyz = PYZ(a.pure)
1411
exe = EXE(pyz,

setup.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
# -*- coding: utf-8 -*-
33

44

5+
import ast
6+
import re
57
import sys
68

79
from setuptools import setup
810

911

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)))
1118

1219

1320
# Build helper
@@ -18,7 +25,7 @@
1825
import platform
1926

2027
rel = 'gl-v{0}-{1}-{2}'.format(
21-
VERSION, platform.system().lower(), platform.machine())
28+
version, platform.system().lower(), platform.machine())
2229

2330
print('running pyinstaller...')
2431
pyinstaller(
@@ -52,7 +59,7 @@
5259

5360
setup(
5461
name='gitless',
55-
version=VERSION,
62+
version=version,
5663
description='A version control system built on top of Git',
5764
long_description=ld,
5865
author='Santiago Perez De Rosso',

0 commit comments

Comments
 (0)