-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Allow {posargs} in setenv #1697
Allow {posargs} in setenv #1697
Conversation
Escape {packages} and {opts} so they are literals allowed only in `install_command`.
08ee204
to
ad3d69f
Compare
ad3d69f
to
d3ef0b4
Compare
The changes re |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# special case: opts and packages. Leave {opts} and | ||
# {packages} intact, they are replaced manually in | ||
# _venv.VirtualEnv.run_install_command. | ||
if sub_value in ("opts", "packages"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removal caused #1777
continue | ||
elif word.startswith("{posargs:") and word.endswith("}"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case wasn't handled correctly in the new code, if :
was in the middle of this text range, resulting in regression #1785
Closes #1695
Contribution checklist:
(also see CONTRIBUTING.rst for details)
in message body
<issue number>.<type>.rst
for example (588.bugfix.rst)<type>
is must be one ofbugfix
,feature
,deprecation
,breaking
,doc
,misc
<your username>
"superuser
."CONTRIBUTORS
(preserving alphabetical order)