MCPcopy Index your code
hub / github.com/StackStorm/st2 / st2_license

Function st2_license

pants-plugins/macros.py:30–43  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

28
29
30def 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
46def st2_runner_python_distribution(**kwargs):

Calls

no outgoing calls

Tested by

no test coverage detected