cylc-flow icon indicating copy to clipboard operation
cylc-flow copied to clipboard

Require tomli **only** if python < 3.11

Open wxtim opened this issue 3 years ago • 0 comments

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!

wxtim avatar Aug 19 '22 09:08 wxtim