From 189f298b659765849937b79b7ee155b4f6a1f72f Mon Sep 17 00:00:00 2001 From: Rajmund Hruska <rajmund.hruska@cesnet.cz> Date: Mon, 2 May 2022 12:14:56 +0000 Subject: [PATCH] Set the version number in the __init__.py --- pydgets/__init__.py | 1 + setup.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pydgets/__init__.py b/pydgets/__init__.py index e69de29..824978d 100644 --- a/pydgets/__init__.py +++ b/pydgets/__init__.py @@ -0,0 +1 @@ +__version__ = "0.9" diff --git a/setup.py b/setup.py index dddf393..efdbfc0 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,14 @@ from setuptools import setup, find_packages from codecs import open from os import path +import sys +# +# Import local version of pynspect library, so that we can insert correct version +# number into documentation. +# +sys.path.insert(0, path.abspath('.')) +import pydgets + here = path.abspath(path.dirname(__file__)) # Get the long description from the README file @@ -23,7 +31,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: setup( name = 'pydgets', - version = '0.9', + version = pydgets.__version__, description = 'Console widget library for Python 3', long_description = long_description, classifiers = [ -- GitLab