-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2040 from hugovk/deprecate-bdist_wininst
Deprecate bdist_wininst
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Deprecated the ``bdist_wininst`` command. Binary packages should be built as wheels instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""develop tests | ||
""" | ||
import mock | ||
|
||
import pytest | ||
|
||
from setuptools.dist import Distribution | ||
from setuptools import SetuptoolsDeprecationWarning | ||
|
||
|
||
@mock.patch("distutils.command.bdist_wininst.bdist_wininst") | ||
def test_bdist_wininst_warning(distutils_cmd): | ||
dist = Distribution(dict( | ||
script_name='setup.py', | ||
script_args=['bdist_wininst'], | ||
name='foo', | ||
py_modules=['hi'], | ||
)) | ||
dist.parse_command_line() | ||
with pytest.warns(SetuptoolsDeprecationWarning): | ||
dist.run_commands() | ||
|
||
distutils_cmd.run.assert_called_once() |