pipm/setup_cfg.py
def remove_requirements(installed_reqs=None):
    # type: (Set[str]) -> ConfigParser
    """
        remove requirements from `setup.cfg` after `pip uninstall`
    Args:
        installed_reqs (set): set of requirements name strings
    """
    installed_reqs = installed_reqs or set(operations.get_frozen_reqs().keys())
    config = _read_config()

    # check all the sections and remove requirements that are not in the
    for name in config.sections():
        if name == "options":
            section, option = get_keys()
            _remove_requirements(config, section, option, installed_reqs)
        elif name == "options.extras_require":
            for key in config.options(name):
                _remove_requirements(config, name, key, installed_reqs)
    _write_to_file(config)

    return config

        remove requirements from `setup.cfg` after `pip uninstall`
    Args:
        installed_reqs (set): set of requirements name strings
    
remove requirements from `setup.cfg` after `pip uninstall`
remove requirements from ` setup . cfg ` after ` pip uninstall `
def remove_requirements(installed_reqs=None):
    installed_reqs = installed_reqs or set(operations.get_frozen_reqs().keys())
    config = _read_config()
    for name in config.sections():
        if name == "options":
            section, option = get_keys()
            _remove_requirements(config, section, option, installed_reqs)
        elif name == "options.extras_require":
            for key in config.options(name):
                _remove_requirements(config, name, key, installed_reqs)
    _write_to_file(config)
    return config
def remove_requirements ( installed_reqs = None ) : installed_reqs = installed_reqs or set ( operations . get_frozen_reqs ( ) . keys ( ) ) config = _read_config ( ) for name in config . sections ( ) : if name == "options" : section , option = get_keys ( ) _remove_requirements ( config , section , option , installed_reqs ) elif name == "options.extras_require" : for key in config . options ( name ) : _remove_requirements ( config , name , key , installed_reqs ) _write_to_file ( config ) return config
remove requirements from `setup.cfg` after `pip uninstall`
remove requirements from ` setup . cfg ` after ` pip uninstall `
# type: (Set[str]) -> ConfigParser """
        remove requirements from `setup.cfg` after `pip uninstall`
    Args:
        installed_reqs (set): set of requirements name strings
    """ # check all the sections and remove requirements that are not in the
installed_reqs
set of requirements name strings
set of requirements name strings