Skip to content

Commit

Permalink
Single source version number. See also #40
Browse files Browse the repository at this point in the history
  • Loading branch information
drufat committed Apr 24, 2020
1 parent 4b2edf1 commit 15b5fee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from setuptools import setup, Extension

version = '20190115.3'
version = {}
with open('triangle/version.py') as f:
exec(f.read(), version)

define_macros = [
('VOID', 'void'),
Expand All @@ -22,7 +24,7 @@

setup(
name='triangle',
version=version,
version=version['__version__'],
description='Python binding to the triangle library',
author='Dzhelil Rufat',
author_email='[email protected]',
Expand Down
5 changes: 3 additions & 2 deletions triangle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
__version__ = '20190115.3'

from triangle.version import (
__version__,
)
from triangle.data import (
loads, load, get_data, show_data,
)
Expand Down
1 change: 1 addition & 0 deletions triangle/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '20190115.3'

0 comments on commit 15b5fee

Please sign in to comment.