10 months ago
I'm attempting to deploy a new service and I am recieving the build error below.
I have attempted using readme vars in my pyproject.toml file, both of which fail:
readme = {"file" = "README.md", "content-type" = "text/markdown"}
readme = {"file" = "./README.md", "content-type" = "text/markdown"}
But the following works:
readme = {"text" = "Analytics MCP Server - A Model Context Protocol server for Ledger Analytics API interaction", "content-type" = "text/markdown"}
Note there are two other README.md files in this project in the /tests and /examples directories
May 20 14:12:21
Preparing metadata (pyproject.toml): finished with status 'error'
May 20 14:12:21
error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] Traceback (most recent call last): File "/opt/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/opt/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-6ux4phsi/overlay/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard']))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-6ux4phsi/overlay/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 90, in build self.metadata.validate_fields() File "/tmp/pip-build-env-6ux4phsi/overlay/lib/python3.12/site-packages/hatchling/metadata/core.py", line 266, in validate_fields self.core.validate_fields() File "/tmp/pip-build-env-6ux4phsi/overlay/lib/python3.12/site-packages/hatchling/metadata/core.py", line 1366, in validate_fields getattr(self, attribute) File "/tmp/pip-build-env-6ux4phsi/overlay/lib/python3.12/site-packages/hatchling/metadata/core.py", line 568, in readme raise OSError(message) OSError: Readme file does not exist: ./README.md [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.
May 20 14:12:21
error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
May 20 14:12:21
✕ [stage-0 6/8] RUN --mount=type=cache,id=s/8ad621e4-ccbe-491e-adc2-cee6adac25d2-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install --upgrade build setuptools && pip install .
process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install --upgrade build setuptools && pip install ." did not complete successfully: exit code: 1
May 20 14:12:21
Dockerfile:20
May 20 14:12:21
-------------------
May 20 14:12:21
18 | ENV NIXPACKS_PATH=/opt/venv/bin:$NIXPACKS_PATH
May 20 14:12:21
19 | COPY pyproject.toml /app/pyproject.toml
May 20 14:12:21
20 | >>> RUN --mount=type=cache,id=s/8ad621e4-ccbe-491e-adc2-cee6adac25d2-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install --upgrade build setuptools && pip install .
May 20 14:12:21
21 |
May 20 14:12:21
22 |
May 20 14:12:21
-------------------
May 20 14:12:21
ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install --upgrade build setuptools && pip install ." did not complete successfully: exit code: 1
May 20 14:12:21
Error: Docker build failed
Load More
analytics-mcp-server |
0 Replies
Status changed to Closed echohack • 10 months ago