Skip to content

Commit

Permalink
docs: fix broken doc (conda#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wackyator authored Oct 10, 2023
1 parent d07a2c2 commit fede216
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py-rattler/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def main():
channel = Channel("conda-forge")

# list of dependencies to install in the env
match_spec = [
match_specs = [
MatchSpec("python ~=3.12.*"),
MatchSpec("pip"),
MatchSpec("requests 2.31.0")
Expand All @@ -95,6 +95,8 @@ async def main():
# list of platforms to get the repo data
platforms = [Platform.current(), Platform("noarch")]

virtual_packages = [p.into_generic() for p in VirtualPackage.current()]

cache_path = "/tmp/py-rattler-cache/"
env_path = "/tmp/env-path/env"

Expand All @@ -108,8 +110,9 @@ async def main():
print("finished fetching repo_data")

solved_dependencies = solve(
specs = [match_spec],
specs = match_specs,
available_packages = repo_data,
virtual_packages = virtual_packages,
)
print("solved required dependencies")

Expand Down

0 comments on commit fede216

Please sign in to comment.