Skip to content

Commit d31684c

Browse files
committed
Read version from file.
1 parent 77363e4 commit d31684c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

InvoiceGenerator/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
VERSION = (0, 2, 7)
2+
3+
__version__ = VERSION
4+
__versionstr__ = '.'.join(map(str, VERSION))

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
import os
44
from setuptools import setup, find_packages
5+
import InvoiceGenerator
56

67
def read(fname):
78
return open(os.path.join(os.path.dirname(__file__), fname)).read()
89

910
setup(
1011
name = "InvoiceGenerator",
11-
version = "0.2.6",
12+
version = InvoiceGenerator.__versionstr__,
1213
author = "Adam Strauch",
1314
author_email = "cx@initd.cz",
1415
description = ("Library to generate PDF invoice."),

0 commit comments

Comments
 (0)