-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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>
docs/source/conf.py
Outdated
html_extra_path = [] | ||
|
||
with open("additional/releases.yaml") as f: | ||
table = yaml.safe_load(f) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
docs/source/conf.py
Outdated
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
No description provided.