forked from qnguyen3/chat-with-mlx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qnguyen3#4 from qnguyen3/onuralpszr-feature/pyproj…
…ect/pypi Onuralpszr feature/pyproject/pypi
- Loading branch information
Showing
13 changed files
with
154 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
# GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: ⬆️ | ||
# Python | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: ⬆️ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Releases to PyPi | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '[0-9]+.[0-9]+[0-9]+.[0-9]' | ||
- '[0-9]+.[0-9]+[0-9]+.[0-9]' | ||
- '[0-9]+.[0-9]+[0-9]+.[0-9]' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: 🛎️ Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: 🐍 Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: 🏗️ Build source and wheel distributions | ||
run: | | ||
python -m pip install --upgrade build twine wheel setuptools | ||
python -m build | ||
twine check --strict dist/* | ||
- name: 🚀 Publish to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: ${{ secrets.PYPI_USERNAME }} | ||
password: ${{ secrets.PYPI_PASSWORD }} | ||
- name: 🚀 Publish to Test-PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
user: ${{ secrets.PYPI_TEST_USERNAME }} | ||
password: ${{ secrets.PYPI_TEST_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include chat_with_mlx *.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import importlib.metadata as importlib_metadata | ||
|
||
try: | ||
# This will read version from pyproject.toml | ||
__version__ = importlib_metadata.version(__package__ or __name__) | ||
except importlib_metadata.PackageNotFoundError: | ||
__version__ = "development" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "chat_with_mlx" | ||
version = "0.1.1" | ||
description = "A Retrieval-augmented Generation (RAG) chat interface with support for multiple open-source models, designed to run natively on MacOS and Apple Silicon with MLX." | ||
readme = "README.md" | ||
keywords = ["mlx","chat","chatbot","chat_with_mlx","chat_with_mlx"] | ||
authors = [ | ||
{ name = "Quan Nguyen", email = "[email protected]" }, | ||
] | ||
|
||
license = {text = "MIT License"} | ||
|
||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
] | ||
requires-python = ">= 3.8" | ||
|
||
dependencies = [ | ||
"mlx-lm==0.0.12", | ||
"gradio==4.19.1", | ||
"tiktoken==0.6.0", | ||
"openai==1.12.0", | ||
"langchain==0.1.9", | ||
"langchain-community==0.0.24", | ||
"langchain-core==0.1.26", | ||
"sentence-transformers==2.4.0", | ||
"einops==0.7.0", | ||
"chromadb==0.4.23", | ||
"pypdf==4.0.2", | ||
"youtube-transcript-api==0.6.2", | ||
"sentencepiece==0.2.0", | ||
"docx2txt==0.8" | ||
] | ||
|
||
[tool.setuptools] | ||
package-dir = {"chat_with_mlx" = "chat_with_mlx"} | ||
include-package-data = true | ||
license-files = ["LICENSE"] | ||
zip-safe = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["chat_with_mlx*"] | ||
exclude = ["docs*", "tests*","third_party*","assets*", "chat_with_mlx/models/*"] | ||
|
||
[project.scripts] | ||
chat-with-mlx = "chat_with_mlx.app:main" |
This file was deleted.
Oops, something went wrong.