8000 gh-80789: Implement build-time pip bundling in ``ensurepip`` by webknjaz · Pull Request #12791 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-80789: Implement build-time pip bundling in ensurepip #12791

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

Closed
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Resolve file path @ test_get_packages_with_dir
  • Loading branch information
webknjaz committed Aug 28, 2023
commit abe73391af010958e2e8099ddaba9cac5283f7d2
12 changes: 9 additions & 3 deletions Lib/test/test_ensurepip.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ def test_get_packages_with_dir(self):
):
packages = ensurepip._wheelhouses.discover_ondisk_packages()

self.assertEqual(packages['pip'].project_version, '20.2.2')
pip_package = packages['pip']
assert isinstance( # type checker hint
pip_package,
ensurepip._structs.ReplacementDistributionPackage,
)

self.assertEqual(pip_package.project_version, '20.2.2')
self.assertEqual(
packages['pip'].wheel_path,
tmp_path / pip_filename,
pip_package.wheel_path.resolve(),
(tmp_path / pip_filename).resolve(),
)

# wheel package is ignored
Expand Down
0