Have version defined in only one place (fixes #86).
This commit is contained in:
parent
a2af1ce4a5
commit
0d7b44a3f5
@ -1 +1 @@
|
|||||||
__version__ = '0.7.0'
|
from .version import __version__
|
||||||
|
1
pubs/version.py
Normal file
1
pubs/version.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__version__ = '0.7.0'
|
5
setup.py
5
setup.py
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
VERSION = '0.7.0'
|
with open('pubs/version.py') as f:
|
||||||
|
exec(f.read()) # defines __version__
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pubs',
|
name='pubs',
|
||||||
version=VERSION,
|
version=__version__,
|
||||||
author='Fabien Benureau, Olivier Mangin, Jonathan Grizou',
|
author='Fabien Benureau, Olivier Mangin, Jonathan Grizou',
|
||||||
author_email='fabien.benureau@gmail.com',
|
author_email='fabien.benureau@gmail.com',
|
||||||
maintainer='Olivier Mangin',
|
maintainer='Olivier Mangin',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user