Bundling additional resources with your Python package

Modern web applications have a lot of dependencies and often require a lot of steps to properly install on the remote host. For instance, the typical bootstrapping process for a new version of the application on a remote host consists of the following steps:

  1. Create a new virtual environment for isolation.
  2. Move the project code to the execution environment.
  3. Install the latest project requirements (usually from the requirements.txt file).
  4. Synchronize or migrate the database schema.
  5. Collect static files from project sources and external packages to the desired location.
  6. Compile localization files for applications available in different languages.

For more complex sites, there might be ...

Get Expert Python Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.