Skip to content
Myr

setup.py

This file

Path

setup.py

78 lines · 2.6 KiB · Python

Last changed by

Merge pull request #3213 from jab/contributingJoshua Bronsonbefore adoptionfe41c6c

History of this file

Take it

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