Skip to content
Myr

setup.py

This file

Path

setup.py

80 lines · 2.8 KiB · Python

Last changed by

Merge pull request #4047 from pallets/maximum-versionsDavid Lordbefore adoptionae647b5

History of this file

Take it

1import io2import re34from setuptools import find_packages5from setuptools import setup67with io.open("README.rst", "rt", encoding="utf8") as f:8    readme = f.read()910with io.open("src/flask/__init__.py", "rt", encoding="utf8") as f:11    version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)1213setup(14    name="Flask",15    version=version,16    url="https://palletsprojects.com/p/flask/",17    project_urls={18        "Documentation": "https://flask.palletsprojects.com/",19        "Code": "https://github.com/pallets/flask",20        "Issue tracker": "https://github.com/pallets/flask/issues",21    },22    license="BSD-3-Clause",23    author="Armin Ronacher",24    author_email="armin.ronacher@active-4.com",25    maintainer="Pallets",26    maintainer_email="contact@palletsprojects.com",27    description="A simple framework for building complex web applications.",28    long_description=readme,29    classifiers=[30        "Development Status :: 5 - Production/Stable",31        "Environment :: Web Environment",32        "Framework :: Flask",33        "Intended Audience :: Developers",34        "License :: OSI Approved :: BSD License",35        "Operating System :: OS Independent",36        "Programming Language :: Python",37        "Programming Language :: Python :: 2",38        "Programming Language :: Python :: 2.7",39        "Programming Language :: Python :: 3",40        "Programming Language :: Python :: 3.5",41        "Programming Language :: Python :: 3.6",42        "Programming Language :: Python :: 3.7",43        "Programming Language :: Python :: 3.8",44        "Programming Language :: Python :: Implementation :: CPython",45        "Programming Language :: Python :: Implementation :: PyPy",46        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",47        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",48        "Topic :: Software Development :: Libraries :: Application Frameworks",49        "Topic :: Software Development :: Libraries :: Python Modules",50    ],51    packages=find_packages("src"),52    package_dir={"": "src"},53    include_package_data=True,54    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",55    install_requires=[56        "Werkzeug >= 0.15, < 2.0",57        "Jinja2 >= 2.10.1, < 3.0",58        "itsdangerous >= 0.24, < 2.0",59        "click >= 5.1, < 8.0",60    ],61    extras_require={62        "dotenv": ["python-dotenv"],63        "dev": [64            "pytest",65            "coverage",66            "tox",67            "sphinx",68            "pallets-sphinx-themes",69            "sphinxcontrib-log-cabinet",70            "sphinx-issues",71        ],72        "docs": [73            "sphinx",74            "pallets-sphinx-themes",75            "sphinxcontrib-log-cabinet",76            "sphinx-issues",77        ],78    },79    entry_points={"console_scripts": ["flask = flask.cli:main"]},80)