How to use the flit.validate function in flit

To help you get started, we’ve selected a few flit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github takluyver / flit / tests / test_validate.py View on Github external
def check(spec):
        return fv.validate_requires_dist({'requires_dist': [spec]})
github takluyver / flit / tests / test_validate.py View on Github external
def check(spec):
        return fv.validate_requires_python({'requires_python': spec})
github takluyver / flit / tests / test_validate.py View on Github external
def test_validate_entrypoints():
    assert fv.validate_entrypoints(
        {'console_scripts': {'flit': 'flit:main'}}) == []
    assert fv.validate_entrypoints(
        {'some.group': {'flit': 'flit.buildapi'}}) == []

    res = fv.validate_entrypoints({'some.group': {'flit': 'a:b:c'}})
    assert len(res) == 1