use config parse to read version
This commit is contained in:
parent
f42c53dbd4
commit
2143237c7f
1 changed files with 7 additions and 2 deletions
|
@ -2,12 +2,17 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Setup script"""
|
"""Setup script"""
|
||||||
|
|
||||||
|
import configparser
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
config.read('setup.cfg')
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
scripts=['__project_codename__/__project_codename__.py'],
|
scripts=['__project_codename__/__project_codename__.py'],
|
||||||
author="__author__",
|
author="__author__",
|
||||||
version='__version__',
|
version=config['metadata']['version'],
|
||||||
name='__project_codename__',
|
name=config['metadata']['name'],
|
||||||
author_email="__author_email__",
|
author_email="__author_email__",
|
||||||
url="__url__",
|
url="__url__",
|
||||||
description="__description__",
|
description="__description__",
|
||||||
|
|
Loading…
Reference in a new issue