Skip to content

Add pyproject.toml for Railpack Python detection#2

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-z96FMk
Open

Add pyproject.toml for Railpack Python detection#2
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-z96FMk

Conversation

@railway-app
Copy link
Copy Markdown

@railway-app railway-app Bot commented Mar 26, 2026

Problem

Railpack cannot detect the FoodSafe backend as a Python project because neither pyproject.toml nor setup.py exist in the backend/ directory, causing the build to fail with "Railpack could not determine how to build the app" despite requirements.txt and start.sh being present.

Solution

Added a minimal backend/pyproject.toml that declares the project name as "foodsafe", sets a Python 3.9+ requirement, and uses setuptools' dynamic dependencies to point at the existing requirements.txt — no duplication of the dependency list. This gives Railpack the marker it needs to identify and build the project, after which the existing start.sh runs Uvicorn as normal.

Changes

  • Created backend/pyproject.toml

Generated by Railway

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
food-safe Ready Ready Preview, Comment Mar 26, 2026 11:19am
food-safe-lsca Ready Ready Preview, Comment Mar 26, 2026 11:19am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants