This adds the scapy/VERSION file when creating a sdist and a wheel
(path)
| 54 | |
| 55 | |
| 56 | def _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 | |
| 65 | class SDist(sdist): |
no test coverage detected