Skip to content
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

Installing conda packages via mamba #83

Merged
merged 2 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
echo "$CONDA"/bin >> "$GITHUB_PATH"
- name: Install dependencies
run: |
conda config --add channels conda-forge
conda env update --file environment.yml --name base
if [ -f mamba_requirements.txt ]; then mamba install --file mamba_requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Checkout submodules
run: git submodule update --init --recursive
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- Add Changelog.md (#79)
- Fix command-line string size issue (#80)
- Add non-recursive file search when path to multiple files is provided (-pnr option) (#81)
- Use mamba to install required conda packages (#83)
### Changed:
- Add cfunits to environment.yml to fix tests (#52)
- Large revision of README.md (#51)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ We set up a binder where you can try out the functionalities of the ATMODAT Stan
cd atmodat_data_checker
```

4. Create conda environment and install the needed anaconda packages:
4. Create conda environment and install the needed anaconda packages (via mamba):
```bash
conda env create -f environment.yml
conda activate atmodat
mamba install --file mamba_requirements.txt
```

5. Install (and upgrade) atmodat-checker
Expand Down
9 changes: 1 addition & 8 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@ channels:
- conda-forge
- defaults
dependencies:
- pip
- python>=3.6
- pandas
- compliance-checker
- cfunits
- udunits2
- git
# tests
- pytest
- mamba
7 changes: 7 additions & 0 deletions mamba_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pip
pandas
compliance-checker
cfunits
udunits2
git
pytest