Skip to content

Commit

Permalink
Fix SetuptoolsDeprecationWarning about using --global-option (#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Sep 8, 2022
1 parent fd58e73 commit 628964d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2478.bugfix.rst
@@ -0,0 +1 @@
Fixed ``SetuptoolsDeprecationWarning`` about using ``--global-option`` -- by :user:`adamchainz`
2 changes: 1 addition & 1 deletion src/tox/helper/build_isolated.py
Expand Up @@ -38,5 +38,5 @@ def _ensure_module_in_paths(module, paths):
if backend_obj:
backend = getattr(backend, backend_obj)

basename = backend.build_sdist(dist_folder, {"--global-option": ["--formats=gztar"]})
basename = backend.build_sdist(dist_folder, {"--build-option": ["--formats=gztar"]})
print(basename)
Expand Up @@ -25,6 +25,7 @@ def test_verbose_isolated_build(initproj, mock_venv, cmd):
},
)
result = cmd("--sdistonly", "-v", "-v", "-v", "-e", "py")
assert "The arguments ['--formats=gztar'] were given via `--global-option`." not in result.err
assert "running sdist" in result.out, result.out
assert "running egg_info" in result.out, result.out
assert "example123-0.5.tar.gz" in result.out, result.out
Expand Down

0 comments on commit 628964d

Please sign in to comment.