Skip to content

Commit 413de3b

Browse files
committed
Add documentation on installing pre-release with YAML config
NOTE: Currently MatchSpec isn't present in conda's docs, as far as I could find. In lieu of that ideal, I generated a permalink to the docstring for the MatchSpec class from the latest commit.
1 parent dc670a2 commit 413de3b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/maintainer/knowledge_base.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,9 @@ in ``recipe/conda_build_config.yaml`` in their respective feedstocks.
15791579
Installing a pre-release build
15801580
------------------------------
15811581
1582+
Using the `conda` CLI
1583+
^^^^^^^^^^^^^^^^^^^^^
1584+
15821585
Use the following command, but replace ``PACKAGE_NAME`` with the package you want
15831586
to install and replace ``LABEL`` with ``rc`` or ``dev``:
15841587
@@ -1592,6 +1595,18 @@ For example, let's install matplotlib from the ``rc`` label:
15921595
15931596
conda install -c conda-forge/label/matplotlib_rc -c conda-forge matplotlib
15941597
1598+
Using `environment.yml`
1599+
^^^^^^^^^^^^^^^^^^^^^^^
1600+
1601+
Use `MatchSpec
1602+
<https://github.com/conda/conda/blob/c3fb8150ed4c3dabb7ca376ade208095f98ee0b9/conda/models/match_spec.py#L70-L150>`__
1603+
to specify your package:
1604+
1605+
.. code-block:: yaml
1606+
1607+
dependencies:
1608+
- conda-forge/label/matplotlib_rc::matplotlib=3.7.0rc1
1609+
15951610
Pre-release version sorting
15961611
---------------------------
15971612

0 commit comments

Comments
 (0)