add version string

This commit is contained in:
Dun Liang 2020-07-15 14:34:25 +08:00
parent 752fb05e50
commit 802cf56162
2 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,7 @@
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.1.5.6'
from . import lock
with lock.lock_scope():
from . import compiler

View File

@ -19,9 +19,17 @@ path = os.path.dirname(__file__)
with open(os.path.join(path, "README.md"), "r", encoding='utf8') as fh:
long_description = fh.read()
with open(os.path.join(path, "python/jittor/__init__.py"), "r", encoding='utf8') as fh:
for line in fh:
if line.startswith('__version__'):
version = line.split("'")[1]
break
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name='jittor',
version='1.1.5.6',
version=version,
# scripts=[],
author="Jittor Group",
author_email="ran.donglang@gmail.com",