Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 93 lines (73 sloc) 2.096 kb
0bb8b4f @mitsuhiko Beefed up setup.py
authored
1 """
2 Flask
3 -----
4
5 Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
6 intentions. And before you ask: It's BSD licensed!
7
8 Flask is Fun
9 ````````````
10
2639a23 @mitsuhiko Updated setup.py a bit. This fixes #1018
authored
11 Save in a hello.py:
12
1358fd9 @cenkalti Syntax highlighting for PyPI long description
cenkalti authored
13 .. code:: python
0bb8b4f @mitsuhiko Beefed up setup.py
authored
14
15 from flask import Flask
16 app = Flask(__name__)
17
18 @app.route("/")
19 def hello():
20 return "Hello World!"
21
22 if __name__ == "__main__":
23 app.run()
24
25 And Easy to Setup
26 `````````````````
27
2639a23 @mitsuhiko Updated setup.py a bit. This fixes #1018
authored
28 And run it:
29
1358fd9 @cenkalti Syntax highlighting for PyPI long description
cenkalti authored
30 .. code:: bash
0bb8b4f @mitsuhiko Beefed up setup.py
authored
31
3de8de1 @kennethreitz pip > easy_install
kennethreitz authored
32 $ pip install Flask
0bb8b4f @mitsuhiko Beefed up setup.py
authored
33 $ python hello.py
34 * Running on http://localhost:5000/
35
36 Links
37 `````
38
39 * `website <http://flask.pocoo.org/>`_
40 * `documentation <http://flask.pocoo.org/docs/>`_
3c821a0 @florentx Fix typos and remove unused import.
florentx authored
41 * `development version
42 <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_
0bb8b4f @mitsuhiko Beefed up setup.py
authored
43
44 """
85b20f8 @untitaker Avoid duplication of version info
untitaker authored
45 import re
46 import ast
47 from setuptools import setup
48
49
50 _version_re = re.compile(r'__version__\s+=\s+(.*)')
51
52 with open('flask/__init__.py', 'rb') as f:
53 version = str(ast.literal_eval(_version_re.search(
54 f.read().decode('utf-8')).group(1)))
f52f4fd @plaes Added initial version of 'setup.py audit'
plaes authored
55
0ac492a @mitsuhiko Depend on click now
authored
56
b15ad39 @mitsuhiko Added setup.py and README
authored
57 setup(
58 name='Flask',
85b20f8 @untitaker Avoid duplication of version info
untitaker authored
59 version=version,
b15ad39 @mitsuhiko Added setup.py and README
authored
60 url='http://github.com/mitsuhiko/flask/',
61 license='BSD',
62 author='Armin Ronacher',
63 author_email='armin.ronacher@active-4.com',
3c821a0 @florentx Fix typos and remove unused import.
florentx authored
64 description='A microframework based on Werkzeug, Jinja2 '
65 'and good intentions',
0bb8b4f @mitsuhiko Beefed up setup.py
authored
66 long_description=__doc__,
b93ab41 @untitaker Remove testsuite package from setup.py
untitaker authored
67 packages=['flask', 'flask.ext'],
0c75be1 @mitsuhiko Whitespace normalize
authored
68 include_package_data=True,
b15ad39 @mitsuhiko Added setup.py and README
authored
69 zip_safe=False,
70 platforms='any',
1fff3e5 @mitsuhiko Fixed a doc display bug and setup.py workaround for dev version.
authored
71 install_requires=[
b31f2d9 @rduplain Require Werkzeug>=0.7, #449.
rduplain authored
72 'Werkzeug>=0.7',
3f82d1b @mitsuhiko Switch to itsdangerous
authored
73 'Jinja2>=2.4',
0ac492a @mitsuhiko Depend on click now
authored
74 'itsdangerous>=0.21',
f6d25bb @mitsuhiko Switch to newer click (2.0)
authored
75 'click>=2.0',
0bb8b4f @mitsuhiko Beefed up setup.py
authored
76 ],
77 classifiers=[
b0ab127 @mitsuhiko Added logo with new slogan
authored
78 'Development Status :: 4 - Beta',
0bb8b4f @mitsuhiko Beefed up setup.py
authored
79 'Environment :: Web Environment',
80 'Intended Audience :: Developers',
81 'License :: OSI Approved :: BSD License',
82 'Operating System :: OS Independent',
83 'Programming Language :: Python',
2713ea9 @mitsuhiko Use same version specifications as in Werkzeug
authored
84 'Programming Language :: Python :: 3',
0bb8b4f @mitsuhiko Beefed up setup.py
authored
85 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
86 'Topic :: Software Development :: Libraries :: Python Modules'
707b307 @mitsuhiko use setup.py test. This fixes #56
authored
87 ],
7503bde @mitsuhiko Added the new flask run module to start the server.
authored
88 entry_points='''
89 [console_scripts]
0ac492a @mitsuhiko Depend on click now
authored
90 flask=flask.cli:main
4fca38c @untitaker remove audit command
untitaker authored
91 '''
b15ad39 @mitsuhiko Added setup.py and README
authored
92 )
Something went wrong with that request. Please try again.