Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add theBuildMetadata class#299

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
AA-Turner wants to merge1 commit intomain
base:main
Choose a base branch
Loading
frombuild-meta
Open

Add theBuildMetadata class#299

AA-Turner wants to merge1 commit intomainfrombuild-meta

Conversation

AA-Turner
Copy link
Member

In the inner loop, we operate on version-language pairs. These are currently only joined in the type system via tuples, or not at all. By introducing theBuildMetadata class, we make the link explicit.

My intent is to (later) add further attributes toBuildMetadata (e.g. the directory paths), makingBuildMetadata a data-only class that performs no actions, withDocBuilder performing the actual build. For example,DocBuilder.html_only could be fully merged intoBuildMetadata.

A

Copy link
Member

@hugovkhugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Just some variable naming nits.

Comment on lines +306 to +307
_ver: Version
_lang: Language
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's use full names:

Suggested change
_ver:Version
_lang:Language
_version:Version
_language:Language

Comment on lines +1182 to +1184
BuildMetadata(_ver=ver, _lang=lang)
forver in versions.filter(args.branches)
forlang in reversed(languages.filter(args.languages))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
BuildMetadata(_ver=ver,_lang=lang)
forverinversions.filter(args.branches)
forlanginreversed(languages.filter(args.languages))
BuildMetadata(_version=version,_language=language)
forversioninversions.filter(args.branches)
forlanguageinreversed(languages.filter(args.languages))

@@ -1141,28 +1198,25 @@ def build_docs(args: argparse.Namespace) -> int:
args.build_root / _checkout_name(args.select_output),
)
while todo:
version, language = todo.pop()
b = todo.pop()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
b=todo.pop()
build_metadata=todo.pop()

or

Suggested change
b=todo.pop()
build=todo.pop()

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk left review comments

@JulienPalardJulienPalardAwaiting requested review from JulienPalard

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@AA-Turner@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp