Skip to content
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

Scheduled weekly dependency update for week 26 #337

wants to merge 151 commits into from


None yet
1 participant
Copy link

commented Jun 26, 2017


Here's a list of all the updates bundled in this pull request. I've added some links to make it easier for you to find all the information you need.

argparse 1.2.1 » 1.4.0 PyPI | Changelog | Repo
Beaker 1.8.0 » 1.9.0 PyPI | Changelog | Docs
cnx-db 0.3.0 » 0.7.0 PyPI | Changelog | Repo
db-migrator 0.1.4 » 0.2.0 PyPI | Changelog | Repo
Jinja2 2.7.3 » 2.9.6 PyPI | Changelog | Homepage
lxml 3.4.0 » 3.8.0 PyPI | Changelog | Homepage | Bugtracker
MarkupSafe 0.23 » 1.0 PyPI | Changelog | Repo
parsimonious 0.6.1 » 0.7.0 PyPI | Repo
Paste » 2.0.3 PyPI | Changelog | Homepage
PasteScript 1.7.5 » 2.0.2 PyPI | Changelog | Homepage
psycopg2 2.5.4 » 2.7.1 PyPI | Changelog | Homepage | Docs
pyramid 1.6a2 » 1.9b1 PyPI | Changelog | Homepage
pyramid-jinja2 2.6.2 » 2.7 PyPI | Changelog | Repo
pyramid-multiauth 0.8.0 » 0.9.0 PyPI | Changelog | Repo
python-memcached 1.53 » 1.58 PyPI | Homepage
requests 2.7.0 » 2.18.1 PyPI | Changelog | Homepage
tzlocal 1.1.3 » 1.4 PyPI | Changelog | Repo
venusian 1.0 » 1.1.0 PyPI | Changelog | Homepage
webencodings 0.5 » 0.5.1 PyPI | Repo | Docs
WebOb 1.5.0a1 » 1.7.2 PyPI | Changelog | Homepage
zope.deprecation 4.1.2 » 4.2.0 PyPI | Changelog | Homepage
zope.interface 4.1.2 » 4.4.2 PyPI | Changelog | Repo
cnx-publishing 0.6.0 » 0.8.0 PyPI | Changelog | Repo
cssselect 0.9.1 » 1.0.1 PyPI | Changelog | Repo | Docs


