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 -*-
|
||||
"""Setup script"""
|
||||
|
||||
import configparser
|
||||
import setuptools
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read('setup.cfg')
|
||||
|
||||
setuptools.setup(
|
||||
scripts=['__project_codename__/__project_codename__.py'],
|
||||
author="__author__",
|
||||
version='__version__',
|
||||
name='__project_codename__',
|
||||
version=config['metadata']['version'],
|
||||
name=config['metadata']['name'],
|
||||
author_email="__author_email__",
|
||||
url="__url__",
|
||||
description="__description__",
|
||||
|
|
Loading…
Reference in a new issue