setup.py
This file
Path
setup.py
98 lines · 2.3 KiB · Python
Last changed by
Change to Pallets projectJosé Carlos Garcíabefore adoption567fff9
History of this fileTake it
The walk stopped after 200 commits: lines older than 0ce3db8 point at it.
Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 1–41why, one step back1"""2Flask3-----45Flask is a microframework for Python based on Werkzeug, Jinja 2 and good6intentions. And before you ask: It's BSD licensed!78Flask is Fun9````````````1011Save in a hello.py:1213.. code:: python1415 from flask import Flask16 app = Flask(__name__)1718 @app.route("/")19 def hello():20 return "Hello World!"2122 if __name__ == "__main__":23 app.run()2425And Easy to Setup26`````````````````2728And run it:2930.. code:: bash3132 $ pip install Flask33 $ python hello.py34 * Running on http://localhost:5000/3536Links37`````3839* `website <http://flask.pocoo.org/>`_40* `documentation <http://flask.pocoo.org/docs/>`_41* `development versionChange to Pallets projectJosé Carlos Garcíabefore adoption567fff9
line 42why, one step back42 <http://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 43–44why, one step back4344"""Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 45–47why, one step back45import re46import ast47from setuptools import setupRemove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 48–49why, one step back4849Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 50–56why, one step back50_version_re = re.compile(r'__version__\s+=\s+(.*)')5152with open('flask/__init__.py', 'rb') as f:53 version = str(ast.literal_eval(_version_re.search(54 f.read().decode('utf-8')).group(1)))5556Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 57–58why, one step back57setup(58 name='Flask',Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
line 59why, one step back59 version=version,Change to Pallets projectJosé Carlos Garcíabefore adoption567fff9
line 60why, one step back60 url='http://github.com/pallets/flask/',Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 61–66why, one step back61 license='BSD',62 author='Armin Ronacher',63 author_email='armin.ronacher@active-4.com',64 description='A microframework based on Werkzeug, Jinja2 '65 'and good intentions',66 long_description=__doc__,Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61
line 67why, one step back67 packages=['flask', 'flask.ext'],Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 68–83why, one step back68 include_package_data=True,69 zip_safe=False,70 platforms='any',71 install_requires=[72 'Werkzeug>=0.7',73 'Jinja2>=2.4',74 'itsdangerous>=0.21',75 'click>=2.0',76 ],77 classifiers=[78 'Development Status :: 4 - Beta',79 'Environment :: Web Environment',80 'Intended Audience :: Developers',81 'License :: OSI Approved :: BSD License',82 'Operating System :: OS Independent',83 'Programming Language :: Python',Merge pull request #1661 from lord63-forks/clarify-versionDavid Lordbefore adoptionc1c205b
lines 84–86why, one step back84 'Programming Language :: Python :: 2',85 'Programming Language :: Python :: 2.6',86 'Programming Language :: Python :: 2.7',Remove date tagging.Armin Ronacherbefore adoption0ce3db8
line 87why, one step back87 'Programming Language :: Python :: 3',Merge pull request #1661 from lord63-forks/clarify-versionDavid Lordbefore adoptionc1c205b
lines 88–90why, one step back88 'Programming Language :: Python :: 3.3',89 'Programming Language :: Python :: 3.4',90 'Programming Language :: Python :: 3.5',Remove date tagging.Armin Ronacherbefore adoption0ce3db8
lines 91–96why, one step back91 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',92 'Topic :: Software Development :: Libraries :: Python Modules'93 ],94 entry_points='''95 [console_scripts]96 flask=flask.cli:mainMerge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61
line 97why, one step back97 '''Remove date tagging.Armin Ronacherbefore adoption0ce3db8
line 98why, one step back98)