setup.py
This file
Path
setup.py
112 lines · 2.8 KiB · Python
Last changed by
Merge pull request #2416 from davidism/dotenvDavid Lordbefore adoption851eaa4
History of this fileTake it
The walk stopped after 200 commits: lines older than aa40b17 point at it.
Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 1–35why, 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/35resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 36–37why, one step back36 Ready for production? `Read this first <http://flask.pocoo.org/docs/deploying/>`.37Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 38–43why, one step back38Links39`````4041* `website <http://flask.pocoo.org/>`_42* `documentation <http://flask.pocoo.org/docs/>`_43* `development versionresolve merge conflictsKenneth Reitzbefore adoption31174fe
line 44why, one step back44 <https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 45–46why, one step back4546"""Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 47–49why, one step back47import re48import ast49from setuptools import setupAdd Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
line 50why, one step back50Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 51–56why, one step back51_version_re = re.compile(r'__version__\s+=\s+(.*)')5253with open('flask/__init__.py', 'rb') as f:54 version = str(ast.literal_eval(_version_re.search(55 f.read().decode('utf-8')).group(1)))56Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 57–58why, one step back57setup(58 name='Flask',Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
line 59why, one step back59 version=version,resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 60why, one step back60 url='https://github.com/pallets/flask/',Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
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 #2395 from davidism/remove-extDavid Lordbefore adoptionbce8ec7
line 67why, one step back67 packages=['flask', 'flask.json'],Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 68–71why, one step back68 include_package_data=True,69 zip_safe=False,70 platforms='any',71 install_requires=[resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 72why, one step back72 'Werkzeug>=0.9',Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 73–74why, one step back73 'Jinja2>=2.4',74 'itsdangerous>=0.21',resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 75why, one step back75 'click>=4.0',Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
line 76why, one step back76 ],Merge pull request #2343 from davidism/testsDavid Lordbefore adoption9038914
line 77why, one step back77 extras_require={Merge pull request #2416 from davidism/dotenvDavid Lordbefore adoption851eaa4
line 78why, one step back78 'dotenv': ['python-dotenv'],Merge pull request #2343 from davidism/testsDavid Lordbefore adoption9038914
lines 79–80why, one step back79 'dev': [80 'blinker',Merge pull request #2416 from davidism/dotenvDavid Lordbefore adoption851eaa4
line 81why, one step back81 'python-dotenv',Merge pull request #2343 from davidism/testsDavid Lordbefore adoption9038914
lines 82–89why, one step back82 'greenlet',83 'pytest>=3',84 'coverage',85 'tox',86 'sphinx',87 'sphinxcontrib-log-cabinet'88 ],89 },Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 90–96why, one step back90 classifiers=[91 'Development Status :: 4 - Beta',92 'Environment :: Web Environment',93 'Intended Audience :: Developers',94 'License :: OSI Approved :: BSD License',95 'Operating System :: OS Independent',96 'Programming Language :: Python',resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 97–99why, one step back97 'Programming Language :: Python :: 2',98 'Programming Language :: Python :: 2.6',99 'Programming Language :: Python :: 2.7',Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
line 100why, one step back100 'Programming Language :: Python :: 3',resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 101–103why, one step back101 'Programming Language :: Python :: 3.3',102 'Programming Language :: Python :: 3.4',103 'Programming Language :: Python :: 3.5',update changelogDavid Lordbefore adoption399ac3c
line 104why, one step back104 'Programming Language :: Python :: 3.6',Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
lines 105–110why, one step back105 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',106 'Topic :: Software Development :: Libraries :: Python Modules'107 ],108 entry_points='''109 [console_scripts]110 flask=flask.cli:mainMerge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61
line 111why, one step back111 '''Add Config.from_mappingDaniel Neuhäuserbefore adoptionaa40b17
line 112why, one step back112)