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

fix: component version in binder #301

Merged
merged 8 commits into from
Apr 19, 2023
Merged

fix: component version in binder #301

merged 8 commits into from
Apr 19, 2023

Conversation

ThibaultFy
Copy link
Member

No description provided.

Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
@ThibaultFy ThibaultFy marked this pull request as ready for review April 17, 2023 15:36
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
html_extra_path = []

with open("additional/releases.yaml") as f:
table = yaml.safe_load(f)
Copy link
Contributor

@oleobal oleobal Apr 18, 2023

Choose a reason for hiding this comment

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

Since it's not just used in this context anymore, I realize table isn't a very good name; maybe releases or release_info or something like that would be better.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok good idea :)

Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
@ThibaultFy ThibaultFy requested review from a team, oleobal, Milouu, guilhem-barthes and SdgJlbl and removed request for a team, oleobal, Milouu, guilhem-barthes and SdgJlbl April 18, 2023 11:58
SUBSTRA_VERSION = "0.43.0"
TOOLS_VERSION = "0.20.0"
SUBSTRAFL_VERSION = "0.35.1"
if os.environ.get("READTHEDOCS_VERSION_TYPE") == "tag" or current_commit in tags_commit:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can rely on the release table there too: if repo.commit(compat_table["releases"][0]["version"]) == repo.head.commit. But it's fine as-is IMO, it could break if we use tags for stuff other than releases but we don't.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep that was my concern... One way would be to check the name of the tags to match the semver format. But with the release candidate and all it's not that obvious...

Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
@ThibaultFy ThibaultFy merged commit cfddda5 into main Apr 19, 2023
@ThibaultFy ThibaultFy deleted the fix/binder branch April 19, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants