Skip to content
Myr

setup.py

This file

Path

setup.py

76 lines · 2.5 KiB · Python

Last changed by

standardize project metadataDavid Lordbefore adoption24498af

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("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": "http://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.4",41        "Programming Language :: Python :: 3.5",42        "Programming Language :: Python :: 3.6",43        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",44        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",45        "Topic :: Software Development :: Libraries :: Application Frameworks",46        "Topic :: Software Development :: Libraries :: Python Modules",47    ],48    packages=find_packages(),49    include_package_data=True,50    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",51    install_requires=[52        "Werkzeug>=0.14",53        "Jinja2>=2.10",54        "itsdangerous>=0.24",55        "click>=5.1",56    ],57    extras_require={58        "dotenv": ["python-dotenv"],59        "dev": [60            "pytest",61            "coverage",62            "tox",63            "sphinx",64            "pallets-sphinx-themes",65            "sphinxcontrib-log-cabinet",66            "sphinx-issues",67        ],68        "docs": [69            "sphinx",70            "pallets-sphinx-themes",71            "sphinxcontrib-log-cabinet",72            "sphinx-issues",73        ],74    },75    entry_points={"console_scripts": ["flask = flask.cli:main"]},76)