Commit 81b5f5a3 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Fun with python, bytes and utf8.

parent e973f196
Pipeline #1054 passed with stage
in 4 minutes and 15 seconds
...@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment