New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts optparse to argparse #2842

Closed
wants to merge 116 commits into
base: scripts-optparse-to-argparse
from
Commits
Jump to file or symbol
Failed to load files and symbols.
+2,578 −768
Diff settings

Always

Just for now

View
@@ -119,6 +119,16 @@ Features
See https://github.com/Pylons/pyramid/pull/2805
- A new ``[pserve]`` section is supported in your config files with a
``watch_files`` key that can configure ``pserve --reload`` to monitor custom
file paths. See https://github.com/Pylons/pyramid/pull/2827
- Allow streaming responses to be made from subclasses of
``pyramid.httpexceptions.HTTPException``. Previously the response would
be unrolled while testing for a body, making it impossible to stream
a response.
See https://github.com/Pylons/pyramid/pull/2863
Bug Fixes
---------
@@ -154,6 +164,9 @@ Deprecations
Documentation Changes
---------------------
- Replace Typographical Conventions with an enhanced Style Guide.
https://github.com/Pylons/pyramid/pull/2838
- Add pyramid_nacl_session to session factories.
See https://github.com/Pylons/pyramid/issues/2791
View
@@ -286,3 +286,5 @@ Contributors
- Keith Yang, 2016/07/22
- Moriyoshi Koizumi, 2016/11/20
- Mikko Ohtamaa, 2016/12/6
View
@@ -6,6 +6,7 @@
.. automodule:: pyramid.i18n
.. autoclass:: TranslationString
:noindex:
.. autofunction:: TranslationStringFactory
View
@@ -54,7 +54,7 @@ def nothing(*arg):
'repoze.sphinx.autointerface',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'sphinxcontrib.programoutput',
'sphinxcontrib.autoprogram',
# enable pylons_sphinx_latesturl when this branch is no longer "latest"
# 'pylons_sphinx_latesturl',
]
@@ -68,6 +68,7 @@ def nothing(*arg):
'pylonswebframework': ('http://docs.pylonsproject.org/projects/pylons-webframework/en/latest/', None),
'python': ('https://docs.python.org/3', None),
'pytest': ('http://pytest.org/latest/', None),
'sphinx': ('http://www.sphinx-doc.org/en/latest', None),
'sqla': ('http://docs.sqlalchemy.org/en/latest', None),
'tm': ('http://docs.pylonsproject.org/projects/pyramid-tm/en/latest/', None),
'toolbar': ('http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest', None),
@@ -119,6 +120,9 @@ def nothing(*arg):
# unit titles (such as .. function::).
add_module_names = False
# Add support for todo items
todo_include_todos = True
# The name of the Pygments (syntax highlighting) style to use.
#pygments_style = book and 'bw' or 'tango'
if book:
@@ -191,10 +195,10 @@ def nothing(*arg):
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
latex_use_parts = True
latex_toplevel_sectioning = "section"
# If false, no module index is generated.
latex_use_modindex = False
latex_domain_indices = False
## Say, for a moment that you have a twoside document that needs a 3cm
## inner margin to allow for binding and at least two centimetres the
View

This file was deleted.

Oops, something went wrong.
View
@@ -213,13 +213,14 @@ Copyright, Trademarks, and Attributions
copyright
Typographical Conventions
=========================
Typographical Conventions and Style Guide
=========================================
.. toctree::
:maxdepth: 1
conventions
typographical-conventions
style-guide
Index and Glossary
View
@@ -15,7 +15,7 @@ Front Matter
:maxdepth: 1
copyright
conventions
style-guide
authorintro
designdefense
View
@@ -1065,3 +1065,25 @@ hard drive, you should install the
`watchdog <http://pythonhosted.org/watchdog/>` package in development.
``hupper`` will automatically use ``watchdog`` to more efficiently poll the
filesystem.
Monitoring Custom Files
~~~~~~~~~~~~~~~~~~~~~~~
By default, ``pserve --reload`` will monitor all imported Python code
(everything in ``sys.modules``) as well as the config file passed to
``pserve`` (e.g. ``development.ini``). You can instruct ``pserve`` to watch
other files for changes as well by defining a ``[pserve]`` section in your
configuration file. For example, let's say your application loads the
``favicon.ico`` file at startup and stores it in memory to efficiently
serve it many times. When you change it you want ``pserve`` to restart:
.. code-block:: ini
[pserve]
watch_files =
myapp/static/favicon.ico
Paths may be absolute or relative to the configuration file. They may also
be an :term:`asset specification`. These paths are passed to ``hupper`` which
has some basic support for globbing. Acceptable glob patterns depend on the
version of Python being used.
View
@@ -1,13 +1,9 @@
.. index::
single: pcreate; --help
single: pcreate; --help
.. _pcreate_script:
``pcreate``
-----------
.. program-output:: pcreate --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.pcreate:PCreateCommand.parser
:prog: pcreate
.. seealso:: :ref:`creating_a_project`
@@ -1,13 +1,9 @@
.. index::
single: pdistreport; --help
single: pdistreport; --help
.. _pdistreport_script:
``pdistreport``
---------------
.. program-output:: pdistreport --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.pdistreport:get_parser()
:prog: pdistreport
.. seealso:: :ref:`showing_distributions`
View
@@ -1,13 +1,9 @@
.. index::
single: prequest; --help
single: prequest; --help
.. _prequest_script:
``prequest``
------------
.. program-output:: prequest --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.prequest:PRequestCommand.parser
:prog: prequest
.. seealso:: :ref:`invoking_a_request`
@@ -3,11 +3,7 @@
.. _proutes_script:
``proutes``
-----------
.. program-output:: proutes --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.proutes:PRoutesCommand.parser
:prog: proutes
.. seealso:: :ref:`displaying_application_routes`
View
@@ -3,11 +3,7 @@
.. _pserve_script:
``pserve``
----------
.. program-output:: pserve --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.pserve:PServeCommand.parser
:prog: pserve
.. seealso:: :ref:`running_the_project_application`
View
@@ -3,11 +3,7 @@
.. _pshell_script:
``pshell``
----------
.. program-output:: pshell --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.pshell:PShellCommand.parser
:prog: pshell
.. seealso:: :ref:`interactive_shell`
@@ -3,11 +3,7 @@
.. _ptweens_script:
``ptweens``
-----------
.. program-output:: ptweens --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.ptweens:PTweensCommand.parser
:prog: ptweens
.. seealso:: :ref:`displaying_tweens`
View
@@ -3,11 +3,7 @@
.. _pviews_script:
``pviews``
----------
.. program-output:: pviews --help
:prompt:
:shell:
.. autoprogram:: pyramid.scripts.pviews:PViewsCommand.parser
:prog: pviews
.. seealso:: :ref:`displaying_matching_views`
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.