cylc-flow
cylc-flow copied to clipboard
Require tomli **only** if python < 3.11
Describe exactly what you would like to see in an upcoming release
In the files which describe dependencies to pip and conda (conda-environment.yaml, setup.cfg) have syntax which allow us to specify that dependencies are only installed for some Python versions. Tomli will be included in the standard library for Python 3.11.
Once Python 3.11 is available and included in the Cylc Testing matrix, add the following to the dependency specifications:
# setup.cfg
- tomli>=2.*
+ tomli>=2.*; python_version<"3.11"
# conda-environment.yml
- - tomli >=2.0.0
+ - tomli >=2.0.0 # [py<3.11]
Pull requests welcome!