Merge branch '1.3-branch' into pathinfogeddon
| | |
| | | Merickel, Eric Ongerth, Niall O'Higgins, Christoph Zwerschke, John |
| | | Anderson, Atsushi Odagiri, Kirk Strauser, JD Navarro, Joe Dallago, |
| | | Savoir-Faire Linux, Ćukasz Fidosz, Christopher Lambacher, Claus Conrad, |
| | | Chris Beelby, Phil Jenvey and a number of people with only psuedonyms on |
| | | Chris Beelby, Phil Jenvey and a number of people with only pseudonyms on |
| | | GitHub. |
| | | |
| | | Cover Designer: |
| | |
| | | virtualenv when the distribution is installed, it's a convenient way to |
| | | package and distribute functionality that you can call from the command-line. |
| | | It's often more convenient to create a console script than it is to create a |
| | | ``.py`` script and instruct people to call it with "the right Python |
| | | interpreter": because it generates a file that lives in ``bin``, when it's |
| | | invoked, it will always use "the right" Python environment, which means it |
| | | ``.py`` script and instruct people to call it with the "right" Python |
| | | interpreter. A console script generates a file that lives in ``bin``, and when it's |
| | | invoked it will always use the "right" Python environment, which means it |
| | | will always be invoked in an environment where all the libraries it needs |
| | | (such as Pyramid) are available. |
| | | |
| | |
| | | |
| | | As the result of this view configuration, when the pattern associated with |
| | | the view named ``home`` is matched during a request, the function named |
| | | ``my_view`` will be executed. The the function named ``my_view`` returns a |
| | | ``my_view`` will be executed. The function named ``my_view`` returns a |
| | | dictionary; the renderer will use the ``templates/mytemplate.pt`` template to |
| | | create a response based on the values in the dictionary. |
| | | |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'docutils', |
| | | 'waitress', |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='tutorial', |
| | | version='0.0', |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'zope.sqlalchemy', |
| | | 'waitress', |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='tutorial', |
| | | version='0.0', |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'zope.sqlalchemy', |
| | | 'waitress', |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='tutorial', |
| | | version='0.0', |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'docutils', |
| | | 'WebTest', # add this |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='tutorial', |
| | | version='0.0', |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'waitress', |
| | | 'docutils', |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='tutorial', |
| | | version='0.0', |
| | |
| | | .. literalinclude:: src/tests/setup.py |
| | | :linenos: |
| | | :language: python |
| | | :lines: 10-19 |
| | | :lines: 9-20 |
| | | |
| | | After we've added a dependency on WebTest in ``setup.py``, we need to rerun |
| | | ``setup.py develop`` to get WebTest installed into our virtualenv. Assuming |
| | |
| | | import os |
| | | import sys |
| | | |
| | | from setuptools import setup, find_packages |
| | | |
| | |
| | | 'zope.sqlalchemy', |
| | | 'waitress', |
| | | ] |
| | | |
| | | if sys.version_info[:3] < (2,5,0): |
| | | requires.append('pysqlite') |
| | | |
| | | setup(name='{{project}}', |
| | | version='0.0', |