Have version defined in only one place (fixes #86).

This commit is contained in:
Olivier Mangin 2018-03-30 18:46:53 -04:00
parent a2af1ce4a5
commit 0d7b44a3f5
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884
3 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
__version__ = '0.7.0'
from .version import __version__

1
pubs/version.py Normal file
View File

@ -0,0 +1 @@
__version__ = '0.7.0'

View File

@ -2,11 +2,12 @@
from setuptools import setup
VERSION = '0.7.0'
with open('pubs/version.py') as f:
exec(f.read()) # defines __version__
setup(
name='pubs',
version=VERSION,
version=__version__,
author='Fabien Benureau, Olivier Mangin, Jonathan Grizou',
author_email='fabien.benureau@gmail.com',
maintainer='Olivier Mangin',