From 9efe202acc7d75c63df405e67d153e20c33664a3 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 15 Oct 2022 18:53:53 +0200 Subject: [PATCH] refactor: migrate Python installers to requirements file --- python/pip-requirements.txt | 12 +++++------- setup/python.sh | 30 ++---------------------------- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/python/pip-requirements.txt b/python/pip-requirements.txt index 58db714..156235b 100644 --- a/python/pip-requirements.txt +++ b/python/pip-requirements.txt @@ -60,23 +60,21 @@ instaloader==4.9.5 ipykernel==6.16.0 ipython==8.5.0 ipython-genutils==0.2.0 -ipywidgets==8.0.2 +ipywidgets==7.7.2 jedi==0.18.1 Jinja2==3.1.2 jmespath==1.0.1 json5==0.9.10 -jsonrpcclient==4.0.2 -jsonrpcserver==5.0.9 -jsonschema==4.16.0 +jsonrpcserver==4.2.0 +jsonschema==3.2.0 jupyter==1.0.0 -jupyter-ascending==0.1.23 jupyter-console==6.4.4 jupyter-core==4.11.1 jupyter-server==1.21.0 jupyter_client==7.4.2 jupyterlab==3.4.8 jupyterlab-pygments==0.2.2 -jupyterlab-widgets==3.0.3 +jupyterlab-widgets==1.1.1 jupyterlab_server==2.16.0 jupytext==1.14.1 keras==2.10.0 @@ -180,7 +178,7 @@ websocket-client==1.4.1 websockets==10.3 Werkzeug==2.2.2 whisper==1.1.10 -widgetsnbextension==4.0.3 +widgetsnbextension==3.6.1 wrapt==1.14.1 yamllint==1.28.0 yt-dlp==2022.10.4 diff --git a/setup/python.sh b/setup/python.sh index 2a65d1e..90c8e2b 100755 --- a/setup/python.sh +++ b/setup/python.sh @@ -11,37 +11,11 @@ eval "$(pyenv virtualenv-init -)" pyenv install 3.10.1 -pip install Pillow -pip install autopep8 -pip install awscli -pip install black -pip install certifi -pip install codespell -pip install diffusers==0.3.0 -pip install fawkes -pip install flake8 -pip install git+https://github.com/openai/whisper.git -pip install gitlint -pip install jupyter -pip install jupyter_ascending -pip install jupyterlab -pip install mutagen -pip install neovim -pip install notebook -pip install numpy -pip install proselint -pip install pycryptodomex -pip install torch -pip install tqdm -pip install transformers -pip install vim-vint -pip install voila -pip install websockets -pip install yamllint -pip install yt-dlp +pip install -r ~/.dotfiles/python/pip-requirements.txt jupyter nbextension install --py --sys-prefix jupyter_ascending jupyter nbextension enable jupyter_ascending --sys-prefix --py jupyter serverextension enable jupyter_ascending --sys-prefix --py conda install -n base ipykernel --update-deps --force-reinstall +conda install --file ~/.dotfiles/python/conda-requirements.txt