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

how to specific version in extras of pipfile? #144

Open
ChenhuaWANG22 opened this issue Nov 17, 2022 · 0 comments
Open

how to specific version in extras of pipfile? #144

ChenhuaWANG22 opened this issue Nov 17, 2022 · 0 comments

Comments

@ChenhuaWANG22
Copy link

how to specific version in extras of pipfile?

from:

celery = {extras = ["redis"],version = "*"}

to:

celery = {extras = ["redis = '==3.5.3'"],version = "==4.4.7"}

get error:
File "/home/chenhua/.local/share/virtualenvs/healthServer-jnmSNbeH/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing/core.py", line 1141, in parse_string
raise exc.with_traceback(None)
pkg_resources._vendor.pyparsing.exceptions.ParseException: Expected string_end, found '[' (at char 6), (line:1, col:7)

or to:

celery = {extras = ["redis ==3.5.3"],version = "==4.4.7"}

get error:
File "/home/chenhua/.local/share/virtualenvs/healthServer-jnmSNbeH/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 105, in init
f'Parse error at "{ requirement_string[e.loc : e.loc + 8]!r}": {e.msg}'
pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "'[redis=='": Expected string_end

details:

I have an old project and recently I try to continue develop.
However I get some dependency issues. try to pin the version to specific version according to pipfile.lock.
While everything goes well, except the one in "extras".

Anyone knows how to do it?

Currently I write like below. However, I don't know whether it will cause potential bug or something weird or not.
celery = "==4.4.7"
redis = "==3.5.3"

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

No branches or pull requests

1 participant