Closed AlbertDeFusco closed 1 year ago
Added support for the currently activated env if a) the project has no defined environment and b) --external-environment
is not supplied
Added support for the currently activated env if a) the project has no defined environment and b) --external-environment
is not supplied
Updates:
--project-archive <local-or-remote-archive
supports local files or fsspec-compatible urls to automatically download and extract projects
--directory
combined with --project-archive
will control the output project directory upon extraction, without the --directory
parameter the project directly will be
--archive-storage-options <key>=<value>,<key>,<value>...
is a comma separated list of fsspec storage_options parameters--project-archive
works for check, install, lock, activate, and run
--directory
) and the command is executed against the extracted project directoryfor example
conda install defusco/label/dev::conda-project=0.2.0.dev2 aiohttp requests
conda-project run --project-archive https://anaconda.org/defusco/project/windturbines/download jupyter notebook wind-turbines.ipynb
Merging #106 (e2c10b3) into main (a3e84f1) will increase coverage by
1.04%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #106 +/- ##
==========================================
+ Coverage 96.63% 97.67% +1.04%
==========================================
Files 9 9
Lines 742 818 +76
==========================================
+ Hits 717 799 +82
+ Misses 25 19 -6
Impacted Files | Coverage Δ | |
---|---|---|
src/conda_project/cli/commands.py | 100.00% <100.00%> (ø) |
|
src/conda_project/cli/main.py | 100.00% <100.00%> (ø) |
|
src/conda_project/conda.py | 82.10% <100.00%> (+7.94%) |
:arrow_up: |
src/conda_project/project.py | 100.00% <100.00%> (ø) |
|
src/conda_project/utils.py | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Two experimental features are added here
External environment
You can run commands using conda environments not managed by the project itself.
conda project run --external-environment=<env> [command] [args ...]
Where
<env>
can be a relative or absolute path to a conda environment, or the name of a global environment stored in one ofenvs_dirs
directories.If there is a collision between a local environment directory and named environment, the local environment directory is preferred.
If no local environment directory found it will check through the conda config "envs_dirs" in order and return the first matching named environment.
~In this PR a defined environment is not required.~
Download and extract a project archive
Two new flags are added
--project-archive
and--archive-storage-options
These flags are enabled for
TODO: