diff --git a/platypush/__init__.py b/platypush/__init__.py index f99589a9aa..d6b3c50118 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -16,6 +16,7 @@ from .message.response import Response from .procedure import procedure from .runner import main from .utils import run +from .__version__ import __version__ # Alias for platypush.event.hook.hook, # see https://git.platypush.tech/platypush/platypush/issues/399 @@ -23,7 +24,6 @@ when = hook __author__ = 'Fabio Manganiello ' -__version__ = '1.1.3' __all__ = [ 'Application', 'Variable', @@ -41,6 +41,7 @@ __all__ = [ 'procedure', 'run', 'when', + '__version__', ] diff --git a/platypush/__version__.py b/platypush/__version__.py new file mode 100644 index 0000000000..7bb021e2f3 --- /dev/null +++ b/platypush/__version__.py @@ -0,0 +1 @@ +__version__ = '1.1.3' diff --git a/setup.cfg b/setup.cfg index dc92f3f1cb..ced40534aa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,6 +12,8 @@ data_files = platypush/config/*.yaml [metadata] +name = platypush +version = attr: platypush.__version__.__version__ description_file = README.md [flake8] diff --git a/setup.py b/setup.py index 56bea841a4..1a5cfc7932 100755 --- a/setup.py +++ b/setup.py @@ -66,7 +66,6 @@ backend = pkg_files('platypush/backend') setup( name="platypush", - version="1.1.3", author="Fabio Manganiello", author_email="fabio@manganiello.tech", description="Platypush service",