Skip to content

Mflux/dependencies#233

Merged
cubist38 merged 2 commits intomainfrom
mflux/dependencies
Mar 8, 2026
Merged

Mflux/dependencies#233
cubist38 merged 2 commits intomainfrom
mflux/dependencies

Conversation

@cubist38
Copy link
Owner

@cubist38 cubist38 commented Mar 8, 2026

fix: make mflux optional so PyPI uploads succeed

PyPI rejects packages that declare direct URL dependencies (e.g. mflux @ git+https://...) in published metadata. This change:

  • Dependencies: Remove mflux from project.dependencies so the sdist/wheel can be uploaded to PyPI.
  • Runtime: Treat mflux as optional: CLI and server validate image support before starting; if image-generation or image-edit is used without mflux installed, they raise a clear error with an install hint.
  • Docs: Update README install section to a two-step flow: uv pip install mlx-openai-server then optional uv pip install git+https://github.com/cubist38/mflux.git, and note why mlx-openai-server[image] is not offered yet.
  • Cleanup: Drop the unused image dependency group from pyproject.toml.

Image generation/editing still works when mflux is installed separately; the core package no longer depends on it so builds and PyPI uploads succeed.

cubist38 added 2 commits March 8, 2026 17:06
- Removed direct mflux dependency from core dependencies and added it as an optional installation in the README.
- Implemented checks in CLI and server code to ensure mflux is available when image generation or editing features are requested.
- Updated error handling to provide installation hints for mflux when it's not available.
…ctions

- Removed the direct mflux dependency from pyproject.toml.
- Updated README to clarify that `mlx-openai-server[image]` is not available yet and provided alternative installation commands for mflux and the server from GitHub.
- Changed pip commands to include 'uv' for better clarity in usage.
@cubist38 cubist38 merged commit f551524 into main Mar 8, 2026
@cubist38 cubist38 deleted the mflux/dependencies branch March 8, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant