Skip to content

Commit

Permalink
Add pip to pkgenvs with python
Browse files Browse the repository at this point in the history
Refs #631
  • Loading branch information
mxcl committed Jul 11, 2023
1 parent 06e816c commit 72e73ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useVirtualEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default async function(cwd: Path): Promise<VirtualEnv> {
insert(await usePackageYAMLFrontMatter(f!))
}
if (_if("requirements.txt", "pipfile", "pipfile.lock", "setup.py")) {
pkgs.push({project: "python.org", constraint})
pkgs.push({project: "pip.pypa.io", constraint})
insert(await usePackageYAMLFrontMatter(f!))
}
if (_if("pyproject.toml")) {
Expand All @@ -231,7 +231,7 @@ export default async function(cwd: Path): Promise<VirtualEnv> {
pkgs.push({project: "python-poetry.org", constraint})
} else {
//TODO other pkging systems…?
pkgs.push({project: "python.org", constraint})
pkgs.push({project: "pip.pypa.io", constraint})
}
insert(await usePackageYAMLFrontMatter(f!))
}
Expand Down

0 comments on commit 72e73ec

Please sign in to comment.