- Remove yaml load warnings by using
yaml.safe_load
instead ofyaml.load
. - Fix
NoneType object is not iterable
error whenincludes
is empty.
New
is_included
jinja variable which is a boolean indicating if the current file was included by anotherdevenv.yml
file (True
) or it is the original file passed toconda devenv
(False
) (#72).Added shortcuts to common jinja 2 checks, for example
win
which is equal tosys.platform.startswith("win")
(#75).Added support conda-build-style YAML line comments (`` # [win]``) (#79).
New
min_conda_devenv_version
jinja2 function that can be used to specify a minimum conda-devenv version:{{ min_conda_devenv_version("1.1") }} name: my-environment
This is recommended when using new features so users will be shown a descriptive error message instead of subtle failures (#81).
- Do not fail if history file does not exists (#66).
- Obtain
envs_dir
without using a subprocess (#67).
- Find correct env directory through
envs_dir
instead of matching first inenvs
. This makes environment directory location more reliable in newer conda versions.
- Fix problem with channel specification being wrongly exported (#62).
- Truncate the environment's history file to have the old "prune" behavior when needed (#59).
- Add --version flag (#47).
- Provide a better error message when 'environment.devenv.yml' file is not found (#48).
- Support for pip on dependencies section (#55).
- Applies an "AND" when merging dependencies (#53).
- On Mac generates the same scripts as for Linux (no longer
.bat
files).
- Handle
None
correctly, which actually fixes (#49).
- Fixed major bug where activate/deactivate scripts were not being generated (#49).
conda-devenv
no longer requiresconda
to be onPATH
to work (#45).
- Fix conda-forge package.
- Fix activate and deactivate
bash
scripts: variables not in the environment before activation are now properly unset after deactivation. - Fix activate and deactivate
bash
scripts: quote variables when exporting them.
- New option
--print-full
, which also prints the expandedenvironment:
section.
- Fix entry point call to
main
.
conda-devenv
now can receive standardenvironment.yml
files, in which case the file will just be forwarded toconda env update
normally.