version bump (#490)

* version bump

* Fix the dev version string

---------

Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>
This commit is contained in:
Awni Hannun 2024-01-18 12:00:24 -08:00 committed by GitHub
parent 3d99a8d31d
commit f6e911ced0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -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 -------------------------

View File

@ -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 ---------------------------------------------------

View File

@ -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.",