Skip to content

v0.7.8

@nshkrdotcom nshkrdotcom tagged this 01 Jan 10:39
Breaking change: Python library configuration now uses the python_deps
project key instead of dependency tuple options. This fixes the
"unknown options: :libraries" error when installing from Hex packages.

The new configuration mirrors how deps/0 works with a parallel
python_deps/0 function in mix.exs:

    def project do
      [app: :my_app, deps: deps(), python_deps: python_deps()]
    end

    defp python_deps do
      [{:numpy, "1.26.0"}, {:pandas, "2.0.0", include: ["DataFrame"]}]
    end

Changes:
- Read libraries from python_deps project key instead of dep options
- Move generated_dir and metadata_dir to Application config
- Support 3-tuple format: {name, version, opts}
- Update all examples to use new configuration style
- Update documentation and migration guide

This ensures compatibility with all installation methods including
Hex, path dependencies, and git dependencies.
Assets 2
Loading