mirror of https://github.com/pallets/flask.git
				
				
				
			
		
			
				
	
	
		
			72 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Python
		
	
	
	
| import io
 | |
| import re
 | |
| 
 | |
| from setuptools import find_packages
 | |
| from setuptools import setup
 | |
| 
 | |
| with io.open("README.rst", "rt", encoding="utf8") as f:
 | |
|     readme = f.read()
 | |
| 
 | |
| with io.open("src/flask/__init__.py", "rt", encoding="utf8") as f:
 | |
|     version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
 | |
| 
 | |
| setup(
 | |
|     name="Flask",
 | |
|     version=version,
 | |
|     url="https://palletsprojects.com/p/flask/",
 | |
|     project_urls={
 | |
|         "Documentation": "https://flask.palletsprojects.com/",
 | |
|         "Code": "https://github.com/pallets/flask",
 | |
|         "Issue tracker": "https://github.com/pallets/flask/issues",
 | |
|     },
 | |
|     license="BSD-3-Clause",
 | |
|     author="Armin Ronacher",
 | |
|     author_email="armin.ronacher@active-4.com",
 | |
|     maintainer="Pallets",
 | |
|     maintainer_email="contact@palletsprojects.com",
 | |
|     description="A simple framework for building complex web applications.",
 | |
|     long_description=readme,
 | |
|     classifiers=[
 | |
|         "Development Status :: 5 - Production/Stable",
 | |
|         "Environment :: Web Environment",
 | |
|         "Framework :: Flask",
 | |
|         "Intended Audience :: Developers",
 | |
|         "License :: OSI Approved :: BSD License",
 | |
|         "Operating System :: OS Independent",
 | |
|         "Programming Language :: Python",
 | |
|         "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
 | |
|         "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
 | |
|         "Topic :: Software Development :: Libraries :: Application Frameworks",
 | |
|         "Topic :: Software Development :: Libraries :: Python Modules",
 | |
|     ],
 | |
|     packages=find_packages("src"),
 | |
|     package_dir={"": "src"},
 | |
|     include_package_data=True,
 | |
|     python_requires=">=3.6",
 | |
|     install_requires=[
 | |
|         "Werkzeug>=0.15",
 | |
|         "Jinja2>=2.10.1",
 | |
|         "itsdangerous>=0.24",
 | |
|         "click>=5.1",
 | |
|     ],
 | |
|     extras_require={
 | |
|         "dotenv": ["python-dotenv"],
 | |
|         "dev": [
 | |
|             "pytest",
 | |
|             "coverage",
 | |
|             "tox",
 | |
|             "sphinx",
 | |
|             "pallets-sphinx-themes",
 | |
|             "sphinxcontrib-log-cabinet",
 | |
|             "sphinx-issues",
 | |
|         ],
 | |
|         "docs": [
 | |
|             "sphinx",
 | |
|             "pallets-sphinx-themes",
 | |
|             "sphinxcontrib-log-cabinet",
 | |
|             "sphinx-issues",
 | |
|         ],
 | |
|     },
 | |
|     entry_points={"console_scripts": ["flask = flask.cli:main"]},
 | |
| )
 |