Skip to content

Commit

Permalink
0.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
spderosso committed Feb 6, 2018
1 parent dd38996 commit 8cd6ec1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions gitless/cli/gl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
INTERNAL_ERROR = 3
NOT_IN_GL_REPO = 4

VERSION = '0.8.5'
__version__ = '0.8.6'
URL = 'http://gitless.com'


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

Expand Down Expand Up @@ -117,5 +117,5 @@ def main():
pprint.err_exp(
'If you want to help, see {0} for info on how to report bugs and '
'include the following information:\n\n{1}\n\n{2}'.format(
URL, VERSION, traceback.format_exc()))
URL, __version__, traceback.format_exc()))
return INTERNAL_ERROR
3 changes: 0 additions & 3 deletions gl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ import os

a = Analysis(['gl.py'],
pathex=[os.getcwd()],
hiddenimports=['pygit2_cffi_51591433xe8494016'],
hookspath=None,
runtime_hooks=None)

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

pyz = PYZ(a.pure)
exe = EXE(pyz,
Expand Down
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
# -*- coding: utf-8 -*-


import ast
import re
import sys

from setuptools import setup


VERSION = '0.8.5'
_version_re = re.compile(r'__version__\s+=\s+(.*)')


with open('gitless/cli/gl.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))


# Build helper
Expand All @@ -18,7 +25,7 @@
import platform

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

print('running pyinstaller...')
pyinstaller(
Expand Down Expand Up @@ -52,7 +59,7 @@

setup(
name='gitless',
version=VERSION,
version=version,
description='A version control system built on top of Git',
long_description=ld,
author='Santiago Perez De Rosso',
Expand Down

0 comments on commit 8cd6ec1

Please sign in to comment.