July 2019
Beginner to intermediate
302 pages
9h 38m
English
Installing a Flask app can be very easily achieved using the setuptools Python library. To achieve this, create a file called setup.py in your application's folder and configure it to run a setup script for the application. This will take care of any dependencies, descriptions, loading test packages, and so on.
The following is an example of a simple setup.py script for the Hello World application:
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os from setuptools import setup setup( name = 'my_app', version='1.0', license='GNU General Public License v3', author='Shalabh Aggarwal', author_email='contact@shalabhaggarwal.com', description='Hello world application for Flask', packages=['my_app'], platforms='any', install_requires=[ ...