pythonpyproject.toml

How to add a case-sensitive Python package as depencency


I need to add the package "modAL" (uppercase AL) as a dependency to a package. Since packages names are (seemingly) case insensitive in pyproject.toml, it falls back to "modal" which is another package.

How can I add modAL and not modal as a dependency?

I can install modAL separately (it works), but I want to add it as a regular dependency and I have no clue how to do it.


Solution

  • The comment by juanpa.arrivillega solves my problem:

    [...] python package names are case insensitive, and on pypi, the "modAL" package seems to be distributed as "modAL-python"
    – Commented 2025-03-14 at 16:56:12Z

    I just replaced "modAL" by "modAL-python" and it works as expected.