From f6e911ced01cb1f1d7f0843620412f002d525e37 Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Thu, 18 Jan 2024 12:00:24 -0800 Subject: [PATCH] version bump (#490) * version bump * Fix the dev version string --------- Co-authored-by: Angelos Katharopoulos --- CMakeLists.txt | 2 +- docs/src/conf.py | 6 ++++-- setup.py | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eaca32b55..fc3d4b524 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ option(MLX_BUILD_METAL "Build metal backend" ON) option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF) if(NOT MLX_VERSION) - set(MLX_VERSION 0.0.9) + set(MLX_VERSION 0.0.10) endif() # --------------------- Processor tests ------------------------- diff --git a/docs/src/conf.py b/docs/src/conf.py index 01d752f34..7e86ef532 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -5,13 +5,15 @@ import os import subprocess +import mlx.core as mx + # -- Project information ----------------------------------------------------- project = "MLX" copyright = "2023, MLX Contributors" author = "MLX Contributors" -version = "0.0.9" -release = "0.0.9" +version = ".".join(mx.__version__.split()[:-1]) +release = version # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 3c53165c9..5ff41b57f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools.command.build_ext import build_ext def get_version(version): if "PYPI_RELEASE" not in os.environ: today = datetime.date.today() - version = f"{version}.dev{today.year}{today.month}{today.day}" + version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}" if "DEV_RELEASE" not in os.environ: git_hash = ( @@ -152,7 +152,7 @@ if __name__ == "__main__": setup( name="mlx", - version=get_version("0.0.9"), + version=get_version("0.0.10"), author="MLX Contributors", author_email="mlx@group.apple.com", description="A framework for machine learning on Apple silicon.",