argparse 1.2.1 -> 1.4.0


  • make argparse behave for default args aka
    issue 12776, 11839: call argparse type function only once.
  • move to github:ThomasWaldmann/argparse
  • add TW as maintainer / give TW's email
  • add some usecase to README, clarify issue tracking
  • add a note to tox.ini about testing on dead snakes


  • added aliases support (thanks to Roland Kammerer!) + tests for it
  • use tox for testing python >= 2.6
  • tests successfully on 3.4 also (without random hash seed)
  • added argparse.external_lib = True so one can test one is really using /
    testing the external library (and not the builtin one in stdlib of recent


  • added universal wheel support, built, signed and uploaded with:
    python sdist bdist_wheel upload --identity="Thomas Waldmann" --sign
  • host the files on pypi

Beaker 1.8.0 -> 1.9.0



  • Beaker now provides builtin ext:mongodb and ext:redis namespace managers.
    Both come with a Synchronizer implemented on the storage backend instead of relying on file one.
  • Fixed an issue where cookie options like Secure, Domain and so on where lost.
  • Improved support for cache entries expiration. NamespaceManagers that support it will expire their key automatically.
  • Pycryptodome can be used instead of pycrypto.
  • An issue with Cookie module import on case insensitive file systems should have been resolved.
  • Cryptography module is now as a crypto function provider instead of pycrypto



  • Sessions have a new option save_accessed_time which defaults to true for
    backwards compatibility. Set to false to tell beaker not to update
    _accessed_time if the session hasn't been changed, for non-cookie sessions
    stores. This lets you avoid needless datastore writes. _accessed_time will
    always be updated when the session is intentionally saved.
  • data_serializer parameter in Session accepts a custom object with dumps and loads methods.
  • Fixed a TypeError in exception reporting when failing to load a NamespaceManager
  • Allow to change Cookie Expiration from a value back to None, previously it had no effect.
  • Allow SessionMiddleware to setup a custom Session class through the session_class argument.
  • Added invalidate_corrupt option to CookieSessions too for valid cookies containing invalid data.

cnx-db 0.3.0 -> 0.7.0


  • Add association table for celery results to documents.


  • Share this project's pytest fixtures for use in dependent projects.
  • Create the cnxdb.contrib package.
  • Fix to exclude subcollections from the search query.


  • Fix to only create the moduletags index when it does not exist.


  • Add an index for moduletags to improve search.


  • Fix to speedup in-book search for baked content.


  • Include a migration for the post_publication channel payload change.


  • Add a payload to the post_publication channel notification.
  • Fix tests by explicitly including cnx-archive.
  • Fix tests to only run trigger tests within Python 2.7.


  • Add a Make recipe for building and serving this project/component.
  • Correct styling, documentation and test running code.
  • Add the Make interface for common developer tasks.
  • Install versioneer for version management via git.
  • Add SQL function and trigger to rebake on baking recipe insert or update.
  • Update SQL manifest to add subcollection uuid SQL functions.

db-migrator 0.1.4 -> 0.2.0


  • Add psycopg2 wait callback so ctrl-c stops a migration
  • Implement mark a migration as deferred: mark -d
  • Add --wide option for list to display the full migration name
  • Update command usage in README
  • Add help message to dbmigrator commands
  • Warn user with dbmigrator init --help if schema migrations doesn't exist
  • Add CLI test for generating migrations

Jinja2 2.7.3 -> 2.9.6


(bugfix release, released on April 3rd 2017)

  • Fixed custom context behavior in fast resolve mode (675)


(bugfix release, released on January 28th 2017)

  • Restored the original repr of the internal _GroupTuple because this
    caused issues with ansible and it was an unintended change. (654)
  • Added back support for custom contexts that override the old resolve
    method since it was hard for people to spot that this could cause a
  • Correctly use the buffer for the else block of for loops. This caused
    invalid syntax errors to be caused on 2.x and completely wrong behavior
    on Python 3 (669)
  • Resolve an issue where the {% extends %} tag could not be used with
    async environments. (668)
  • Reduce memory footprint slightly by reducing our unicode database dump
    we use for identifier matching on Python 3 (666)
  • Fixed autoescaping not working for macros in async compilation mode. (671)


(bugfix release, released on January 10th 2017)

  • Solved some warnings for string literals. (646)
  • Increment the bytecode cache version which was not done due to an
    oversight before.
  • Corrected bad code generation and scoping for filtered loops. (649)
  • Resolved an issue where top-level output silencing after known extend
    blocks could generate invalid code when blocks where contained in if
    statements. (651)
  • Made the truncate.leeway default configurable to improve compatibility
    with older templates.


(bugfix release, released on January 8th 2017)

  • Restored the use of blocks in macros to the extend that was possible
    before. On Python 3 it would render a generator repr instead of
    the block contents. (645)
  • Set a consistent behavior for assigning of variables in inner scopes
    when the variable is also read from an outer scope. This now sets the
    intended behavior in all situations however it does not restore the
    old behavior where limited assignments to outer scopes was possible.
    For more information and a discussion see 641
  • Resolved an issue where block scoped would not take advantage of the
    new scoping rules. In some more exotic cases a variable overriden in a
    local scope would not make it into a block.
  • Change the code generation of the with statement to be in line with the
    new scoping rules. This resolves some unlikely bugs in edge cases. This
    also introduces a new internal With node that can be used by extensions.


(bugfix release, released on January 8th 2017)

  • Fixed a regression that caused for loops to not be able to use the same
    variable for the target as well as source iterator. (640)
  • Add support for a previously unknown behavior of macros. It used to be
    possible in some circumstances to explicitly provide a caller argument
    to macros. While badly buggy and unintended it turns out that this is a
    common case that gets copy pasted around. To not completely break backwards
    compatibility with the most common cases it's now possible to provide an
    explicit keyword argument for caller if it's given an explicit default.


(bugfix release, released on January 7th 2017)

  • Resolved a regression with call block scoping for macros. Nested caller
    blocks that used the same identifiers as outer macros could refer to the
    wrong variable incorrectly.


(codename Derivation, released on January 7th 2017)

  • Change cache key definition in environment. This fixes a performance
    regression introduced in 2.8.
  • Added support for generator_stop on supported Python versions
    (Python 3.5 and later)
  • Corrected a long standing issue with operator precedence of math operations
    not being what was expected.
  • Added support for Python 3.6 async iterators through a new async mode.
  • Added policies for filter defaults and similar things.
  • urlize now sets "rel noopener" by default.
  • Support attribute fallback for old-style classes in 2.x.
  • Support toplevel set statements in extend situations.
  • Restored behavior of Cycler for Python 3 users.
  • Subtraction now follows the same behavior as other operators on undefined
  • map and friends will now give better error messages if you forgot to
    quote the parameter.
  • Depend on MarkupSafe 0.23 or higher.
  • Improved the truncate filter to support better truncation in case
    the string is barely truncated at all.
  • Change the logic for macro autoescaping to be based on the runtime
    autoescaping information at call time instead of macro define time.
  • Ported a modified version of the tojson filter from Flask to Jinja2
    and hooked it up with the new policy framework.
  • Block sets are now marked safe by default.
  • On Python 2 the asciification of ASCII strings can now be disabled with
    the compiler.ascii_str policy.
  • Tests now no longer accept an arbitrary expression as first argument but
    a restricted one. This means that you can now properly use multiple
    tests in one expression without extra parentheses. In particular you can
    now write foo is divisibleby 2 or foo is divisibleby 3
    as you would expect.
  • Greatly changed the scoping system to be more consistent with what template
    designers and developers expect. There is now no more magic difference
    between the different include and import constructs. Context is now always
    propagated the same way. The only remaining differences is the defaults
    for with context and without context.
  • The with and autoescape tags are now built-in.
  • Added the new select_autoescape function which helps configuring better
    autoescaping easier.


(bugfix release, unreleased)

  • Fixed a runtime error in the sandbox when attributes of async generators
    were accessed.


(bugfix release, released on December 29th 2016)

  • Fixed the for_qs flag for urlencode.
  • Fixed regression when applying int to non-string values.
  • SECURITY: if the sandbox mode is used format expressions are now sandboxed
    with the same rules as in Jinja. This solves various information leakage
    problems that can occur with format strings.


(codename Replacement, released on July 26th 2015)

  • Added target parameter to urlize function.
  • Added support for followsymlinks to the file system loader.
  • The truncate filter now counts the length.
  • Added equalto filter that helps with select filters.
  • Changed cache keys to use absolute file names if available
    instead of load names.
  • Fixed loop length calculation for some iterators.
  • Changed how Jinja2 enforces strings to be native strings in
    Python 2 to work when people break their default encoding.
  • Added :func:make_logging_undefined which returns an undefined
    object that logs failures into a logger.
  • If unmarshalling of cached data fails the template will be
    reloaded now.
  • Implemented a block set tag.
  • Default cache size was increased to 400 from a low 50.
  • Fixed is number test to accept long integers in all Python versions.
  • Changed is number to accept Decimal as a number.
  • Added a check for default arguments followed by non-default arguments. This
    change makes {% macro m(x, y=1, z) %}...{% endmacro %} a syntax error. The
    previous behavior for this code was broken anyway (resulting in the default
    value being applied to y).
  • Add ability to use custom subclasses of jinja2.compiler.CodeGenerator and
    jinja2.runtime.Context by adding two new attributes to the environment
    (code_generator_class and context_class) (pull request 404).
  • added support for context/environment/evalctx decorator functions on
    the finalize callback of the environment.
  • escape query strings for urlencode properly. Previously slashes were not
    escaped in that place.
  • Add 'base' parameter to 'int' filter.

lxml 3.4.0 -> 3.8.0



Features added

  • ElementTree.write() has a new option doctype that writes out a
    doctype string before the serialisation, in the same way as tostring().
  • GH220: xmlfile allows switching output methods at an element level.
    Patch by Burak Arslan.
  • LP1595781, GH240: added a PyCapsule Python API and C-level API for
    passing externally generated libxml2 documents into lxml.
  • GH244: error log entries have a new property path with an XPath
    expression (if known, None otherwise) that points to the tree element
    responsible for the error. Patch by Bob Kline.
  • The namespace prefix mapping that can be used in ElementPath now injects
    a default namespace when passing a None prefix.

Bugs fixed

  • GH238: Character escapes were not hex-encoded in the xmlfile serialiser.
    Patch by matejcik.
  • GH229: fix for externally created XML documents. Patch by Theodore Dubois.
  • LP1665241, GH228: Form data handling in lxml.html no longer strips the
    option values specified in form attributes but only the text values.
    Patch by Ashish Kulkarni.
  • LP1551797: revert previous fix for XSLT error logging as it breaks
    multi-threaded XSLT processing.
  • LP1673355, GH233: fromstring() html5parser failed to parse byte strings.

Other changes

  • The previously undocumented docstring option in ElementTree.write()
    produces a deprecation warning and will eventually be removed.



Bugs fixed

  • LP1551797: revert previous fix for XSLT error logging as it breaks
    multi-threaded XSLT processing.
  • LP1673355, GH233: fromstring() html5parser failed to parse byte strings.



Bugs fixed

  • GH218 was ineffective in Python 3.
  • GH222: lxml.html.submit_form() failed in Python 3.
    Patch by Jakub Wilk.



  • GH220: xmlfile allows switching output methods at an element level.
    Patch by Burak Arslan.

Bugs fixed

  • Work around installation problems in recent Python 2.7 versions
    due to FTP download failures.
  • GH219: xmlfile.element() was not properly quoting attribute values.
    Patch by Burak Arslan.
  • GH218: xmlfile.element() was not properly escaping text content of
    script/style tags. Patch by Burak Arslan.



  • No source changes, issued only to solve problems with the
    binary packages released for 3.7.0.



Features added

  • GH217: XMLSyntaxError now behaves more like its SyntaxError
    baseclass. Patch by Philipp A.
  • GH216: HTMLParser() now supports the same collect_ids parameter
    as XMLParser(). Patch by Burak Arslan.
  • GH210: Allow specifying a serialisation method in xmlfile.write().
    Patch by Burak Arslan.
  • GH203: New option default_doctype in HTMLParser that allows
    disabling the automatic doctype creation. Patch by Shadab Zafar.
  • GH201: Calling the method .set('attrname') without value argument
    (or None) on HTML elements creates an attribute without value that
    serialises like <div attrname></div>. Patch by Daniel Holth.
  • GH197: Ignore form input fields in form_values() when they are
    marked as disabled in HTML. Patch by Kristian Klemon.

Bugs fixed

  • GH206: File name and line number were missing from XSLT error messages.
    Patch by Marcus Brinkmann.

Other changes

  • Log entries no longer allow anything but plain string objects as message text
    and file name.
  • zlib is included in the list of statically built libraries.



  • GH204, LP1614693: build fix for MacOS-X.



  • LP1614603: change linker flags to build multi-linux wheels



  • LP1614603: release without source changes to provide cleanly built Linux wheels



Features added

  • GH180: Separate option inline_style for Cleaner that only removes style
    attributes instead of all styles. Patch by Christian Pedersen.
  • GH196: Windows build support for Python 3.5. Contribution by Maximilian Hils.

Bugs fixed

  • GH199: Exclude file fields from FormElement.form_values (as browsers do).
    Patch by Tomas Divis.
  • GH198, LP1568167: Try to provide base URL from Resolver.resolve_string().
    Patch by Michael van Tellingen.
  • GH191: More accurate float serialisation in objectify.FloatElement.
    Patch by Holger Joukl.
  • LP1551797: Repair XSLT error logging. Patch by Marcus Brinkmann.



Features added

  • GH187: Now supports (only) version 5.x and later of PyPy.
    Patch by Armin Rigo.
  • GH181: Direct support for .rnc files in RelaxNG() if rnc2rng
    is installed. Patch by Dirkjan Ochtman.

Bugs fixed

  • GH189: Static builds honour FTP proxy configurations when downloading
    the external libs. Patch by Youhei Sakurai.
  • GH186: Soupparser failed to process entities in Python 3.x.
    Patch by Duncan Morris.
  • GH185: Rare encoding related TypeError on import was fixed.
    Patch by Petr Demin.



Bugs fixed

  • Unicode string results failed XPath queries in PyPy.
  • LP1497051: HTML target parser failed to terminate on exceptions
    and continued parsing instead.
  • Deprecated API usage in doctestcompare.



Features added

  • cleanup_namespaces() accepts a new argument keep_ns_prefixes
    that does not remove definitions of the provided prefix-namespace
    mapping from the tree.
  • cleanup_namespaces() accepts a new argument top_nsmap that
    moves definitions of the provided prefix-namespace mapping to the
    top of the tree.
  • LP1490451: Element objects gained a cssselect() method as
    known from lxml.html. Patch by Simon Sapin.
  • API functions and methods behave and look more like Python functions,
    which allows introspection on them etc. One side effect to be aware of
    is that the functions now bind as methods when assigned to a class
    variable. A quick fix is to wrap them in staticmethod() (as for
    normal Python functions).
  • ISO-Schematron support gained an option error_finder that allows
    passing a filter function for picking validation errors from reports.
  • LP1243600: Elements in lxml.html gained a classes property
    that provides a set-like interface to the class attribute.
    Original patch by masklinn.
  • LP1341964: The soupparser now handles DOCTYPE declarations, comments
    and processing instructions outside of the root element.
    Patch by Olli Pottonen.
  • LP1421512: The docinfo of a tree was made editable to allow
    setting and removing the public ID and system ID of the DOCTYPE.
    Patch by Olli Pottonen.
  • LP1442427: More work-arounds for quirks and bugs in pypy and pypy3.
  • lxml.html.soupparser now uses BeautifulSoup version 4 instead
    of version 3 if available.

Bugs fixed

  • Memory errors that occur during tree adaptations (e.g. moving subtrees
    to foreign documents) could leave the tree in a crash prone state.
  • Calling process_children() in an XSLT extension element without
    an output_parent argument failed with a TypeError.
    Fix by Jens Tröger.
  • GH162: Image data in HTML data URLs is considered safe and
    no longer removed by lxml.html.clean JavaScript cleaner.
  • GH166: Static build could link libraries in wrong order.
  • GH172: Rely a bit more on libxml2 for encoding detection rather than
    rolling our own in some cases. Patch by Olli Pottonen.
  • GH159: Validity checks for names and string content were tightened
    to detect the use of illegal characters early. Patch by Olli Pottonen.
  • LP1421921: Comments/PIs before the DOCTYPE declaration were not
    serialised. Patch by Olli Pottonen.
  • LP659367: Some HTML DOCTYPE declarations were not serialised.
    Patch by Olli Pottonen.
  • LP1238503: lxml.doctestcompare is now consistent with stdlib's doctest
    in how it uses + and - to refer to unexpected and missing output.
  • Empty prefixes are explicitly rejected when a namespace mapping is used
    with ElementPath to avoid hiding bugs in user code.
  • Several problems with PyPy were fixed by switching to Cython 0.23.



Bugs fixed

  • An ElementTree compatibility test added in lxml 3.4.3 that failed in
    Python 3.4+ was removed again.



Bugs fixed

  • Expression cache in ElementPath was ignored. Fix by Changaco.
  • LP1426868: Passing a default namespace and a prefixed namespace mapping
    as nsmap into xmlfile.element() raised a TypeError.
  • LP1421927: DOCTYPE system URLs were incorrectly quoted when containing
    double quotes. Patch by Olli Pottonen.
  • LP1419354: meta-redirect URLs were incorrectly processed by
    iterlinks() if preceded by whitespace.



Bugs fixed

  • LP1415907: Crash when creating an XMLSchema from a non-root element
    of an XML document.
  • LP1369362: HTML cleaning failed when hitting processing instructions
    with pseudo-attributes.
  • CDATA() wrapped content was rejected for tail text.
  • CDATA sections were not serialised as tail text of the top-level element.



Features added

  • New htmlfile HTML generator to accompany the incremental xmlfile
    serialisation API. Patch by Burak Arslan.

Bugs fixed

  • lxml.sax.ElementTreeContentHandler did not initialise its superclass.

MarkupSafe 0.23 -> 1.0


  • Fixed custom types not invoking __unicode__ when used
    with format().
  • Added __version__ module attribute
  • Improve unescape code to leave lone ampersands alone.

Paste -> 2.0.3




  • Fix for six dependency: move the six dependency from extras_require
    to install_requires.
  • Port paste.proxy to Python 3.
  • Fix paste.exceptions.serial_number_generator.hash_identifier() on Python 3.
  • Fix paste.util.threadedprint.uninstall(). Rename duplicated uninstall()
    function to uninstall_stdin() and fix typo in variable name (_oldstin =>
  • Add README.rst file.


  • Experimental Python 3 support.
  • paste now requires the six module.
  • Drop support of Python 2.5 and older.
  • Fixed egg:Pastecgi
  • In paste.httpserver: give a 100 Continue response even when the
    server has been configured as an HTTP/1.0 server (clients may send
    Expect: 100-Continue before they know the version), and wrap
    100 Continue environ['wsgi.input'] files with LimitedLengthFile
    just like normal request bodies are wrapped, keeping WSGI
    applications from over-reading from the socket.
  • Fixed parsing of paths beginning with multiple forward slashes.
  • Add tox.ini to run tests with tox on Python 2.6, 2.7 and 3.4.

PasteScript 1.7.5 -> 2.0.2


  • Issue 20: Fix "paster points --list" on Python 3.
  • Fix cgi_server on Python 3.
  • Fix usage of the sort() method on Python 3.
  • Fix grep on Python 3.


  • Fix --help command on Python 3. Patch written by Atsushi Odagiri (aodag).
  • Fix "paster create --template=basic_package test" command on Python 3.
    Patch written by Atsushi Odagiri (aodag).
  • Fix error when 'paster create --list-template' on Python 3. Patch written by
  • Create universal wheel package.


  • Experimental Python 3 support.
  • six module is now required.
  • Drop support of Python 2.5 and older

psycopg2 2.5.4 -> 2.7.1



  • Ignore !None arguments passed to ~psycopg2.connect() and
    ~psycopg2.extensions.make_dsn() (🎫517).
  • OpenSSL upgraded from major version 0.9.8 to 1.0.2 in the Linux wheel
    packages (🎫518).
  • Fixed build with libpq versions < 9.3 (🎫520).


New features:

  • Added ~psycopg2.sql module to generate SQL dynamically (🎫308).
  • Added :ref:replication-support (🎫322). Main authors are
    Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you.
  • Added ~psycopg2.extensions.parse_dsn() and
    ~psycopg2.extensions.make_dsn() functions (🎟321, 363).
    ~psycopg2.connect() now can take both dsn and keyword arguments, merging
    them together.
  • Added ~psycopg2.__libpq_version__ and
    ~psycopg2.extensions.libpq_version() to inspect the version of the
    libpq library the module was compiled/loaded with
    (🎟35, 323).
  • The attributes ~connection.notices and ~connection.notifies can be
    customized replacing them with any object exposing an !append() method
  • Adapt network types to ipaddress objects when available. When not
    enabled, convert arrays of network types to lists by default. The old !Inet
    adapter is deprecated (🎟317, 343, 387).
  • Added ~psycopg2.extensions.quote_ident() function (🎫359).
  • Added ~connection.get_dsn_parameters() connection method (🎫364).
  • ~cursor.callproc() now accepts a dictionary of parameters (🎫381).
  • Give precedence to !__conform__() over superclasses to choose an object
    adapter (🎫456).
  • Using Python C API decoding functions and codecs caching for faster
    unicode encoding/decoding (🎫473).
  • ~cursor.executemany() slowness addressed by
    ~psycopg2.extras.execute_batch() and ~psycopg2.extras.execute_values()
  • Added async_ as an alias for async to support Python 3.7 where
    async will become a keyword (🎫495).
  • Unless in autocommit, do not use :sql:default_transaction_* settings to
    control the session characteristics as it may create problems with external
    connection pools such as pgbouncer; use :sql:BEGIN options instead
  • ~connection.isolation_level is now writable and entirely separated from
    ~connection.autocommit; added ~connection.readonly,
    ~connection.deferrable writable attributes.

Bug fixes:

  • Fixed error caused by missing decoding ~psycopg2.extras.LoggingConnection
  • Fixed integer overflow in :sql:interval seconds (🎫512).

Other changes:

  • Dropped support for Python 2.5 and 3.1.
  • Dropped support for client library older than PostgreSQL 9.1 (but older
    server versions are still supported).
  • ~connection.isolation_level doesn't read from the database but will return
    ~psycopg2.extensions.ISOLATION_LEVEL_DEFAULT if no value was set on the
  • Empty arrays no more converted into lists if they don't have a type attached



  • Throw an exception trying to pass NULL chars as parameters
  • Make ~psycopg2.extras.Range objects picklable (🎫462).



  • Fixed inconsistent state in externally closed connections
    (🎟263, 311, 443).
  • Report the server response status on errors (such as 🎫281).
  • Raise !NotSupportedError on unhandled server response status
  • Allow overriding string adapter encoding with no connection (🎫331).
  • The ~psycopg2.extras.wait_select callback allows interrupting a
    long-running query in an interactive shell using :kbd:Ctrl-C
  • Fixed !PersistentConnectionPool on Python 3 (🎫348).
  • Fixed segfault on repr() of an unitialized connection (🎫361).
  • Allow adapting bytes using ~psycopg2.extensions.QuotedString on Python 3
  • Added support for setuptools/wheel (🎫370).
  • Fix build on Windows with Python 3.5, VS 2015 (🎫380).
  • Fixed !errorcodes.lookup initialization thread-safety (🎫382).
  • Fixed !read() exception propagation in copy_from (🎫412).
  • Fixed possible NULL TZ decref (🎫424).
  • ~psycopg2.errorcodes map updated to PostgreSQL 9.5.



  • Lists consisting of only None are escaped correctly (🎫285).
  • Fixed deadlock in multithread programs using OpenSSL (🎫290).
  • Correctly unlock the connection after error in flush (🎫294).
  • Fixed !MinTimeLoggingCursor.callproc() (🎫309).
  • Added support for MSVC 2015 compiler (🎫350).


New features:

  • Added support for large objects larger than 2GB. Many thanks to Blake Rouse
    and the MAAS Team for the feature development.
  • Python time objects with a tzinfo specified and PostgreSQL :sql:timetz
    data are converted into each other (🎫272).

Bug fixes:

  • Json adapter's !str() returns the adapted content instead of the !repr()



  • Named cursors used as context manager don't swallow the exception on exit
  • cursor.description can be pickled (🎫265).
  • Propagate read error messages in COPY FROM (🎫270).
  • PostgreSQL time 24:00 is converted to Python 00:00 (🎫278).

pyramid 1.6a2 -> 1.9b1



  • Add an informative error message when unknown predicates are supplied. The
    new message suggests alternatives based on the list of known predicates.
    See Pylons/pyramid#3054
  • Added integrity attributes for JavaScripts in cookiecutters, scaffolds, and
    resulting source files in tutorials.
    See Pylons/pyramid#2548
  • Update RELEASING.txt for updating cookiecutters. Change cookiecutter URLs to
    use shortcut.
    See Pylons/pyramid#3042
  • Ensure the correct threadlocals are pushed during view execution when
    invoked from request.invoke_exception_view.
    See Pylons/pyramid#3060
  • Fix a bug in which failed to return
    a valid iterator in its __iter__ implementation.
    See Pylons/pyramid#3074
  • Normalize the permission results to a proper class hierarchy. is now a subclass of and is now a
    subclass of
    See Pylons/pyramid#3084
  • Add a quote_via argument to pyramid.encode.urlencode to follow
    the stdlib's version and enable custom quoting functions.
    See Pylons/pyramid#3088
  • Support _query=None and _anchor=None in request.route_url as well
    as query=None and anchor=None in request.resource_url.
    Previously this would cause an ? and a ``, respectively, in the url
    with nothing after it. Now the unnecessary parts are dropped from the
    generated URL. See Pylons/pyramid#3034
  • Revamp the IRouter API used by IExecutionPolicy to force
    pushing/popping the request threadlocals. The
    IRouter.make_request(environ) API has been replaced by
    IRouter.request_context(environ) which should be used as a context
    manager. See Pylons/pyramid#3086



Backward Incompatibilities

  • request.exception and request.exc_info will only be set if the
    response was generated by the EXCVIEW tween. This is to avoid any confusion
    where a response was generated elsewhere in the pipeline and not in
    direct relation to the original exception. If anyone upstream wants to
    catch and render responses for exceptions they should set
    request.exception and request.exc_info themselves to indicate
    the exception that was squashed when generating the response.

Similar behavior occurs with request.invoke_exception_view in which
the exception properties are set to reflect the exception if a response
is successfully generated by the method.

This is a very minor incompatibility. Most tweens right now would give
priority to the raised exception and ignore request.exception. This
change just improves and clarifies that bookkeeping by trying to be
more clear about the relationship between the response and its squashed
exception. See Pylons/pyramid#3029 and



Major Features

  • The file format used by all p* command line scripts such as pserve
    and pshell, as well as the pyramid.paster.bootstrap function
    is now replaceable thanks to a new dependency on
    plaster &lt;;_.

For now, Pyramid is still shipping with integrated support for the
PasteDeploy INI format by depending on the
plaster_pastedeploy &lt;;_
binding library. This may change in the future.

See Pylons/pyramid#2985

  • Added an execution policy hook to the request pipeline. An execution
    policy has the ability to control creation and execution of the request
    objects before they enter the rest of the pipeline. This means for a single
    request environ the policy may create more than one request object.

The first library to use this feature is
pyramid_retry &lt;;_.

See Pylons/pyramid#2964

  • CSRF support has been refactored out of sessions and into its own
    independent API in the pyramid.csrf module. It supports a pluggable
    pyramid.interfaces.ICSRFStoragePolicy which can be used to define your
    own mechanism for generating and validating CSRF tokens. By default,
    Pyramid continues to use the pyramid.csrf.LegacySessionCSRFStoragePolicy
    that uses the request.session.get_csrf_token and
    request.session.new_csrf_token APIs under the hood to preserve
    compatibility. Two new policies are shipped as well,
    pyramid.csrf.SessionCSRFStoragePolicy and
    pyramid.csrf.CookieCSRFStoragePolicy which will store the CSRF tokens
    in the session and in a standalone cookie, respectively. The storage policy
    can be changed by using the new
    pyramid.config.Configurator.set_csrf_storage_policy config directive.

CSRF tokens should be used via the new pyramid.csrf.get_csrf_token,
pyramid.csrf.new_csrf_token and pyramid.csrf.check_csrf_token APIs
in order to continue working if the storage policy is changed. Also, the
pyramid.csrf.get_csrf_token function is injected into templates to be
used conveniently in UI code.

See Pylons/pyramid#2854 and

Minor Features

  • Support an open_url config setting in the pserve section of the
    config file. This url is used to open a web browser when pserve --browser
    is invoked. When this setting is unavailable the pserve script will
    attempt to guess the port the server is using from the
    server:&lt;server_name&gt; section of the config file but there is no
    requirement that the server is being run in this format so it may fail.
    See Pylons/pyramid#2984
  • The pyramid.config.Configurator can now be used as a context manager
    which will automatically push/pop threadlocals (similar to
    config.begin() and config.end()). It will also automatically perform
    a config.commit() and thus it is only recommended to be used at the
    top-level of your app. See Pylons/pyramid#2874
  • The threadlocals are now available inside any function invoked via
    config.include. This means the only config-time code that cannot rely
    on threadlocals is code executed from non-actions inside the main. This
    can be alleviated by invoking config.begin() and config.end()
    appropriately or using the new context manager feature of the configurator.
    See Pylons/pyramid#2989

Bug Fixes

  • HTTPException's accepts a detail kwarg that may be used to pass additional
    details to the exception. You may now pass objects so long as they have a
    valid str method. See Pylons/pyramid#2951
  • Fix a reference cycle causing memory leaks in which the registry
    would keep a Configurator instance alive even after the configurator
    was discarded. Another fix was also added for the global_registries
    object in which the registry was stored in a closure preventing it from
    being deallocated. See Pylons/pyramid#2967
  • Fix a bug directly invoking pyramid.scripts.pserve.main with the
    --reload option in which sys.argv is always used in the subprocess
    instead of the supplied argv.
    See Pylons/pyramid#2962


  • Pyramid currently depends on plaster_pastedeploy to simplify the
    transition to plaster by maintaining integrated support for INI files.
    This dependency on plaster_pastedeploy should be considered subject to
    Pyramid's deprecation policy and may be removed in the future.
    Applications should depend on the appropriate plaster binding to satisfy
    their needs.
  • Retrieving CSRF token from the session has been deprecated in favor of
    equivalent methods in the pyramid.csrf module. The CSRF methods
    (ISession.get_csrf_token and ISession.new_csrf_token) are no longer
    required on the ISession interface except when using the default

Also, pyramid.session.check_csrf_token is now located at

See Pylons/pyramid#2854 and

Documentation Changes

  • Added the execution policy to the routing diagram in the Request Processing
    chapter. See Pylons/pyramid#2993



  • No major changes from 1.8b1.




  • Added an override option to config.add_translation_dirs to allow
    later calls to place translation directories at a higher priority than
    earlier calls. See Pylons/pyramid#2902

Documentation Changes

  • Improve registry documentation to discuss uses as a component registry
    and as a dictionary. See Pylons/pyramid#2893
  • Fix unittests in wiki2 to work without different dependencies between
    py2 and py3. See Pylons/pyramid#2899
  • Update Windows documentation to track newer Python 3 improvements to the
    installer. See Pylons/pyramid#2900



Backward Incompatibilities

  • Support for the IContextURL interface that was deprecated in Pyramid 1.3
    has been removed. See Pylons/pyramid#2822
  • Following the Pyramid deprecation period (1.6 -> 1.8),
    daemon support for pserve has been removed. This includes removing the
    daemon commands (start, stop, restart, status) as well as the following
    arguments: --daemon, --pid-file, --log-file,
    --monitor-restart, --status, --user, --group,

To run your server as a daemon you should use a process manager instead of

See Pylons/pyramid#2615

  • pcreate is now interactive by default. You will be prompted if a file
    already exists with different content. Previously if there were similar
    files it would silently skip them unless you specified --interactive
    or --overwrite.
    See Pylons/pyramid#2775
  • Removed undocumented argument cachebust_match from
    pyramid.static.static_view. This argument was shipped accidentally
    in Pyramid 1.6. See Pylons/pyramid#2681
  • Change static view to avoid setting the Content-Encoding response header
    to an encoding guessed using Python's mimetypes module. This was causing
    clients to decode the content of gzipped files when downloading them. The
    client would end up with a foo.txt.gz file on disk that was already
    decoded, thus should really be foo.txt. Also, the Content-Encoding
    should only have been used if the client itself broadcast support for the
    encoding via Accept-Encoding request headers.
    See Pylons/pyramid#2810
  • Settings are no longer accessible as attributes on the settings object
    (e.g. This was deprecated in Pyramid 1.2.
    See Pylons/pyramid#2823


  • pcreate learned about --package-name to allow you to create a new
    project in an existing folder with a different package name than the project
    name. See Pylons/pyramid#2783
  • The _get_credentials private method of BasicAuthAuthenticationPolicy
    has been extracted into standalone function extract_http_basic_credentials
    in pyramid.authentication module, this function extracts HTTP Basic
    credentials from a request object, and returns them as a named tuple.
    See Pylons/pyramid#2662
  • Pyramid 1.4 silently dropped a feature of the configurator that has been
    restored. It's again possible for action discriminators to conflict across
    different action orders.
    See Pylons/pyramid#2757
  • pyramid.paster.bootstrap and its sibling pyramid.scripting.prepare
    can now be used as context managers to automatically invoke the closer
    and pop threadlocals off of the stack to prevent memory leaks.
    See Pylons/pyramid#2760
  • Added pyramid.config.Configurator.add_exception_view and the
    pyramid.view.exception_view_config decorator. It is now possible using
    these methods or via the new exception_only=True option to add_view
    to add a view which will only be matched when handling an exception.
    Previously any exception views were also registered for a traversal
    context that inherited from the exception class which prevented any
    exception-only optimizations.
    See Pylons/pyramid#2660
  • Added the exception_only boolean to
    pyramid.interfaces.IViewDeriverInfo which can be used by view derivers
    to determine if they are wrapping a view which only handles exceptions.
    This means that it is no longer necessary to perform request-time checks
    for request.exception to determine if the view is handling an exception
  • the pipeline can be optimized at config-time.
    See Pylons/pyramid#2660
  • pserve should now work with gevent and other workers that need
    to monkeypatch the process, assuming the server and / or the app do so
    as soon as possible before importing the rest of pyramid.
    See Pylons/pyramid#2797
  • Pyramid no longer copies the settings object passed to the
    pyramid.config.Configurator(settings=). The original dict is kept.
    See Pylons/pyramid#2823
  • The csrf trusted origins setting may now be a whitespace-separated list of
    domains. Previously only a python list was allowed. Also, it can now be set
    using the PYRAMID_CSRF_TRUSTED_ORIGINS environment variable similar to
    other settings. See Pylons/pyramid#2823
  • pserve --reload now uses the
    hupper &lt;;
    library to monitor file changes. This comes with many improvements:
  • If the watchdog &lt;;_ package is
    installed then monitoring will be done using inotify instead of
    cpu and disk-intensive polling.
  • The monitor is now a separate process that will not crash and starts up
    before any of your code.
  • The monitor will not restart the process after a crash until a file is
  • The monitor works on windows.
  • You can now trigger a reload manually from a pyramid view or any other
    code via hupper.get_reloader().trigger_reload(). Kind of neat.
  • You can trigger a reload by issuing a SIGHUP to the monitor process.

See Pylons/pyramid#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 Pylons/pyramid#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 Pylons/pyramid#2863
  • Update starter, alchemy and zodb scaffolds to support IPv6 by using the
    new listen directives in waitress.
    See Pylons/pyramid#2853
  • All p* scripts now use argparse instead of optparse. This improves their
    --help output as well as enabling nicer documentation of their options.
    See Pylons/pyramid#2864
  • Any deferred configuration action registered via config.action may now
    depend on threadlocal state, such as asset overrides, being active when
    the action is executed.
    See Pylons/pyramid#2873
  • Asset specifications for directories passed to
    config.add_translation_dirs now support overriding the entire asset
    specification, including the folder name. Previously only the package name
    was supported and the folder would always need to have the same name.
    See Pylons/pyramid#2873
  • config.begin() will propagate the current threadlocal request through
    as long as the registry is the same. For example:

.. code-block:: python

request = Request.blank(...)
config.begin(request)   pushes a request
config.begin()          propagates the previous request through unchanged
assert get_current_request() is request

See Pylons/pyramid#2873

  • Added a new callback option to config.set_default_csrf_options which
    can be used to determine per-request whether CSRF checking should be enabled
    to allow for a mix authentication methods. Only cookie-based methods
    generally require CSRF checking.
    See Pylons/pyramid#2778

Bug Fixes

  • Fixed bug in proutes such that it now shows the correct view when a
    class and attr is involved.
    See: Pylons/pyramid#2687
  • Fix a FutureWarning in Python 3.5 when using re.split on the
    format setting to the proutes script.
    See Pylons/pyramid#2714
  • Fix a RuntimeWarning emitted by WebOb when using arbitrary objects
    as the userid in the AuthTktAuthenticationPolicy. This is now caught
    by the policy and the object is serialized as a base64 string to avoid
    the cryptic warning. Since the userid will be read back as a string on
    subsequent requests a more useful warning is emitted encouraging you to
    use a primitive type instead.
    See Pylons/pyramid#2715
  • Pyramid 1.6 introduced the ability for an action to invoke another action.
    There was a bug in the way that config.add_view would interact with
    custom view derivers introduced in Pyramid 1.7 because the view's
    discriminator cannot be computed until view derivers and view predicates
    have been created in earlier orders. Invoking an action from another action
    would trigger an unrolling of the pipeline and would compute discriminators
    before they were ready. The new behavior respects the order of the action
    and ensures the discriminators are not computed until dependent actions
    from previous orders have executed.
    See Pylons/pyramid#2757
  • Fix bug in i18n where the default domain would always use the Germanic plural
    style, even if a different plural function is defined in the relevant
    messages file. See Pylons/pyramid#2859
  • The config.override_asset method now occurs during
    pyramid.config.PHASE1_CONFIG such that it is ordered to execute before
    any calls to config.add_translation_dirs.
    See Pylons/pyramid#2873


  • The pcreate script and related scaffolds have been deprecated in favor
    of the popular
    cookiecutter &lt;;_ project.

All of Pyramid's official scaffolds as well as the tutorials have been
ported to cookiecutters:

  • pyramid-cookiecutter-starter &lt;;_
  • pyramid-cookiecutter-alchemy &lt;;_
  • pyramid-cookiecutter-zodb &lt;;_

See Pylons/pyramid#2780

Documentation Changes

  • Add pyramid_nacl_session &lt;;_
    to session factories. See Pylons/pyramid#2791
  • Update HACKING.txt from stale branch that was never merged to master.
    See Pylons/pyramid#2782
  • Fix an inconsistency in the documentation between view predicates and
    route predicates and highlight the differences in their APIs.
    See Pylons/pyramid#2764
  • Clarify a possible misuse of the headers kwarg to subclasses of
    pyramid.httpexceptions.HTTPException in which more appropriate
    kwargs from the parent class pyramid.response.Response should be
    used instead. See Pylons/pyramid#2750
  • The SQLAlchemy + URL Dispatch + Jinja2 (wiki2) and
    ZODB + Traversal + Chameleon (wiki) tutorials have been updated to
    utilize the new cookiecutters and drop support for the pcreate

See Pylons/pyramid#2881 and

  • Quick Tour updated to use cookiecutters instead of pcreate and scaffolds.
    See Pylons/pyramid#2888



  • Fix a bug in the wiki2 tutorial where bcrypt is always expecting byte
    strings. See Pylons/pyramid#2576



  • Fixed the exception view tween to re-raise the original exception if
    no exception view could be found to handle the exception. This better
    allows tweens further up the chain to handle exceptions that were
    left unhandled. Previously they would be converted into a
    PredicateMismatch exception if predicates failed to allow the view to
    handle the exception.
    See Pylons/pyramid#2567
  • Exposed the pyramid.interfaces.IRequestFactory interface to mirror
    the public pyramid.interfaces.IResponseFactory interface.



  • Fix request.invoke_exception_view to raise an HTTPNotFound
    exception if no view is matched. Previously None would be returned
    if no views were matched and a PredicateMismatch would be raised if
    a view "almost" matched (a view was found matching the context).
    See Pylons/pyramid#2564
  • Add defaults for py.test configuration and coverage to all three scaffolds,
    and update documentation accordingly.
    See Pylons/pyramid#2550
  • Add linkcheck to Makefile for Sphinx. To check the documentation for
    broken links, use the command make linkcheck SPHINXBUILD=$VENV/bin/sphinx-build. Also remove

pyup-bot added some commits Jun 26, 2017

pyup-bot added some commits Jun 26, 2017


This comment has been minimized.

Copy link
Contributor Author

commented Jul 3, 2017

Closing this in favor of #341

@pyup-bot pyup-bot closed this Jul 3, 2017

@pumazi pumazi deleted the pyup-scheduled-update-06-26-2017 branch Jul 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.