Commit Graph

370 Commits

Author SHA1 Message Date
Min RK
9b940c34fd don't let conda install wait for input 2023-03-27 15:43:46 +02:00
Min RK
b5a6b3f590 Avoid downgrading user-env conda/mamba
- Only check lower bound on conda/mamba, upgrade unbounded if not matched (let conda apply upper bound according to existing pins, such as Python)
- handle missing mamba
- avoid upgrading Python by aborting the install, instead of keeping old envs
- minimum supported Python for user env is 3.9
- Fix output reporting of conda install step (no need for json capture when we don't parse the output - exit codes will do)
2023-03-27 13:20:22 +02:00
Min RK
5980cb3ef2 log commands before they start (at debug level)
so you know what you're waiting for
2023-03-24 11:58:32 +01:00
Min RK
5da2859408 avoid registering duplicate log handlers
init_logging is called many times in test_config,
which has been registering numerous duplicate log handlers,
attached to stderr that's closed between tests
2023-03-24 11:31:44 +01:00
Min RK
4d42f24e48 test ensure_user_environment
verify behavior for:

- current version (no change)
- old, supported version (upgrade, but not too far)
- too old, re-run installer
- directory exists, no conda
2023-03-23 12:34:44 +01:00
Min RK
594b61003f add some logging to conda setup 2023-03-23 12:31:50 +01:00
Min RK
6d0c1cbf63 Remove very old conda versions from installer.py
- 4.7.10 was Python 3.7 (no longer supported)
- 4.5.4 was Python 3.6
2023-03-21 15:59:37 +01:00
Min RK
1a3c48a500 Update base user environment to mambaforge 22.11.1-4
shift some duplicated code into utility functions and constants
2023-03-21 14:37:50 +01:00
Min RK
de1fc86b5e only pin major versions in requirements-base.txt, installer.py 2023-03-21 10:30:59 +01:00
YuviPanda
12316c3256 Upgrade some packages
Should upgrade base python version separately
2023-03-21 09:27:56 +01:00
Pris Nasrat
a7774e55de Ensure SQLAlchemy 1.x used for hub
Fixes #846
2023-01-30 11:17:37 -05:00
Will Dampier
8d1033393c adding tljh_extra_user_conda_channels hook to the hooks and installer 2022-09-02 14:46:55 -04:00
Will Dampier
fc8f70463c Adding the ability to define conda channels 2022-09-02 14:10:43 -04:00
Simon Li
65336e21ee pre-commit run -a 2022-06-17 17:36:42 +01:00
YuviPanda
8540451cd8 Bump systemdspawner version
https://github.com/jupyterhub/systemdspawner/pull/94 just made
a release
2022-04-22 01:30:24 -07:00
Ray Bell
2f33f9893a ENH: add logging if user-requirements-txt-url found 2022-01-24 21:50:51 -05:00
Erik Sundell
e0aaa4f995 pre-commit: run black with string normalization 2021-11-03 23:55:34 +01:00
Erik Sundell
771ae59636 pre-commit: run black without string normalization 2021-11-03 23:53:41 +01:00
Connor Dibble
a91571dd22 Support Arm64 CPU architectures 2021-11-03 23:06:37 +01:00
Erik Sundell
2ce091cbc5 pre-commit: remove requirements-txt-fixer 2021-11-01 09:39:20 +01:00
Erik Sundell
c2c4d708f5 pyupgrade fixes 2021-10-31 11:26:40 +01:00
Erik Sundell
623ab321f0 check-executable-have-shebangs fixes 2021-10-31 11:15:22 +01:00
Erik Sundell
a64f242b61 flake8 fixes: unused imports and f-strings without vars 2021-10-28 15:43:50 +02:00
Erik Sundell
2d10400f89 Update firstuseauthenticator to 1.0.0 2021-10-28 13:39:14 +02:00
Erik Sundell
2d6d970146 Merge pull request #719 from consideRatio/pr/update-hub-user-env-and-tljh-deps
Bump to recent versions, and make bootstrap.py update to those when run
2021-10-28 03:47:42 +02:00
Erik Sundell
3de51ff637 Remove --no-cache-dir flag 2021-10-27 15:34:44 +02:00
Erik Sundell
125e12ca5e Let pip upgrade packages
Since we now longer pin versions to the patch version, we should make
an install cause the packages upgrade within the version constraints
rathern than just settle for the current version if it is already
installed.
2021-10-27 10:41:43 +02:00
Erik Sundell
6197784045 Try stop pinning chardet 2021-10-27 09:15:44 +02:00
Erik Sundell
8910ffb1ab user env: bump to require latest major version, less pinned now 2021-10-27 09:15:44 +02:00
Erik Sundell
990135e179 hub env: bump to require latest major version, less pinned now 2021-10-27 09:15:44 +02:00
Min RK
d3412a1c81 remove addressed FIXMEs in update_auth
These are both addressed by the use of traitlets.config

- an informative error is raised if the auth class cannot be imported
- only configurable traits can be set, not any attribute on any object

also fix a couple of typos in the docstring that I introduced during review
2021-10-27 09:12:24 +02:00
Min RK
0cd6b2a8b0 raise on ignored config in auth
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
2021-10-27 08:46:46 +02:00
Erik Sundell
efb8ee0ffc Add back FIXME notes unchanged 2021-10-27 01:53:55 +02:00
Erik Sundell
a32ec5ee04 Apply suggestions from code review
Co-authored-by: Min RK <benjaminrk@gmail.com>
2021-10-27 01:53:55 +02:00
Erik Sundell
5c8e5678ac Apply TLJH auth config with less assumptions 2021-10-27 01:53:55 +02:00
Yuvi Panda
d4be3c1313 Merge pull request #717 from yuvipanda/cleanup-retrieve
Don't open file twice when downloading conda
2021-10-19 17:50:00 +05:30
Erik Sundell
de146690ad Apply suggestions from code review 2021-10-19 13:47:11 +02:00
Erik Sundell
6d6ec61102 Apply suggestions from code review 2021-10-19 12:24:34 +02:00
YuviPanda
63ced8eb7d Flush conda installer to disk before calculating sha 2021-10-19 15:07:44 +05:30
YuviPanda
9921403327 Don't open file twice when downloading conda
Unnecessary, and could also possibly cause races -
see https://github.com/jupyterhub/the-littlest-jupyterhub/pull/710#issuecomment-946165463
2021-10-19 14:05:36 +05:30
Simon Li
80b347349a Update to mambaforge_version 4.10.3-7 2021-10-18 22:51:12 +01:00
Simon Li
b3c07ba265 miniforge FIXME was fixed!
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
2021-10-18 22:09:42 +01:00
Simon Li
d869540a6c ensure mamba installed, add old miniconda check back 2021-10-18 19:41:50 +01:00
Simon Li
0018beca4f Switch to mambaforge 2021-10-18 19:41:50 +01:00
Yuvi Panda
4a7e545973 Merge pull request #715 from consideRatio/pr/refactor-bootstrap-for-readability
Refactor bootstrap.py script for readability
2021-10-18 23:55:29 +05:30
Erik Sundell
1bdc9e9d82 Merge pull request #232 from yuvipanda/no-e
Exit when tljh-config is called as non-root
2021-10-18 18:22:31 +02:00
Erik Sundell
ba84229c8f Refactor bootstrap.py script for readability 2021-10-18 01:13:34 +02:00
Erik Sundell
7f8842b22e Merge pull request #704 from jupyterhub/yuvipanda-patch-2
Bump nbgitpuller version
2021-10-16 19:55:10 +02:00
Erik Sundell
f930d9dfb7 Update nbgitpuller to 1.* 2021-10-16 19:05:21 +02:00
Yuvi Panda
a7484f429e Bump nbgitpuller version
Brings in a security fix.

See https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j
2021-08-30 18:58:29 +05:30