-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for "legacy dependencies" from a single codebase
- Loading branch information
1 parent
4bb864f
commit 3acd607
Showing
17 changed files
with
330 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG PYTHON_VERSION=3.10-bookworm | ||
|
||
# install dataclay | ||
FROM python:$PYTHON_VERSION | ||
COPY . /app | ||
|
||
# Compiling protos inside to ensure correctness in contrast with the non-legacy-deps image | ||
RUN python -m pip install --upgrade pip \ | ||
&& python -m pip install "grpcio-tools==1.48.2" \ | ||
&& cd /app && ./compile-protos.sh | ||
|
||
RUN python -m pip install --upgrade pip \ | ||
&& python -m pip install -r /app/requirements-legacydeps.txt \ | ||
&& python -m pip install /app --no-deps | ||
|
||
# prepare dataclay storage dir | ||
RUN mkdir -p /data/storage; | ||
|
||
# set workdir and entrypoint | ||
WORKDIR /workdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG PYTHON_VERSION=3.10-bookworm | ||
|
||
# install dataclay | ||
FROM python:$PYTHON_VERSION | ||
COPY . /app | ||
RUN python -m pip install --upgrade pip \ | ||
&& python -m pip install -r /app/requirements-dev.txt -r /app/requirements-legacydeps.txt \ | ||
&& python -m pip install -e /app --no-deps | ||
|
||
# prepare dataclay storage dir | ||
RUN mkdir -p /data/storage; | ||
|
||
# set workdir and entrypoint | ||
WORKDIR /workdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Used only for the tests on legacy-deps | ||
# (build process on Dockerfile.legacy-deps) | ||
|
||
pytest | ||
pytest-asyncio | ||
pytest-docker | ||
grpcio-tools | ||
black | ||
isort | ||
coverage[toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This requirements should be used for installing dataClay in the "legacy dependencies" flavour | ||
|
||
# You will need to install these requirements before installing dataClay. You can do it with: | ||
# | ||
# $ pip install -r requirements-legacydeps.txt -r requirements.txt | ||
# | ||
# Tweak the previous command as you see fit, assuming requirements.txt contains | ||
# your own requirements. You may want to merge into a single requirements.txt. | ||
|
||
# After the requirements are in place, install dataClay without dependencies: | ||
# $ pip install --no-deps "dataclay=={version}" | ||
|
||
aiorwlock>=1.4.0 | ||
bcrypt>=4.1.1 | ||
grpcio>=1.48.2 | ||
grpcio-health-checking>=1.48.2 | ||
hiredis>=3.0.0 | ||
opentelemetry-api>=1.14.0 | ||
protobuf<3.20 | ||
psutil>=5 | ||
pydantic<2 | ||
redis>=5.1.1 | ||
get-annotations;python_version<"3.10" | ||
PyJWT>=2.9.0 | ||
threadpoolctl>=3.5.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.