dash-leaflet icon indicating copy to clipboard operation
dash-leaflet copied to clipboard

Request to Relax Python Version Constraint

Open camillelaine opened this issue 7 months ago • 3 comments

Problem

The latest version of dash-leaflet on PyPI specifies: requires-python = ">=3.12"

This constraint is too restrictive and currently prevents usage in many environments where Python 3.11 is the standard (especially in enterprise setups with standardized Python environments and where upgrading to a newer Python version is a costly process).

As a result, users are unable to install the latest version of dash-leaflet and are stuck on older releases (e.g. v1.0.15), which are not compatible with Dash 3.x (e.g. LayersControl causes props undefined errors).

This creates a forced trade-off:

  • Either use Dash 3.0 and lose some functionnalities of dash-leaflet
  • Or downgrade to Dash 2.x and lose access to newer Dash features

Why This Matters

  • Python 3.11 is officially supported until October 2027
  • Dash 3.1 is compatible with Python ≥3.8
  • Dash-leaflet’s latest code seems otherwise compatible with 3.11 (to be verified)

There is no known reason to restrict usage to 3.12+ at the package level unless required by compiled dependencies.

Suggestion

Please update pyproject.toml to: requires-python='>=3.11'

This will immediately allow many developers to benefit from bug fixes (especially Dash 3.x compatibility) without waiting to migrate full environments to Python 3.12.

Thank you !

PS : Thank you for your continued work on this library — it's a critical bridge between Dash and Leaflet, and we'd love to keep using it in modern setups!

camillelaine avatar May 15 '25 12:05 camillelaine

That's a fair point. I'am not aware of any incompabilities either, so I'll lower the requirement to 3.11 for now, but keep the tests (and linting) bindings at 3.12. I have pushed a 1.1.3 release with the requested change, please let me know, if it works as intended.

emilhe avatar May 15 '25 17:05 emilhe

Thank you so much for your quick turnaround – really appreciate it. Everything's working like a charm !

camillelaine avatar May 16 '25 12:05 camillelaine

@emilhe what is preventing you from testing various version of python (at least in the github actions) ?

12rambau avatar Jun 25 '25 12:06 12rambau