Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def check(spec):
return fv.validate_requires_dist({'requires_dist': [spec]})
def check(spec):
return fv.validate_requires_python({'requires_python': spec})
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