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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap script accepts a version #819

Merged
merged 4 commits into from Sep 9, 2022
Merged

Conversation

manics
Copy link
Member

@manics manics commented Jun 16, 2022

  • Add / update documentation
  • Add tests

The first part of #724

This should allow:

  • cat bootstrap.py | python3 - --version <branchname-or-dev-tag>
  • cat bootstrap.py | python3 - --version <commit-sha>
  • cat bootstrap.py | python3 - --version major.minor.patch
  • cat bootstrap.py | python3 - --version major.minor latest major.minor release
  • cat bootstrap.py | python3 - --version major latest major release
  • cat bootstrap.py | python3 - --version latest latest released tag
  • cat bootstrap.py | python3 - install from main branch (current default, though this should be changed to latest when there's a release tag)

Obviously this can't be properly tested since there are no tags 馃槂. However I've added some mock tests in test_bootstrap_functions.py. Since https://tljh.jupyter.org/en/latest/ is a live site we can't add documentation on using --version RELEASE until we've made a tag.

@manics manics changed the title WIP: bootstrap script accepts a version bootstrap script accepts a version Jun 17, 2022
@manics manics marked this pull request as ready for review June 17, 2022 16:44
@GeorgianaElena GeorgianaElena added enhancement New feature or request priority Issue selected to have a bit higher priority labels Jun 20, 2022
Copy link
Member

@GeorgianaElena GeorgianaElena left a comment

Choose a reason for hiding this comment

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

This is just great! I really appreciate the tests. Thanks a lot @manics!
Some docs about this would be amazing, but not a blocker for this PR in my opinion.

tests/test_bootstrap_functions.py Outdated Show resolved Hide resolved
@consideRatio consideRatio merged commit 77817f1 into jupyterhub:main Sep 9, 2022
@consideRatio
Copy link
Member

Ooooh beautiful!

I was thinking that a line of code was wrong, then saw amazing tests that demonstrated that the code worked, and then realized what I got wrong thinking a line of code was wrong! This looks great to me and is a clear improvement without drawback I think.

@manics manics deleted the version-env branch September 10, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority Issue selected to have a bit higher priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants