Skip to content

feat: Make frontend and backend pip-installable#19

Open
timbot wants to merge 1 commit into
marshallrichards:masterfrom
timbot:make-pipable
Open

feat: Make frontend and backend pip-installable#19
timbot wants to merge 1 commit into
marshallrichards:masterfrom
timbot:make-pipable

Conversation

@timbot
Copy link
Copy Markdown

@timbot timbot commented Aug 22, 2025

This commit introduces the necessary configuration to package the frontend and backend as separate, pip-installable packages. This simplifies deployment and dependency management.

Key changes:

  • Backend:

    • Added pyproject.toml to define the turbodrone-backend package.
    • Added entry points for various scripts like turbodrone-web, turbodrone-cli, etc.
    • Added a main function to web_server.py to serve as the entry point for the web server.
  • Frontend:

    • Added pyproject.toml and setup.py to define the turbodrone-frontend package.
    • The setup.py script now handles running npm build and packaging the static assets.
    • A simple FastAPI server is included to serve the frontend, making it self-contained.
    • Removed unnecessary React imports from a few components.

This commit introduces the necessary configuration to package the frontend and backend as separate, pip-installable packages. This simplifies deployment and dependency management.

Key changes:

- **Backend:**
  - Added `pyproject.toml` to define the `turbodrone-backend` package.
  - Added entry points for various scripts like `turbodrone-web`, `turbodrone-cli`, etc.
  - Added a `main` function to `web_server.py` to serve as the entry point for the web server.

- **Frontend:**
  - Added `pyproject.toml` and `setup.py` to define the `turbodrone-frontend` package.
  - The `setup.py` script now handles running `npm build` and packaging the static assets.
  - A simple FastAPI server is included to serve the frontend, making it self-contained.
  - Removed unnecessary React imports from a few components.
@timbot
Copy link
Copy Markdown
Author

timbot commented Aug 22, 2025

Heya @marshallrichards - I like packages to be pip-installable so I can easily add them to docker images etc. Let me know if this is interesting to you, and if you find any issues with it I can address them. Cheers, Tim.

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.

1 participant