Skip to content

Commit

Permalink
fix(workers): add installation command, update pyproject (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D authored Jan 2, 2025
1 parent 98e9426 commit 2780d00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"start:dev:nowatch": "tsx src/server.ts | pino-pretty --singleLine",
"start:dev:workers": "concurrently npm:start:dev:workers:*",
"start:dev:workers:node": "tsx watch workers/node/main.ts | pino-pretty --singleLine",
"start:dev:workers:python": "bash -c 'cd workers/python && poetry run python python/main.py'",
"start:dev:workers:python": "bash -c 'cd workers/python && PORT=7777 poetry run python python/main.py'",
"install:workers:python": "bash -c 'cd workers/python && poetry install --no-root --all-extras --with docling --with unstructured'",
"test:e2e": "vitest run tests/e2e",
"test:e2e:watch": "vitest watch tests/e2e",
"mikro-orm": "NODE_OPTIONS='--import tsx' mikro-orm --config ./src/mikro-orm.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion workers/python/Dockerfile.docling
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV PYTHONUNBUFFERED=1 \
\
# poetry
# https://python-poetry.org/docs/configuration/#using-environment-variables
POETRY_VERSION=1.8.3 \
POETRY_VERSION=1.8.5 \
# make poetry create the virtual environment in the project's root
# it gets named `.venv`
POETRY_VIRTUALENVS_IN_PROJECT=true \
Expand Down
2 changes: 1 addition & 1 deletion workers/python/Dockerfile.unstructured
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV PYTHONUNBUFFERED=1 \
\
# poetry
# https://python-poetry.org/docs/configuration/#using-environment-variables
POETRY_VERSION=1.8.3 \
POETRY_VERSION=1.8.5 \
# make poetry create the virtual environment in the project's root
# it gets named `.venv`
POETRY_VIRTUALENVS_IN_PROJECT=true \
Expand Down
2 changes: 1 addition & 1 deletion workers/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ unstructured-ingest = {extras = ["s3"], version = "^0.3.8"}
unstructured = {extras = ["all-docs"], version = "^0.16.11"}

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 2780d00

Please sign in to comment.