def has_metadata(python_module):
    """`<module_name>/__init__.py` with `__version__` and `__url__`"""
    init_path = '{}/__init__.py'.format(python_module)
    has_metadata = (
        exists(init_path)
        and attributes.has_attribute(python_module, '__version__')
        and attributes.has_attribute(python_module, '__url__')
    )
    return report_and_raise(
        'Has module metadata',
        has_metadata,
        'Your %s/__init__.py must contain __version__ and __url__ attributes',
    )
def has_metadata ( python_module ) : init_path = '{}/__init__.py' . format ( python_module ) has_metadata = ( exists ( init_path ) and attributes . has_attribute ( python_module , '__version__' ) and attributes . has_attribute ( python_module , '__url__' ) ) return report_and_raise ( 'Has module metadata' , has_metadata , 'Your %s/__init__.py must contain __version__ and __url__ attributes' , )
`<module_name>/__init__.py` with `__version__` and `__url__`