QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
189 stars 101 forks source link

Review Python Requirements #421

Closed AlexCatarino closed 3 months ago

AlexCatarino commented 4 months ago

We build Lean CLI for Python versions 3.7 to 3.10 https://github.com/QuantConnect/lean-cli/blob/master/.github/workflows/build.yml#L12 However, quantconnect-stubs depends on pandas>=1.5.3, and pandas 1.5 doesn't support Python 3.8. https://pandas.pydata.org/pandas-docs/version/1.5/getting_started/install.html

Users with Python 3.7 can't install recent versions of Lean CLI:

ERROR: Cannot install lean because these package versions have conflicting dependencies.

The conflict is caused by:
quantconnect-stubs 16243 depends on pandas>=1.5.3
Martin-Molinero commented 3 months ago

quantconnect-stubs will no longer enforce a pandas or matplotlib version, see https://github.com/QuantConnect/quantconnect-stubs-generator/pull/18