-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Environment variable usage schema {env:XXX} is not working #99
Comments
Original comment by @hpk42 add changelog: fix issue99: the {env:...} substitution now properly uses environment → <> |
1 similar comment
Original comment by @hpk42 thanks, looks good apart from one bit where i commented. Looking forward to merge :) |
Original comment by @Itxaka @hpk42 There is already a PR for this https://bitbucket.org/hpk42/tox/pull-requests/169/tries-to-fix-99/diff |
Original comment by @hpk42 @mkumatag FYI tox doesn't have a lot of regular contributors, i am afraid. myself, I only get to look at things from time to time and prioritize things according to my own needs and customers. @Itxaka yes, your analysis is correct i think. Haven't looked if there maybe is a quick way to fix it and have setenv be honored during configuration reading time already. Happy if you find something and can do a PR -- the functional test you basically already have. |
Original comment by mkumatag Even I'm looking for this.! I'm surprise to see this defect with no activity for more than 2 years :( |
Original comment by @Itxaka This is still open and not working on current tox:
Also happens if used anywhere else as far as my tests go. Its been reported since 2 years ago and there has been no advance on it, do you need any help on it? Been looking at the code myself but found it quite difficult to wrap my head around it on how to fix it properly. Im guessing that Will try to see if there is a good solution to fix this :) |
Original comment by @hpk42 Seems indeed that setenv is not respected in commands. |
Original comment by @coagulant Could you please reopen? since the "Environment variables that are setup via "setenv= ..." can not be referenced in "commands= ..." part." still holds true. |
Original comment by @jenisys @Krisztian I assume you just inspected the "tox.ini" (or tried it out with current tip). Otherwise, thx for the fix. |
Original comment by @e3krisztian Thanks! My previous fix introduced a bug, that causes multiple substitutions on same line to fail (non-greedy -> greedy re). (BTW your NOTE: the discussion so far was about a regression, not about the main issue regarding substitutions of the format |
Original comment by @jenisys The problem is already with shell:xxx [525]. tox --version
1.5.dev7 imported from /.../tox/tox/__init__.pyc
shell:xxx [526]. tox --showconfig
Traceback (most recent call last):
File "/usr/local/bin/tox", line 9, in <module>
load_entry_point('tox==1.5.dev7', 'console_scripts', 'tox')()
File "/.../tox/tox/_cmdline.py", line 24, in main
config = parseconfig(args, 'tox')
File "/.../tox/tox/_config.py", line 42, in parseconfig
parseini(config, inipath)
File "/.../tox/tox/_config.py", line 202, in __init__
for line in reader.getlist(toxsection, "indexserver"):
File "/.../tox/tox/_config.py", line 371, in getlist
s = self.getdefault(section, name, None)
File "/.../tox/tox/_config.py", line 463, in getdefault
x = self._replace(x)
File "/.../tox/tox/_config.py", line 570, in _replace
return rexpattern.sub(replace_func, x)
File "/.../tox/tox/_config.py", line 561, in _replace_match_no_quote
return self._replace_match(match, quote=False)
File "/.../tox/tox/_config.py", line 552, in _replace_match
raise tox.exception.ConfigError("No support for the %s substitution type" % sub_type)
tox.ConfigError: ConfigError: No support for the homedir}/.pip/downloads/simple
local1 = file substitution type NOTES: For a real-world example, see: |
Original comment by @e3krisztian Re ADDITIONAL NOTE Could you describe how the Could you give a minimal, but complete tox.ini exposing the problem and whatever setup needed - e.g. what exactly is in What are the outputs of |
Version info: tox-1.4.3, tox-1.5.dev7 (current head/tip)
The documentation describes that environment variables can be used/referenced as shown above. But there seems to be a number of issues.
PROBLEMS:
ADDITIONAL NOTE:
Current repository tip has a problem with {homedir} placeholder when
indexserver= local=file://{homedir}/.pip_downloads
is used. This is working in box-1.4.3, but no longer working in tox-1.5.dev7.The text was updated successfully, but these errors were encountered: