8000 include "~" as a contraining factor and hides internals leak by stonebig · Pull Request #1647 · winpython/winpython · GitHub
[go: up one dir, main page]

Skip to content

include "~" as a contraining factor and hides internals leak #1647

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
Jun 21, 2025
Merged
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 winpython/piptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _get_dependency_tree(self, package_name: str, extra: str = "", version_req:
Marker(dependency["req_marker"]).evaluate(environment=environment | {"extra": up_req})):
# IA risk error: # dask[array] go upwards as dask[dataframe], so {"extra": up_req} , not {"extra": extra}
#tag downward limiting dependancies
wall = " " if dependency["req_version"].startswith("<") or dependency["req_version"].startswith("==") else "&qu 6F6A ot;
wall = " " if dependency["req_version"][:1] in("<", "~") or dependency["req_version"].startswith("==") else ""
ret += self._get_dependency_tree(
dependency["req_key"],
up_req,
Expand Down Expand Up @@ -249,7 +249,7 @@ def up(self, ppw: str, extra: str = "", depth: int = 20, indent: int = 5, versio
pp = ppw[:-1] if ppw.endswith('!') else ppw
ppend = "!" if ppw.endswith('!') else "" #show only downward limiting dependancies
if pp == ".":
results = [self.up(p + ppend, extra, depth, indent, version_req, verbose) for p in sorted(self.distro)]
results = [aa:=self.up(p + ppend, extra, depth, indent, version_req, verbose) if '[requires :' in aa else None for p in sorted(self.distro)]
return '\n'.join(filter(None, results))

if extra == ".":
Expand Down
0