Copy the LICENSE file into each wheel. As long as the file is in the src root when building the sdist/wheel, setuptools automatically includes the LICENSE file in the dist-info.
(**kwargs)
| 28 | |
| 29 | |
| 30 | def st2_license(**kwargs): |
| 31 | """Copy the LICENSE file into each wheel. |
| 32 | |
| 33 | As long as the file is in the src root when building the sdist/wheel, |
| 34 | setuptools automatically includes the LICENSE file in the dist-info. |
| 35 | """ |
| 36 | if "dest" not in kwargs: |
| 37 | raise ValueError("'dest' path is required for st2_license macro") |
| 38 | relocated_files( # noqa: F821 |
| 39 | name="license", |
| 40 | files_targets=["//:license"], |
| 41 | src="", |
| 42 | **kwargs, |
| 43 | ) |
| 44 | |
| 45 | |
| 46 | def st2_runner_python_distribution(**kwargs): |
no outgoing calls
no test coverage detected