Skip to content
Myr

setup.py

This file

Path

setup.py

100 lines · 2.4 KiB · Python

Last changed by

resolve merge conflictsKenneth Reitzbefore adoption31174fe

History of this file

Take it

The walk stopped after 200 commits: lines older than e9d1fc4 point at it.

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 1–10why, one step back
1"""
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````````````10

Updated setup.py a bit. This fixes #1018Armin Ronacherbefore adoption2639a23

lines 11–12why, one step back
11Save in a hello.py:
12

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 13–26why, one step back
13.. code:: python
1415 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`````````````````

Updated setup.py a bit. This fixes #1018Armin Ronacherbefore adoption2639a23

lines 27–28why, one step back
27
28And run it:

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 29–35why, one step back
29
30.. code:: bash3132 $ pip install Flask33 $ python hello.py34 * Running on http://localhost:5000/35

resolve merge conflictsKenneth Reitzbefore adoption31174fe

lines 36–37why, one step back
36 Ready for production? `Read this first <http://flask.pocoo.org/docs/deploying/>`.
37

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 38–43why, one step back
38Links
39`````4041* `website <http://flask.pocoo.org/>`_42* `documentation <http://flask.pocoo.org/docs/>`_43* `development version

resolve merge conflictsKenneth Reitzbefore adoption31174fe

line 44why, one step back
44 <https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 45–46why, one step back
45
46"""

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

lines 47–49why, one step back
47import re
48import ast49from setuptools import setup

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 50–51why, one step back
50
51

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

lines 52–58why, one step back
52_version_re = re.compile(r'__version__\s+=\s+(.*)')
5354with open('flask/__init__.py', 'rb') as f:55 version = str(ast.literal_eval(_version_re.search(56 f.read().decode('utf-8')).group(1)))5758

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 59–60why, one step back
59setup(
60 name='Flask',

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

line 61why, one step back
61 version=version,

resolve merge conflictsKenneth Reitzbefore adoption31174fe

line 62why, one step back
62 url='https://github.com/pallets/flask/',

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 63–68why, one step back
63 license='BSD',
64 author='Armin Ronacher',65 author_email='armin.ronacher@active-4.com',66 description='A microframework based on Werkzeug, Jinja2 '67 'and good intentions',68 long_description=__doc__,

Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61

line 69why, one step back
69 packages=['flask', 'flask.ext'],

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 70–73why, one step back
70 include_package_data=True,
71 zip_safe=False,72 platforms='any',73 install_requires=[

resolve merge conflictsKenneth Reitzbefore adoption31174fe

line 74why, one step back
74 'Werkzeug>=0.9',

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 75–76why, one step back
75 'Jinja2>=2.4',
76 'itsdangerous>=0.21',

resolve merge conflictsKenneth Reitzbefore adoption31174fe

line 77why, one step back
77 'click>=4.0',

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 78–85why, one step back
78 ],
79 classifiers=[80 'Development Status :: 4 - Beta',81 'Environment :: Web Environment',82 'Intended Audience :: Developers',83 'License :: OSI Approved :: BSD License',84 'Operating System :: OS Independent',85 'Programming Language :: Python',

resolve merge conflictsKenneth Reitzbefore adoption31174fe

lines 86–88why, one step back
86 'Programming Language :: Python :: 2',
87 'Programming Language :: Python :: 2.6',88 'Programming Language :: Python :: 2.7',

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

line 89why, one step back
89 'Programming Language :: Python :: 3',

resolve merge conflictsKenneth Reitzbefore adoption31174fe

lines 90–92why, one step back
90 'Programming Language :: Python :: 3.3',
91 'Programming Language :: Python :: 3.4',92 'Programming Language :: Python :: 3.5',

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

lines 93–98why, one step back
93 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
94 'Topic :: Software Development :: Libraries :: Python Modules'95 ],96 entry_points='''97 [console_scripts]98 flask=flask.cli:main

Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61

line 99why, one step back
99 '''

Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4

line 100why, one step back
100)