Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename @ECLASS-VARIABLE to @ECLASS_VARIABLE #336

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/pkgcore/ebuild/eclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,29 @@ def _supported_eapis(self, block, tag, lineno):


class EclassVarBlock(ParseEclassDoc):
"""ECLASS_VARIABLE doc block."""

tag = '@ECLASS_VARIABLE:'
key = 'variables'
default = True

def __init__(self):
tags = {
'@ECLASS_VARIABLE:': ('name', True, self._tag_inline_arg, None),
'@DEPRECATED:': ('deprecated', False, self._tag_deprecated, False),
'@DEFAULT_UNSET': ('default_unset', False, self._tag_bool, False),
'@INTERNAL': ('internal', False, self._tag_bool, False),
'@REQUIRED': ('required', False, self._tag_bool, False),
'@PRE_INHERIT': ('pre_inherit', False, self._tag_bool, False),
'@USER_VARIABLE': ('user_variable', False, self._tag_bool, False),
'@OUTPUT_VARIABLE': ('output_variable', False, self._tag_bool, False),
'@DESCRIPTION:': ('description', True, self._tag_multiline_str, None),
}
super().__init__(tags)


# For backwards compatibility, can be removed after 2022-12-31
class EclassVarBlockCompat(ParseEclassDoc):
mgorny marked this conversation as resolved.
Show resolved Hide resolved
"""ECLASS-VARIABLE doc block."""

tag = '@ECLASS-VARIABLE:'
Expand Down