Skip to content

Commit 5feb42a

Browse files
committed
use uv as package manager, ref. #10
1 parent 3269fe6 commit 5feb42a

File tree

5 files changed

+409
-358
lines changed

5 files changed

+409
-358
lines changed

.devcontainer/amd64/Dockerfile

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,26 @@ RUN pip config --user set global.disable-pip-version-check true && \
8787
pip config --user set global.no-cache-dir true && \
8888
pip install --upgrade pip && \
8989
pip install --upgrade setuptools && \
90-
pip install --upgrade wheel
91-
92-
# Install Python Packages
93-
# Note: using multiple pip install runs is intentional, else pip has a problem resolving the dependencies
94-
RUN pip install ipykernel docutils jupyter notebook jupyterhub && \
95-
pip install \
96-
watermark pyyaml pylint h5py \
97-
tensorflow && \
98-
pip install --prefer-binary \
99-
matplotlib seaborn plotly graphviz \
100-
keras --no-deps \
101-
opencv-python-headless \
102-
imutils && \
103-
pip install --prefer-binary \
104-
numpy pandas pandas-datareader bottleneck \
105-
scipy scikit-learn \
106-
duckdb \
107-
sqlalchemy \
108-
pyautogui \
109-
requests_cache \
110-
yfinance alpha_vantage nasdaq-data-link finnhub-python financetoolkit financedatabase \
111-
statsmodels
90+
pip install --upgrade wheel && \
91+
pip install uv
92+
93+
# Install Python Packages using uv
94+
RUN uv pip install \
95+
ipykernel docutils jupyter notebook jupyterhub \
96+
watermark pyyaml pylint h5py \
97+
tensorflow \
98+
matplotlib seaborn plotly graphviz \
99+
keras \
100+
opencv-python-headless \
101+
imutils \
102+
numpy pandas pandas-datareader bottleneck \
103+
scipy scikit-learn \
104+
duckdb \
105+
sqlalchemy \
106+
pyautogui \
107+
requests_cache \
108+
yfinance alpha_vantage nasdaq-data-link finnhub-python financetoolkit financedatabase \
109+
statsmodels
112110

113111
# Install ipykernel
114112
RUN /opt/venv/bin/python -m ipykernel install --user --name="jupyter_devbox" --display-name="jupyter_devbox_python3_venv"

.devcontainer/arm64v8/Dockerfile

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,26 @@ RUN pip config --user set global.disable-pip-version-check true && \
9999
pip config --user set global.no-cache-dir true && \
100100
pip install --upgrade pip && \
101101
pip install --upgrade setuptools && \
102-
pip install --upgrade wheel
103-
104-
# Install Python Packages
105-
# prefer-binary = prefer to download the precompiled wheel, even if source is newer
106-
# Note: using multiple pip install runs is intentional, else pip has a problem resolving the dependencies
107-
RUN pip install ipykernel docutils jupyter notebook jupyterhub && \
108-
pip install --prefer-binary \
109-
watermark pyyaml pylint h5py \
110-
tensorflow && \
111-
pip install --prefer-binary \
112-
matplotlib pillow seaborn plotly graphviz \
113-
keras --no-deps \
114-
opencv-python-headless \
115-
imutils && \
116-
pip install --prefer-binary \
117-
numpy pandas pandas-datareader bottleneck \
118-
scipy scikit-learn \
119-
duckdb \
120-
sqlalchemy \
121-
pyautogui \
122-
requests_cache \
123-
yfinance alpha_vantage nasdaq-data-link finnhub-python financetoolkit financedatabase \
124-
statsmodels
102+
pip install --upgrade wheel && \
103+
pip install uv
104+
105+
# Install Python Packages using uv
106+
RUN uv pip install \
107+
ipykernel docutils jupyter notebook jupyterhub \
108+
watermark pyyaml pylint h5py \
109+
tensorflow \
110+
matplotlib pillow seaborn plotly graphviz \
111+
keras \
112+
opencv-python-headless \
113+
imutils \
114+
numpy pandas pandas-datareader bottleneck \
115+
scipy scikit-learn \
116+
duckdb \
117+
sqlalchemy \
118+
pyautogui \
119+
requests_cache \
120+
yfinance alpha_vantage nasdaq-data-link finnhub-python financetoolkit financedatabase \
121+
statsmodels
125122

126123
# Install ipykernel
127124
RUN /opt/venv/bin/python -m ipykernel install --user --name="jupyter_devbox" --display-name="jupyter_devbox_python3_venv"

0 commit comments

Comments
 (0)