Skip to content

Conda install gmt dev version directly in one step instead of two #1279

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

Merged
merged 1 commit into from
May 20, 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
4 changes: 2 additions & 2 deletions .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
# Install GMT and other required dependencies from conda-forge
- name: Install dependencies
run: |
conda install -c conda-forge/label/dev gmt=6.2.0rc1
conda install numpy pandas xarray netCDF4 packaging \
conda install conda-forge/label/dev::gmt=6.2.0rc1 \
numpy pandas xarray netCDF4 packaging \
ipython make myst-parser \
sphinx sphinx-copybutton sphinx-gallery sphinx_rtd_theme

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
# Install GMT and other required dependencies from conda-forge
- name: Install dependencies
run: |
conda install -c conda-forge/label/dev gmt=6.2.0rc1
conda install numpy=${{ matrix.numpy-version }} \
conda install conda-forge/label/dev::gmt=6.2.0rc1 \
Copy link
Member Author

@weiji14 weiji14 May 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't seem to find any mention of the double colon :: way of specifying channels for a single package at https://docs.conda.io/projects/conda/en/latest/commands/install.html, but I know it works and the "Install dependencies" step passes at https://github.com/GenericMappingTools/pygmt/runs/2627248691?check_suite_focus=true#step:5:1, so ... it should be ok?

Edit: Nevermind, found it in the conda v4.4.0 changelog at https://github.com/conda/conda/blob/4.10.1/CHANGELOG.md#new-feature-highlights-2 (see enhanced package query language). The format they use is (channel::)name(version(build_string))

numpy=${{ matrix.numpy-version }} \
pandas xarray netCDF4 packaging \
${{ matrix.optional-packages }} \
codecov coverage[toml] dvc ipython make \
Expand Down