Skip to content

eiphy/conda-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conda-export

Refine of conda env export --from-history. Now you can export environment with version using --from-history option. You can choose which package should not appear in the environment.yaml file by CLI and a .yaml file.

Sample Output

Output of conda env export --from-history with version number.

name: torch
channels:
- pytorch
- defaults
dependencies:
- isort=5.9.3
- python=3.10.6
- pytorch=1.13.0
- torchaudio=0.13.0
- torchvision=0.14.0

Usage

python -m ecoport -f tmp.yaml                   # Save env to ./tmp.yaml
python -m ecoport                               # Save env to ./environment.yaml
python -m ecoport --exclusions isort            # Excludes isort
python -m ecoport --config test/config.yaml     # Using config option (current only option for exclusion). --exclusion has higher priority.
python -m ecoport --no-prefix                   # eliminate the prefix entry

Sample config file (test/config.yaml):

exclusions:
- black
- isort

About

Refine of conda env export --from-history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages