MCPcopy
hub / github.com/bndr/pipreqs / dynamic_versioning

Function dynamic_versioning

pipreqs/pipreqs.py:422–431  ·  view source on GitHub ↗

Enables dynamic versioning with , or schemes.

(scheme, imports)

Source from the content-addressed store, hash-verified

420
421
422def dynamic_versioning(scheme, imports):
423 """Enables dynamic versioning with <compat>, <gt> or <non-pin> schemes."""
424 if scheme == "no-pin":
425 imports = [{"name": item["name"], "version": ""} for item in imports]
426 symbol = ""
427 elif scheme == "gt":
428 symbol = ">="
429 elif scheme == "compat":
430 symbol = "~="
431 return imports, symbol
432
433
434def init(args):

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected