Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-132415: Bump the setuptools in test.wheeldata#132382

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
stefanor wants to merge2 commits intopython:mainfromstefanor:bump-setuptools
Closed
Show file tree
Hide file tree
Changes from1 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
NextNext commit
Bump the setuptools in test.wheeldata
setuptools > 70.1 includes bdist_wheel, so we no longer need to bundlewheel.
  • Loading branch information
@stefanor
stefanor committedApr 11, 2025
commitf9430ddf1a288b62ed2b9c4303125621eac3a834
7 changes: 3 additions & 4 deletionsLib/test/support/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2425,10 +2425,10 @@ def _findwheel(pkgname):
raise FileNotFoundError(f"No wheel for {pkgname} found in {wheel_dir}")


# Context manager that creates a virtual environment, install setuptoolsand wheelin it
# Context manager that creates a virtual environment, install setuptools in it
# and returns the path to the venv directory and the path to the python executable
@contextlib.contextmanager
defsetup_venv_with_pip_setuptools_wheel(venv_dir):
defsetup_venv_with_pip_setuptools(venv_dir):
import shlex
import subprocess
from .os_helper import temp_cwd
Expand DownExpand Up@@ -2460,8 +2460,7 @@ def run_command(cmd):

cmd = [python, '-X', 'dev',
'-m', 'pip', 'install',
_findwheel('setuptools'),
_findwheel('wheel')]
_findwheel('setuptools')]
run_command(cmd)

yield python
Expand Down
2 changes: 1 addition & 1 deletionLib/test/test_cext/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,7 +53,7 @@ def test_build_limited_c11(self):

defcheck_build(self,extension_name,std=None,limited=False):
venv_dir='env'
withsupport.setup_venv_with_pip_setuptools_wheel(venv_dir)aspython_exe:
withsupport.setup_venv_with_pip_setuptools(venv_dir)aspython_exe:
self._check_build(extension_name,python_exe,
std=std,limited=limited)

Expand Down
2 changes: 1 addition & 1 deletionLib/test/test_cppext/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,7 @@ def test_build_limited(self):

def check_build(self, extension_name, std=None, limited=False):
venv_dir = 'env'
with support.setup_venv_with_pip_setuptools_wheel(venv_dir) as python_exe:
with support.setup_venv_with_pip_setuptools(venv_dir) as python_exe:
self._check_build(extension_name, python_exe,
std=std, limited=limited)

Expand Down
2 changes: 1 addition & 1 deletionLib/test/test_peg_generator/test_c_parser.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,7 +99,7 @@ def setUpClass(cls):
cls.addClassCleanup(shutil.rmtree, cls.library_dir)

with contextlib.ExitStack() as stack:
python_exe = stack.enter_context(support.setup_venv_with_pip_setuptools_wheel("venv"))
python_exe = stack.enter_context(support.setup_venv_with_pip_setuptools("venv"))
sitepackages = subprocess.check_output(
[python_exe, "-c", "import sysconfig; print(sysconfig.get_path('platlib'))"],
text=True,
Expand Down
View file
Open in desktop
Binary file not shown.
View file
Open in desktop
Binary file not shown.
Binary file removedLib/test/wheeldata/wheel-0.43.0-py3-none-any.whl
View file
Open in desktop
Binary file not shown.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp