Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

111 changes: 0 additions & 111 deletions .github/workflows/mlx-ci.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and publish Python package

on:
push:
tags:
- 'v*' # publish only on tag pushes like v1.2.3

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # necessary for setuptools_scm to see tags

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install build & twine
run: python -m pip install --upgrade pip build twine setuptools_scm

- name: Build sdist and wheel
run: python -m build --sdist --wheel

- name: Check artifacts
run: ls -l dist

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine check dist/*
python -m twine upload dist/* --non-interactive
38 changes: 0 additions & 38 deletions .github/workflows/verify-links.yml

This file was deleted.

41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "mlx" # <--- change to your package name on PyPI
version = "0.1" # setuptools_scm will override when building from git tags
description = "Machine Learning Exchange (MLX) library"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "Apache-2.0" }
authors = [
{ name = "The Machine Learning Exchange Authors", email = "terratorch@ibm.com" }
]
keywords = ["ml", "registry", "package"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"
]

[project.urls]
"Homepage" = "https://github.com/machine-learning-exchange/mlx"
"Source" = "https://github.com/machine-learning-exchange/mlx"

[project.dependencies]
# put runtime deps here, for example:
claimed

[tool.setuptools.packages.find]
where = ["mlx"]
exclude = ["tests*"]

[tool.setuptools]
package-dir = { "" = "mlx" }
# If you use package-data, configure here or use MANIFEST.in if needed

[tool.setuptools_scm]
# use git tags like v1.2.3 to generate versions
version_scheme = "post-release"
local_scheme = "no-local-version"
Empty file added src/mlx/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.