the-littlest-jupyterhub
the-littlest-jupyterhub copied to clipboard
bootstrap script accepts a version
- [ ] Add / update documentation
- [x] Add tests
The first part of https://github.com/jupyterhub/the-littlest-jupyterhub/issues/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.patchcat bootstrap.py | python3 - --version major.minorlatest major.minor releasecat bootstrap.py | python3 - --version majorlatest major releasecat bootstrap.py | python3 - --version latestlatest released tagcat bootstrap.py | python3 -install frommainbranch (current default, though this should be changed tolatestwhen there's a release tag)
Obviously this can't be properly tested since there are no tags :smiley:. 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.