jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
383 stars 283 forks source link

jupyter_core version constraint is invalid #897

Open ophie200 opened 1 year ago

ophie200 commented 1 year ago

When jupyter_client v7.4.8 is installed into a Conda environment and we try to export it to a lockfile using mamba env export it crashes with the error

>> mamba env export > /lockfile/conda-lockfile.yml
InvalidVersionSpec: Invalid version '!=~5.0': invalid operator

pyproject.toml has a dependency listed as jupyter_core>=4.12,!=~5.0, which is an invalid version specifier.

Valid version specifiers: https://peps.python.org/pep-0440/#version-specifiers