From fc2365d3d7ff1aec0b095662505a9132019fe506 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 16 Jan 2019 16:07:50 +0100 Subject: [PATCH] Add PEP-0396 compatible __version__ to the module and bump to 0.5 --- inema/__init__.py | 1 + inema/inema.py | 2 ++ setup.py | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/inema/__init__.py b/inema/__init__.py index c59da1b..3716529 100644 --- a/inema/__init__.py +++ b/inema/__init__.py @@ -1 +1,2 @@ from .inema import Internetmarke +from .inema import __version__ diff --git a/inema/inema.py b/inema/inema.py index eef91bc..74d62df 100644 --- a/inema/inema.py +++ b/inema/inema.py @@ -11,6 +11,8 @@ import requests, zipfile import io import logging +__version__ = "0.5" + _logger = logging.getLogger(__name__) products_json = resource_stream(__name__, "data/products.json").read().decode() diff --git a/setup.py b/setup.py index 7855217..4c2dc15 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import find_packages, setup +from inema import __version__ install_requires = [ 'zeep >= 0.12.0', @@ -7,7 +8,7 @@ install_requires = [ setup( name='inema', - version='0.4', + version=__version__, description='A Python interface to the Deutsche Post Internetmarke Online Franking', long_description=open('README.rst').read(), author='Harald Welte',