Skip to content
Snippets Groups Projects
Commit 81b5f5a3 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Fun with python, bytes and utf8.

parent e973f196
Branches spahan-merge
Tags v1.8-rc1
No related merge requests found
Pipeline #
...@@ -29,7 +29,7 @@ from distutils.core import Command ...@@ -29,7 +29,7 @@ from distutils.core import Command
BASE_DIR = os.path.dirname(globals().get('__file__', os.getcwd())) BASE_DIR = os.path.dirname(globals().get('__file__', os.getcwd()))
VERSION = subprocess.check_output( VERSION = subprocess.check_output(
['git', 'describe', '--dirty=*', '--always']).strip() ['git', 'describe', '--dirty=*', '--always']).strip().decode('utf8')
open('_version.py', 'w').write('__version__ = "%s"\n' % VERSION) open('_version.py', 'w').write('__version__ = "%s"\n' % VERSION)
class TestCmd(Command): class TestCmd(Command):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment