Skip to content

Commit

Permalink
Use dynamic dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Constantin M Adam <[email protected]>
  • Loading branch information
cmadam committed Nov 14, 2024
1 parent 9f33620 commit 528457c
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 82 deletions.
55 changes: 0 additions & 55 deletions data-processing-lib/spark/pyproject.toml

This file was deleted.

2 changes: 1 addition & 1 deletion transforms/universal/fdedup/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN pip install data-processing-dist/${DPK_WHEEL_FILE_NAME}
COPY --chown=dpk:root src/ src/
COPY --chown=dpk:root pyproject.toml pyproject.toml
COPY --chown=dpk:root README.md README.md
#COPY --chown=dpk:root requirements.txt requirements.txt
COPY --chown=dpk:root requirements.txt requirements.txt

RUN pip install --no-cache-dir -e .

Expand Down
16 changes: 3 additions & 13 deletions transforms/universal/fdedup/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,13 @@ authors = [
{ name = "Nelson Bore", email = "[email protected]" },
{ name = "Constantin Adam", email = "[email protected]" },
]
dependencies = [
"data-prep-toolkit==0.2.2.dev2",
"pyarrow==16.1.0",
"pyyaml>=6.0.2",
"boto3>=1.34.69",
"kubernetes>=30.1.0",
"polars==1.9.0",
"disjoint-set>=0.8.0",
"scipy>=1.14.1, <2.0.0",
"numpy<1.29.0",
"sentencepiece>=0.2.0",
"mmh3>=4.1.0",
]
dynamic = ["dependencies"]

[build-system]
requires = ["setuptools>=68.0.0", "wheel", "setuptools_scm[toml]>=7.1.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project.optional-dependencies]
dev = [
Expand Down
10 changes: 10 additions & 0 deletions transforms/universal/fdedup/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
data-prep-toolkit==0.2.2.dev2
pyyaml>=6.0.2
boto3>=1.34.69
kubernetes>=30.1.0
polars==1.9.0
disjoint-set>=0.8.0
scipy>=1.14.1, <2.0.0
numpy<1.29.0
sentencepiece>=0.2.0
mmh3>=4.1.0
1 change: 1 addition & 0 deletions transforms/universal/fdedup/ray/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN cd python-transform && pip install --no-cache-dir -e .
COPY --chown=ray:users src/ src/
COPY --chown=ray:users pyproject.toml pyproject.toml
COPY --chown=ray:users README.md README.md
COPY --chown=ray:users requirements.txt requirements.txt
RUN pip install --no-cache-dir -e .

# copy source files needed by test-image
Expand Down
11 changes: 3 additions & 8 deletions transforms/universal/fdedup/ray/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ authors = [
{ name = "Nelson Bore", email = "[email protected]" },
{ name = "Constantin Adam", email = "[email protected]" },
]
dependencies = [
"data-prep-toolkit[ray]==0.2.2.dev2",
"dpk_fdedup_transform_python==0.2.2.dev2",
"mmh3>=4.1.0",
"xxhash==3.4.1",
"tqdm==4.66.3",
"scipy>=1.12.0, <2.0.0"
]
dynamic = ["dependencies"]

[build-system]
requires = ["setuptools>=68.0.0", "wheel", "setuptools_scm[toml]>=7.1.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project.optional-dependencies]
dev = [
Expand Down
6 changes: 6 additions & 0 deletions transforms/universal/fdedup/ray/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data-prep-toolkit[ray]==0.2.2.dev2
dpk_fdedup_transform_python==0.2.2.dev2
mmh3>=4.1.0
xxhash==3.4.1
tqdm==4.66.3
scipy>=1.12.0, <2.0.0
11 changes: 7 additions & 4 deletions transforms/universal/fdedup/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ authors = [
{ name = "Nelson Bore", email = "[email protected]" },
{ name = "Constantin Adam", email = "[email protected]" },
]
dependencies = [
"dpk_fdedup_transform_python==0.2.2.dev2",
"data-prep-toolkit-spark==0.2.2.dev2",
]
dynamic = ["dependencies"]

[build-system]
requires = ["setuptools>=68.0.0", "wheel", "setuptools_scm[toml]>=7.1.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project.optional-dependencies]
dev = [
Expand Down
3 changes: 2 additions & 1 deletion transforms/universal/fdedup/spark/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pyarrow==16.1.0
dpk_fdedup_transform_python==0.2.2.dev2
data-prep-toolkit[spark]==0.2.2.dev2
pyyaml>=6.0.2
boto3>=1.34.69
kubernetes>=30.1.0
Expand Down

0 comments on commit 528457c

Please sign in to comment.