From 91c7518dd8a18572dbb8cc471784c24ac1c0e351 Mon Sep 17 00:00:00 2001 From: rasbt Date: Tue, 15 Aug 2023 19:14:09 -0500 Subject: [PATCH 1/2] add version attribute as per Python convention --- bitsandbytes/__init__.py | 2 ++ setup.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bitsandbytes/__init__.py b/bitsandbytes/__init__.py index f35a3b582..3608de1ec 100644 --- a/bitsandbytes/__init__.py +++ b/bitsandbytes/__init__.py @@ -24,4 +24,6 @@ "optim.optimizer.MockArgs": False, } +__version__ = "0.41.1" + PACKAGE_GITHUB_URL = "https://github.com/TimDettmers/bitsandbytes" diff --git a/setup.py b/setup.py index d6267088e..405c161a7 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,9 @@ import os from setuptools import find_packages, setup +import bitsandbytes as bnb + +VERSION = bnb.__version__ libs = list(glob.glob("./bitsandbytes/libbitsandbytes*.so")) libs = [os.path.basename(p) for p in libs] @@ -18,7 +21,7 @@ def read(fname): setup( name=f"bitsandbytes", - version=f"0.41.1", + version=VERSION, author="Tim Dettmers", author_email="dettmers@cs.washington.edu", description="k-bit optimizers and matrix multiplication routines.", From b5800d35775eed3696326b5307b257fd5066873e Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Mon, 11 Dec 2023 16:39:33 -0600 Subject: [PATCH 2/2] Update __init__.py --- bitsandbytes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitsandbytes/__init__.py b/bitsandbytes/__init__.py index 3608de1ec..d77116849 100644 --- a/bitsandbytes/__init__.py +++ b/bitsandbytes/__init__.py @@ -24,6 +24,6 @@ "optim.optimizer.MockArgs": False, } -__version__ = "0.41.1" +__version__ = "0.41.3.post1" PACKAGE_GITHUB_URL = "https://github.com/TimDettmers/bitsandbytes"