You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc="""Tag class used to register Python toolchains.
354
353
Use this tag class to register one or more Python toolchains. This class
@@ -413,7 +412,11 @@ can result in spurious build failures.
413
412
)
414
413
415
414
_override=tag_class(
416
-
doc="""Tag class used to override defaults and behaviour of the module extension.""",
415
+
doc="""Tag class used to override defaults and behaviour of the module extension.
416
+
417
+
:::{versionadded} 0.36.0
418
+
:::
419
+
""",
417
420
attrs= {
418
421
"available_python_versions": attr.string_list(
419
422
mandatory=False,
@@ -426,13 +429,27 @@ _override = tag_class(
426
429
),
427
430
428
431
# Internal attributes that are only usable from `rules_python`
429
-
"register_all_versions": attr.bool(default=False, doc="rules_pythoninternal use only"),
432
+
"register_all_versions": attr.bool(default=False, doc="`rules_python` **internal** use only!"),
430
433
},
431
434
)
432
435
433
436
_single_version_override=tag_class(
434
-
doc="""Override single python version settings.""",
437
+
doc="""Override single python version settings.
438
+
439
+
:::{versionadded} 0.36.0
440
+
:::
441
+
""",
435
442
attrs= {
443
+
"patch_strip": attr.int(
444
+
mandatory=False,
445
+
doc="Same as the --strip argument of Unix patch.",
446
+
# TODO @aignas 2024-08-26: switch to 0 when 0.36.0 is released
447
+
default=1,
448
+
),
449
+
"patches": attr.string_list_dict(
450
+
mandatory=False,
451
+
doc="A list of labels pointing to patch files to apply for this module as values with keys as values from the PLATFORMS dict. The patch files must exist in the source tree of the top level project. They are applied in the list order. If patches have a single key '*', then the patches will be applied to all available interpreters for that version.",
452
+
),
436
453
"sha256s": attr.string_dict(
437
454
mandatory=False,
438
455
doc="The python platform to sha256 dict. The platform key must be present in the PLATFORMS dict.",
0 commit comments