Python setuptools.SetuptoolsDeprecationWarning() Examples

The following are 2 code examples of setuptools.SetuptoolsDeprecationWarning(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module setuptools , or try the search function .
Example #1
Source File: test_bdist_egg.py    From setuptools with MIT License 5 votes vote down vote up
def test_eggsecutable_warning(self, setup_context, user_override):
        dist = Distribution(dict(
            script_name='setup.py',
            script_args=['bdist_egg'],
            name='foo',
            py_modules=['hi'],
            entry_points={
                'setuptools.installation':
                    ['eggsecutable = my_package.some_module:main_func']},
        ))
        dist.parse_command_line()
        with pytest.warns(SetuptoolsDeprecationWarning):
            dist.run_commands() 
Example #2
Source File: test_bdist_deprecations.py    From setuptools with MIT License 5 votes vote down vote up
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()