sktime: [BUG] Version 0.28.0 `conda` release, all extras dep set `sktime-all-extras`, does not install on windows due to broken `pycatch22` specification identifier

Describe the bug Seems like version 0.28.0 causes issues for conda

$ conda env update --file environment.yml 
Collecting package metadata (repodata.json): | WARNING conda.core.index:push_record(234): Skipping conda-forge/win-64::sktime-0.28.0-py310h5588dad_0 due to InvalidSpec: >=0.4,<0.4.4,
WARNING conda.core.index:push_record(234): Skipping conda-forge/win-64::sktime-0.28.0-py311h1ea47a8_0 due to InvalidSpec: >=0.4,<0.4.4,
WARNING conda.core.index:push_record(234): Skipping conda-forge/win-64::sktime-0.28.0-py38haa244fe_0 due to InvalidSpec: >=0.4,<0.4.4,
WARNING conda.core.index:push_record(234): Skipping conda-forge/win-64::sktime-0.28.0-py39hcbf5309_0 due to InvalidSpec: >=0.4,<0.4.4,
done
Solving environment: failed

InvalidVersionSpec: Invalid version '>=0.4,<0.4.4,': cannot join single expression

I’ve also opened an issue to conda about it because it seems like it’s a conda issue: https://github.com/conda/conda-build/issues/5302

To Reproduce

  1. Create a file called environment.yml with this content:
name: CondaInvalidSpecDebug
channels:
  - anaconda
  - conda-forge
  - pytorch

dependencies:
  - sktime=0.28.0
  1. Run the following command:
conda env create --file environment.yml

** Extra context ** Seems like this line causes the issue:

  "pycatch22>=0.4,<0.4.4",

https://github.com/sktime/sktime/blob/31dd08f10a942f9034a71c0bcf3bffc4e158cb57/pyproject.toml#L213C3-L213C27

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Feel free to add any usernames you’d like (as long as they are added by this acct)

Ref. https://github.com/conda/conda-build/issues/5302

Yes, I saw that - but that is a valid (potential) explanation.

I do not think your proposed mechanism is an explanation, unless you postulate that imported packages are installed at runtime (which I’d doubt).