Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter_core version constraint is invalid #262

Closed
colinjc opened this issue Nov 29, 2022 · 3 comments · Fixed by #263
Closed

jupyter_core version constraint is invalid #262

colinjc opened this issue Nov 29, 2022 · 3 comments · Fixed by #263

Comments

@colinjc
Copy link

colinjc commented Nov 29, 2022

When v0.7.1 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

This is because 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

@colinjc colinjc changed the title jupytercore version constraint is invalid jupyter_core version constraint is invalid Nov 29, 2022
@davidbrochart
Copy link
Member

Thanks for reporting, I opened #263.

@davidbrochart
Copy link
Member

I can make issues in each if you want?

That would be great, or even PRs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants