From ac8ea7052fbe10e34fb55894b82b09378339c228 Mon Sep 17 00:00:00 2001 From: Lakshman <61258323+LakshmanKishore@users.noreply.github.com> Date: Sat, 28 Oct 2023 12:45:34 +0000 Subject: [PATCH] Add __version__ support --- hdbscan/__init__.py | 3 ++- hdbscan/version.py | 4 ++++ setup.py | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 hdbscan/version.py diff --git a/hdbscan/__init__.py b/hdbscan/__init__.py index 2f6e10c9..573856fd 100644 --- a/hdbscan/__init__.py +++ b/hdbscan/__init__.py @@ -5,5 +5,6 @@ membership_vector, all_points_membership_vectors, approximate_predict_scores) +from .version import VERSION - +__version__ = VERSION diff --git a/hdbscan/version.py b/hdbscan/version.py new file mode 100644 index 00000000..7adafe34 --- /dev/null +++ b/hdbscan/version.py @@ -0,0 +1,4 @@ +""" This file contains the current version of the hdbscan package.""" + +# This version constant will be used for hdbscan.__version__ and in setup.py file. +VERSION = '0.8.33' diff --git a/setup.py b/setup.py index 15d3859d..27dc151c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import warnings +from hdbscan.version import VERSION try: from Cython.Distutils import build_ext @@ -51,7 +52,7 @@ def requirements(): configuration = { 'name': 'hdbscan', - 'version': '0.8.33', + 'version': VERSION, 'description': 'Clustering based on density with variable density clusters', 'long_description': readme(), 'classifiers': [