You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write a nice but completely useless file named "2.0.0" in the working dir, containing the installation log.
Even worse: reverting the sign ('dask<2.0.0') yields an error:
Command conda install --yes --prefix C:\......\.nox\tests-2-7 --channel=conda-forge dask<2.0.0 failed with exit code 1:
The system cannot find the file specified.
Traceback (most recent call last):
...
File "C:\_dev\python_ws\_Libs_OpenSource\nox\nox\sessions.py", line 293, in conda_install
**kwargs
File "C:\_dev\python_ws\_Libs_OpenSource\nox\nox\sessions.py", line 246, in _run
return nox.command.run(args, env=env, paths=self.bin_paths, **kwargs)
File "C:\_dev\python_ws\_Libs_OpenSource\nox\nox\command.py", line 125, in run
raise CommandFailed("Returned code {}".format(return_code))
nox.command.CommandFailed: Returned code 1
This is of course because the > and < operators are handled by the shell and should be escaped. I'll try to propose some fix.
The text was updated successfully, but these errors were encountered:
smarie
pushed a commit
to smarie/nox
that referenced
this issue
Apr 20, 2020
…d when needed. (#312)
* `conda_install` and `install` args are now automatically double-quoted when they contain a `<` or a `>`. Fixes#311
* Added a test for the double-quoting fix
* Black-ened
* Improving coverage: added some tests and improved error checking in _dblquote_pkg_install_arg
* Blackened
* Fixed mypy error
* Fixed test
* Now double-quoting arguments only for `conda_install`, not `install`. Apparently, `pip` does not need it.
* Fixed mock error in test
* blackened
* Fixed lint error and code review related mod of comments
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
In
Session.conda_install
one reads this example:Now consider that we tweak it very lightly:
Running it, at least on windows, will
Even worse: reverting the sign (
'dask<2.0.0'
) yields an error:This is of course because the
>
and<
operators are handled by the shell and should be escaped. I'll try to propose some fix.The text was updated successfully, but these errors were encountered: