mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-14 00:39:06 +08:00
patch + fix docs build (#2799)
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
build_documentation:
|
build_documentation:
|
||||||
if: github.repository == 'ml-explore/mlx'
|
if: github.repository == 'ml-explore/mlx'
|
||||||
runs-on: [self-hosted, macos]
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: ./.github/actions/build-docs
|
- uses: ./.github/actions/build-docs
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -24,8 +24,8 @@ def get_version():
|
|||||||
if "#define MLX_VERSION_PATCH" in l:
|
if "#define MLX_VERSION_PATCH" in l:
|
||||||
patch = l.split()[-1]
|
patch = l.split()[-1]
|
||||||
version = f"{major}.{minor}.{patch}"
|
version = f"{major}.{minor}.{patch}"
|
||||||
pypi_release = os.environ.get("PYPI_RELEASE", False)
|
pypi_release = int(os.environ.get("PYPI_RELEASE", 0))
|
||||||
dev_release = os.environ.get("DEV_RELEASE", False)
|
dev_release = int(os.environ.get("DEV_RELEASE", 0))
|
||||||
if not pypi_release or dev_release:
|
if not pypi_release or dev_release:
|
||||||
today = datetime.date.today()
|
today = datetime.date.today()
|
||||||
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"
|
version = f"{version}.dev{today.year}{today.month:02d}{today.day:02d}"
|
||||||
|
|||||||
Reference in New Issue
Block a user