Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Oct 28, 2024
1 parent 47e9629 commit aa054cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/source/usage/solver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ The first way to add a repository is from a list of |PackageInfo| using
import libmambapy
channel_alias = libmambapy.specs.CondaURL.parse("https://conda.anaconda.org")
db = libmambapy.solver.libsolv.Database(
libmambapy.specs.ChannelResolveParams(channel_alias="https://conda.anaconda.org")
libmambapy.specs.ChannelResolveParams(channel_alias=channel_alias)
)
repo1 = db.add_repo_from_packages(
Expand Down
6 changes: 4 additions & 2 deletions docs/source/usage/specs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ All parameters that influence this resolution must be provided explicitly.
.. code:: python
import libmambapy.specs as specs
import libmambapy.specs.CondaURL as CondaURL
uc = specs.UnresolvedChannel.parse("conda-forge[prius-avx42]")
chan, *_ = specs.Channel.resolve(
uc,
channel_alias="https://repo.mamba.pm"
channel_alias=CondaURL.parse("https://repo.mamba.pm")
# ...
)
Expand All @@ -168,11 +169,12 @@ There are no hard-coded names:
.. code:: python
import libmambapy.specs as specs
import libmambapy.specs.CondaURL as CondaURL
uc = specs.UnresolvedChannel.parse("defaults")
chan, *_ = specs.Channel.resolve(
uc,
channel_alias="https://repo.mamba.pm"
channel_alias=CondaURL.parse("https://repo.mamba.pm")
# ...
)
Expand Down

0 comments on commit aa054cb

Please sign in to comment.