MCPcopy
hub / github.com/secdev/scapy / _build_version

Function _build_version

setup.py:56–62  ·  view source on GitHub ↗

This adds the scapy/VERSION file when creating a sdist and a wheel

(path)

Source from the content-addressed store, hash-verified

54
55
56def _build_version(path):
57 """
58 This adds the scapy/VERSION file when creating a sdist and a wheel
59 """
60 fn = os.path.join(path, 'scapy', 'VERSION')
61 with open(fn, 'w') as f:
62 f.write(__import__('scapy').VERSION)
63
64
65class SDist(sdist):

Callers 2

make_release_treeMethod · 0.85
build_package_dataMethod · 0.85

Calls 2

joinMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected