Skip to content

Commit 6e6cbbe

Browse files
authored
fix(dependencies): Removing pyarrow and freezing numpy to <2 to avoid… (#155)
fix(dependencies): Removing pyarrow and freezing numpy to <2 to avoid errors and warnings
1 parent 8f1e7da commit 6e6cbbe

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

Dockerfile

+5-18
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,16 @@ RUN wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz \
4444
# Remove the Python source and tarball to reduce image size
4545
RUN rm -rf Python-3.11.0.tar.xz Python-3.11.0
4646

47-
# Install Python and Poetry
48-
RUN python3 -m ensurepip && \
49-
pip3 install --upgrade pip setuptools
50-
51-
# Install PyArrow in ALPINE
52-
## https://stackoverflow.com/questions/49059779/how-to-install-pyarrow-on-an-alpine-docker-image/53116069#53116069
53-
## https://discuss.streamlit.io/t/anyone-tried-to-install-streamlit-in-alpine-docker-image/56893
54-
RUN apk update && apk add \
55-
apache-arrow-dev \
56-
py3-pyarrow \
57-
&& rm -rf /var/lib/apt/lists/*
58-
59-
RUN pip3 install --upgrade pip && \
60-
pip3 install --break-system-packages numpy pyarrow==12.0.0
61-
62-
# Add your application's source code
47+
# Adding odtp source code and installing it.
6348
COPY . /app
6449
WORKDIR /app
6550
RUN pip3 install --break-system-packages $PIP_INSTALL_ARGS .
6651

52+
# Symbolic link to ODTP_PATH to facilitate debugging
53+
RUN ln -s $ODTP_PATH /ODTP_PATH
54+
6755
# Symbolic link between python and python3
68-
RUN rm /usr/bin/python
6956
RUN ln -s /usr/local/bin/python3 /usr/bin/python
7057

7158
# Entry point in a sh session
72-
ENTRYPOINT ["sh"]
59+
ENTRYPOINT ["sh"]

pyproject.toml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
[tool.poetry]
22
name = "odtp"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "A tool to deploy and manage open digital twins"
55
authors = ["caviri <[email protected]>", "sabinem <[email protected]>"]
66
license = "AGPL 3.0"
77
readme = "README.md"
88

99
[tool.poetry.dependencies]
1010
python = "^3.11"
11+
requests = "2.32.3"
1112
pydantic = "2.5.2"
13+
numpy = "1.26.4"
1214
typer = "0.9.0"
1315
pymongo = ">=4.6.3"
1416
python-dotenv = "^1.0.0"
1517
boto3 = "^1.33.13"
16-
barfi = "^0.7.0"
17-
streamlit = "^1.29.0"
18-
st-pages = "^0.4.5"
19-
streamlit-card = "^1.0.0"
20-
pygwalker = "^0.3.17"
21-
streamlit-aggrid = "^0.3.4.post3"
2218
nicegui = "1.4.24"
2319
directory-tree = "^0.0.4"
2420

21+
2522
[tool.poetry.group.dev.dependencies]
2623
pytest = "^7.2.1"
2724
black = ">=24.3.0"
@@ -32,4 +29,4 @@ requires = ["poetry-core"]
3229
build-backend = "poetry.core.masonry.api"
3330

3431
[tool.poetry.scripts]
35-
odtp = "odtp.cli.main:app"
32+
odtp = "odtp.cli.main:app"

0 commit comments

Comments
 (0)