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 09 #79

Closed
wants to merge 16 commits into from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Mar 5, 2018

Updates

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.

aiohttp 2.3.7 » 3.0.6 PyPI | Changelog | Repo
aioresponses 0.3.1 » 0.4.0 PyPI | Changelog | Repo
asynctest 0.11.1 » 0.12.0 PyPI | Repo
coverage 4.4.2 » 4.5.1 PyPI | Changelog | Repo
decorator 4.1.2 » 4.2.1 PyPI | Changelog | Repo
geoip2 2.6.0 » 2.7.0 PyPI | Changelog | Repo | Homepage | Docs
multidict 3.3.2 » 4.1.0 PyPI | Changelog | Repo
pexpect 4.3.1 » 4.4.0 PyPI | Changelog | Docs
pytest 3.3.1 » 3.4.1 PyPI | Changelog | Repo | Homepage
pytest-mock 1.6.3 » 1.7.1 PyPI | Changelog | Repo
pytz 2017.3 » 2018.3 PyPI | Homepage | Docs
yarl 0.17.0 » 1.1.1 PyPI | Changelog | Repo
aiopg 0.13.1 » 0.13.2 PyPI | Changelog | Docs
peewee 2.10.2 » 3.1.2 PyPI | Changelog | Repo
peewee-async 0.5.10 » 0.5.11 PyPI | Changelog | Repo
psycopg2 2.7.3.2 » 2.7.4 PyPI | Changelog | Homepage

Changelogs

aiohttp 2.3.7 -> 3.0.6

3.0.5

==================

  • Fix InvalidStateError on processing a sequence of two
    RequestHandler.data_received calls on web server. (2773)

3.0.4

==================

  • Fix IndexError in HTTP request handling by server. (2752)
  • Fix MultipartWriter.append* no longer returning part/payload. (2759)

3.0.3

==================

  • Relax attrs dependency to minimal actually supported version
    17.0.3 The change allows to avoid version conflicts with currently
    existing test tools.

3.0.2

==================

Security Fix

  • Prevent Windows absolute URLs in static files. Paths like
    /static/D:\path and /static/\\hostname\drive\path are
    forbidden.

3.0.1

=====

  • Technical release for fixing distribution problems.

3.0.0

==================

Features

  • Speed up the PayloadWriter.write method for large request bodies. (2126)
  • StreamResponse and Response are now MutableMappings. (2246)
  • ClientSession publishes a set of signals to track the HTTP request execution.
    (2313)
  • Content-Disposition fast access in ClientResponse (2455)
  • Added support to Flask-style decorators with class-based Views. (2472)
  • Signal handlers (registered callbacks) should be coroutines. (2480)
  • Support async with test_client.ws_connect(...) (2525)
  • Introduce site and application runner as underlying API for web.run_app
    implementation. (2530)
  • Only quote multipart boundary when necessary and sanitize input (2544)
  • Make the aiohttp.ClientResponse.get_encoding method public with the
    processing of invalid charset while detecting content encoding. (2549)
  • Add optional configurable per message compression for
    ClientWebSocketResponse and WebSocketResponse. (2551)
  • Add hysteresis to StreamReader to prevent flipping between paused and
    resumed states too often. (2555)
  • Support .netrc by trust_env (2581)
  • Avoid to create a new resource when adding a route with the same name and
    path of the last added resource (2586)
  • MultipartWriter.boundary is str now. (2589)
  • Allow a custom port to be used by TestServer (and associated pytest
    fixtures) (2613)
  • Add param access_log_class to web.run_app function (2615)
  • Add ssl parameter to client API (2626)
  • Fixes performance issue introduced by 2577. When there are no middlewares
    installed by the user, no additional and useless code is executed. (2629)
  • Rename PayloadWriter to StreamWriter (2654)
  • New options reuse_port, reuse_address are added to run_app and
    TCPSite. (2679)
  • Use custom classes to pass client signals parameters (2686)
  • Use attrs library for data classes, replace namedtuple. (2690)
  • Pytest fixtures renaming, add aiohttp_ prefix (2578)
  • Add aiohttp- prefix for pytest-aiohttp command line
    parameters (2578)

Bugfixes

  • Correctly process upgrade request from server to HTTP2. aiohttp does not
    support HTTP2 yet, the protocol is not upgraded but response is handled
    correctly. (2277)
  • Fix ClientConnectorSSLError and ClientProxyConnectionError for proxy
    connector (2408)
  • Fix connector convert OSError to ClientConnectorError (2423)
  • Fix connection attempts for multiple dns hosts (2424)
  • Fix writing to closed transport by raising asyncio.CancelledError (2499)
  • Fix warning in ClientSession.__del__ by stopping to try to close it.
    (2523)
  • Fixed race-condition for iterating addresses from the DNSCache. (2620)
  • Fix default value of access_log_format argument in web.run_app (2649)
  • Freeze sub-application on adding to parent app (2656)
  • Do percent encoding for .url_for() parameters (2668)
  • Correctly process request start time and multiple request/response
    headers in access log extra (2641)

Improved Documentation

  • Improve tutorial docs, using literalinclude to link to the actual files.
    (2396)
  • Small improvement docs: better example for file uploads. (2401)
  • Rename from_env to trust_env in client reference. (2451)
  • Fixed mistype in Proxy Support section where trust_env parameter was
    used in session.get("http://python.org", trust_env=True) method instead of
    aiohttp.ClientSession constructor as follows:
    aiohttp.ClientSession(trust_env=True). (2688)
  • Fix issue with unittest example not compiling in testing docs. (2717)

Deprecations and Removals

  • Simplify HTTP pipelining implementation (2109)
  • Drop StreamReaderPayload and DataQueuePayload. (2257)
  • Drop md5 and sha1 finger-prints (2267)
  • Drop WSMessage.tp (2321)
  • Drop Python 3.4 and Python 3.5.0, 3.5.1, 3.5.2. Minimal supported Python
    versions are 3.5.3 and 3.6.0. yield from is gone, use async/await syntax.
    (2343)
  • Drop aiohttp.Timeout and use async_timeout.timeout instead. (2348)
  • Drop resolve param from TCPConnector. (2377)
  • Add DeprecationWarning for returning HTTPException (2415)
  • send_str(), send_bytes(), send_json(), ping() and pong() are
    genuine async functions now. (2475)
  • Drop undocumented app.on_pre_signal and app.on_post_signal. Signal
    handlers should be coroutines, support for regular functions is dropped.
    (2480)
  • StreamResponse.drain() is not a part of public API anymore, just use await StreamResponse.write(). StreamResponse.write is converted to async
    function. (2483)
  • Drop deprecated slow_request_timeout param and **kwargs`` from RequestHandler`. (2500)
  • Drop deprecated resource.url(). (2501)
  • Remove %u and %l format specifiers from access log format. (2506)
  • Drop deprecated request.GET property. (2547)
  • Simplify stream classes: drop ChunksQueue and FlowControlChunksQueue,
    merge FlowControlStreamReader functionality into StreamReader, drop
    FlowControlStreamReader name. (2555)
  • Do not create a new resource on router.add_get(..., allow_head=True)
    (2585)
  • Drop access to TCP tuning options from PayloadWriter and Response classes
    (2604)
  • Drop deprecated encoding parameter from client API (2606)
  • Deprecate verify_ssl, ssl_context and fingerprint parameters in
    client API (2626)
  • Get rid of the legacy class StreamWriter. (2651)
  • Forbid non-strings in resource.url_for() parameters. (2668)
  • Deprecate inheritance from ClientSession and web.Application and
    custom user attributes for ClientSession, web.Request and
    web.Application (2691)
  • Drop resp = await aiohttp.request(...) syntax for sake of async with aiohttp.request(...) as resp:. (2540)
  • Forbid synchronous context managers for ClientSession and test
    server/client. (2362)

Misc

  • 2552

2.3.10

===================

  • Fix 100% CPU usage on HTTP GET and websocket connection just after it (1955)
  • Patch broken ssl.match_hostname() on Python<3.7 (2674)

2.3.9

==================

  • Fix colon handing in path for dynamic resources (2670)

2.3.8

==================

  • Do not use yarl.unquote internal function in aiohttp. Fix
    incorrectly unquoted path part in URL dispatcher (2662)
  • Fix compatibility with yarl==1.0.0 (2662)

coverage 4.4.2 -> 4.5.1

4.5.1


  • Now that 4.5 properly separated the [run] omit and [report] omit
    settings, an old bug has become apparent. If you specified a package name
    for [run] source, then omit patterns weren't matched inside that package.
    This bug (issue 638_) is now fixed.
  • On Python 3.7, reporting about a decorated function with no body other than a
    docstring would crash coverage.py with an IndexError (issue 640_). This is
    now fixed.
  • Configurer plugins are now reported in the output of --debug=sys.

.. _issue 638: https://bitbucket.org/ned/coveragepy/issues/638/run-omit-is-ignored-since-45
.. _issue 640: https://bitbucket.org/ned/coveragepy/issues/640/indexerror-reporting-on-an-empty-decorated

.. _changes_45:

4.5


  • A new kind of plugin is supported: configurators are invoked at start-up to
    allow more complex configuration than the .coveragerc file can easily do.
    See :ref:api_plugin for details. This solves the complex configuration
    problem described in issue 563_.
  • The fail_under option can now be a float. Note that you must specify the
    [report] precision configuration option for the fractional part to be
    used. Thanks to Lars Hupfeldt Nielsen for help with the implementation.
    Fixes issue 631_.
  • The include and omit options can be specified for both the [run]
    and [report] phases of execution. 4.4.2 introduced some incorrect
    interactions between those phases, where the options for one were confused
    for the other. This is now corrected, fixing issue 621_ and issue 622_.
    Thanks to Daniel Hahler for seeing more clearly than I could.
  • The coverage combine command used to always overwrite the data file, even
    when no data had been read from apparently combinable files. Now, an error
    is raised if we thought there were files to combine, but in fact none of them
    could be used. Fixes issue 629_.
  • The coverage combine command could get confused about path separators
    when combining data collected on Windows with data collected on Linux, as
    described in issue 618_. This is now fixed: the result path always uses
    the path separator specified in the [paths] result.
  • On Windows, the HTML report could fail when source trees are deeply nested,
    due to attempting to create HTML filenames longer than the 250-character
    maximum. Now filenames will never get much larger than 200 characters,
    fixing issue 627_. Thanks to Alex Sandro for helping with the fix.

.. _issue 563: https://bitbucket.org/ned/coveragepy/issues/563/platform-specific-configuration
.. _issue 618: https://bitbucket.org/ned/coveragepy/issues/618/problem-when-combining-windows-generated
.. _issue 621: https://bitbucket.org/ned/coveragepy/issues/621/include-ignored-warning-when-using
.. _issue 622: https://bitbucket.org/ned/coveragepy/issues/622/report-omit-overwrites-run-omit
.. _issue 627: https://bitbucket.org/ned/coveragepy/issues/627/failure-generating-html-reports-when-the
.. _issue 629: https://bitbucket.org/ned/coveragepy/issues/629/multiple-use-of-combine-leads-to-empty
.. _issue 631: https://bitbucket.org/ned/coveragepy/issues/631/precise-coverage-percentage-value

.. _changes_442:

decorator 4.1.2 -> 4.2.1

4.2.1

Fixed a regression breaking IPython and discovered by https://github.com/spapini

4.2.0

Added a facility to define families of decorators (aka decorators with
arguments) as requested by several users. Accepted a pylint patch by
David Allouche.

geoip2 2.6.0 -> 2.7.0

2.7.0

++++++++++++++++++

  • The is_in_european_union attribute was added to
    geoip2.record.Country and geoip2.record.RepresentedCountry. This
    attribute is True if the country is a member state of the European
    Union.

multidict 3.3.2 -> 4.1.0

4.1.0


  • Fix key casing in Pure Python impmenetation of
    :py:class:CIMultiDict (:pr:202)

4.0.0


  • Accept multiple keys in :py:meth:MultiDict.update and
    :py:meth:CIMultiDict.update (:pr:199)

pexpect 4.3.1 -> 4.4.0

4.4

  • :class:~.PopenSpawn now has a preexec_fn parameter, like :class:~.spawn
    and :class:subprocess.Popen, for a function to be called in the child
    process before executing the new command. Like in Popen, this works only
    in POSIX, and can cause issues if your application also uses threads
    (:ghpull:460).
  • Significant performance improvements when processing large amounts of data
    (:ghpull:464).
  • Ensure that spawn.closed gets set by :meth:~.spawn.close, and improve
    an example for passing SIGWINCH through to a child process (:ghpull:466).

pytest 3.3.1 -> 3.4.1

3.4.1

=========================

Bug Fixes

  • Move import of doctest.UnexpectedException to top-level to avoid possible
    errors when using --pdb. (1810 &lt;https://github.com/pytest-dev/pytest/issues/1810&gt;_)
  • Added printing of captured stdout/stderr before entering pdb, and improved a
    test which was giving false negatives about output capturing. (3052 &lt;https://github.com/pytest-dev/pytest/issues/3052&gt;_)
  • Fix ordering of tests using parametrized fixtures which can lead to fixtures
    being created more than necessary. (3161 &lt;https://github.com/pytest-dev/pytest/issues/3161&gt;_)
  • Fix bug where logging happening at hooks outside of "test run" hooks would
    cause an internal error. (3184 &lt;https://github.com/pytest-dev/pytest/issues/3184&gt;_)
  • Detect arguments injected by unittest.mock.patch decorator correctly when
    pypi mock.patch is installed and imported. (3206 &lt;https://github.com/pytest-dev/pytest/issues/3206&gt;_)
  • Errors shown when a pytest.raises() with match= fails are now cleaner
    on what happened: When no exception was raised, the "matching '...'" part got
    removed as it falsely implies that an exception was raised but it didn't
    match. When a wrong exception was raised, it's now thrown (like
    pytest.raised() without match= would) instead of complaining about
    the unmatched text. (3222 &lt;https://github.com/pytest-dev/pytest/issues/3222&gt;_)
  • Fixed output capture handling in doctests on macOS. (985 &lt;https://github.com/pytest-dev/pytest/issues/985&gt;_)

Improved Documentation

  • Add Sphinx parameter docs for match and message args to
    pytest.raises. (3202 &lt;https://github.com/pytest-dev/pytest/issues/3202&gt;_)

Trivial/Internal Changes

  • pytest has changed the publication procedure and is now being published to
    PyPI directly from Travis. (3060 &lt;https://github.com/pytest-dev/pytest/issues/3060&gt;_)
  • Rename ParameterSet._for_parameterize() to _for_parametrize() in
    order to comply with the naming convention. (3166 &lt;https://github.com/pytest-dev/pytest/issues/3166&gt;_)
  • Skip failing pdb/doctest test on mac. (985 &lt;https://github.com/pytest-dev/pytest/issues/985&gt;_)

3.4.0

=========================

Deprecations and Removals

  • All pytest classes now subclass object for better Python 2/3 compatibility.
    This should not affect user code except in very rare edge cases. (2147 &lt;https://github.com/pytest-dev/pytest/issues/2147&gt;_)

Features

  • Introduce empty_parameter_set_mark ini option to select which mark to
    apply when pytest.mark.parametrize is given an empty set of parameters.
    Valid options are skip (default) and xfail. Note that it is planned
    to change the default to xfail in future releases as this is considered
    less error prone. (2527 &lt;https://github.com/pytest-dev/pytest/issues/2527&gt;_)
  • Incompatible change: after community feedback the logging &lt;https://docs.pytest.org/en/latest/logging.html&gt;_ functionality has
    undergone some changes. Please consult the logging documentation &lt;https://docs.pytest.org/en/latest/logging.htmlincompatible-changes-in-pytest-3-4&gt;_
    for details. (3013 &lt;https://github.com/pytest-dev/pytest/issues/3013&gt;_)
  • Console output falls back to "classic" mode when capturing is disabled (-s),
    otherwise the output gets garbled to the point of being useless. (3038 &lt;https://github.com/pytest-dev/pytest/issues/3038&gt;_)
  • New pytest_runtest_logfinish &lt;https://docs.pytest.org/en/latest/writing_plugins.html_pytest.hookspec.pytest_runtest_logfinish&gt;_
    hook which is called when a test item has finished executing, analogous to
    pytest_runtest_logstart &lt;https://docs.pytest.org/en/latest/writing_plugins.html_pytest.hookspec.pytest_runtest_start&gt;.
    (3101 &lt;https://github.com/pytest-dev/pytest/issues/3101&gt;
    )
  • Improve performance when collecting tests using many fixtures. (3107 &lt;https://github.com/pytest-dev/pytest/issues/3107&gt;_)
  • New caplog.get_records(when) method which provides access to the captured
    records for the &quot;setup&quot;, &quot;call&quot; and &quot;teardown&quot;
    testing stages. (3117 &lt;https://github.com/pytest-dev/pytest/issues/3117&gt;_)
  • New fixture record_xml_attribute that allows modifying and inserting
    attributes on the &lt;testcase&gt; xml node in JUnit reports. (3130 &lt;https://github.com/pytest-dev/pytest/issues/3130&gt;_)
  • The default cache directory has been renamed from .cache to
    .pytest_cache after community feedback that the name .cache did not
    make it clear that it was used by pytest. (3138 &lt;https://github.com/pytest-dev/pytest/issues/3138&gt;_)
  • Colorize the levelname column in the live-log output. (3142 &lt;https://github.com/pytest-dev/pytest/issues/3142&gt;_)

Bug Fixes

  • Fix hanging pexpect test on MacOS by using flush() instead of wait().
    (2022 &lt;https://github.com/pytest-dev/pytest/issues/2022&gt;_)
  • Fix restoring Python state after in-process pytest runs with the
    pytester plugin; this may break tests using multiple inprocess
    pytest runs if later ones depend on earlier ones leaking global interpreter
    changes. (3016 &lt;https://github.com/pytest-dev/pytest/issues/3016&gt;_)
  • Fix skipping plugin reporting hook when test aborted before plugin setup
    hook. (3074 &lt;https://github.com/pytest-dev/pytest/issues/3074&gt;_)
  • Fix progress percentage reported when tests fail during teardown. (3088 &lt;https://github.com/pytest-dev/pytest/issues/3088&gt;_)
  • Incompatible change: -o/--override option no longer eats all the
    remaining options, which can lead to surprising behavior: for example,
    pytest -o foo=1 /path/to/test.py would fail because /path/to/test.py
    would be considered as part of the -o command-line argument. One
    consequence of this is that now multiple configuration overrides need
    multiple -o flags: pytest -o foo=1 -o bar=2. (3103 &lt;https://github.com/pytest-dev/pytest/issues/3103&gt;_)

Improved Documentation

  • Document hooks (defined with historic=True) which cannot be used with
    hookwrapper=True. (2423 &lt;https://github.com/pytest-dev/pytest/issues/2423&gt;_)
  • Clarify that warning capturing doesn't change the warning filter by default.
    (2457 &lt;https://github.com/pytest-dev/pytest/issues/2457&gt;_)
  • Clarify a possible confusion when using pytest_fixture_setup with fixture
    functions that return None. (2698 &lt;https://github.com/pytest-dev/pytest/issues/2698&gt;_)
  • Fix the wording of a sentence on doctest flags used in pytest. (3076 &lt;https://github.com/pytest-dev/pytest/issues/3076&gt;_)
  • Prefer https://*.readthedocs.io over http://*.rtfd.org for links in
    the documentation. (3092 &lt;https://github.com/pytest-dev/pytest/issues/3092&gt;_)
  • Improve readability (wording, grammar) of Getting Started guide (3131 &lt;https://github.com/pytest-dev/pytest/issues/3131&gt;_)
  • Added note that calling pytest.main multiple times from the same process is
    not recommended because of import caching. (3143 &lt;https://github.com/pytest-dev/pytest/issues/3143&gt;_)

Trivial/Internal Changes

  • Show a simple and easy error when keyword expressions trigger a syntax error
    (for example, &quot;-k foo and import&quot; will show an error that you can not use
    the import keyword in expressions). (2953 &lt;https://github.com/pytest-dev/pytest/issues/2953&gt;_)
  • Change parametrized automatic test id generation to use the __name__
    attribute of functions instead of the fallback argument name plus counter.
    (2976 &lt;https://github.com/pytest-dev/pytest/issues/2976&gt;_)
  • Replace py.std with stdlib imports. (3067 &lt;https://github.com/pytest-dev/pytest/issues/3067&gt;_)
  • Corrected 'you' to 'your' in logging docs. (3129 &lt;https://github.com/pytest-dev/pytest/issues/3129&gt;_)

3.3.2

=========================

Bug Fixes

  • pytester: ignore files used to obtain current user metadata in the fd leak
    detector. (2784 &lt;https://github.com/pytest-dev/pytest/issues/2784&gt;_)
  • Fix memory leak where objects returned by fixtures were never destructed
    by the garbage collector. (2981 &lt;https://github.com/pytest-dev/pytest/issues/2981&gt;_)
  • Fix conversion of pyargs to filename to not convert symlinks on Python 2. (2985 &lt;https://github.com/pytest-dev/pytest/issues/2985&gt;_)
  • PYTEST_DONT_REWRITE is now checked for plugins too rather than only for
    test modules. (2995 &lt;https://github.com/pytest-dev/pytest/issues/2995&gt;_)

Improved Documentation

  • Add clarifying note about behavior of multiple parametrized arguments (3001 &lt;https://github.com/pytest-dev/pytest/issues/3001&gt;_)

Trivial/Internal Changes

  • Code cleanup. (3015 &lt;https://github.com/pytest-dev/pytest/issues/3015&gt;,
    3021 &lt;https://github.com/pytest-dev/pytest/issues/3021&gt;
    )
  • Clean up code by replacing imports and references of _ast to ast. (3018 &lt;https://github.com/pytest-dev/pytest/issues/3018&gt;_)

pytest-mock 1.6.3 -> 1.7.1

1.7.1


  • Fix setup.py to correctly read the README.rst. Thanks ghisvail_ for the fix (107_).

.. _107: pytest-dev/pytest-mock#107

1.7.0


Incompatible change

  • pytest-mock no longer supports Python 2.6 and Python 3.3, following the lead of
    pytest and other projects in the community. Thanks hugovk_ for the PR (96_).

Packaging

  • Fix mock requirement in Python 2. Thanks ghisvail_ for the report (101_).

Internal

  • Some tests in pytest-mock's suite are skipped if assertion rewriting is disabled (102_).

.. _ghisvail: https://github.com/ghisvail
.. _hugovk: https://github.com/hugovk
.. _96: pytest-dev/pytest-mock#96
.. _101: pytest-dev/pytest-mock#101
.. _102: pytest-dev/pytest-mock#102

yarl 0.17.0 -> 1.1.1

1.1.1


  • Fix performance regression: don't encode enmpty netloc (170)

1.1.0


  • Make pure Python quoter consistent with Cython version (162)

1.0.0


  • Use fast path if quoted string does not need requoting (154)
  • Speed up quoting/unquoting by _Quoter and _Unquoter classes (155)
  • Drop yarl.quote and yarl.unquote public functions (155)
  • Add custom string writer, reuse static buffer if available (157)
    Code is 50-80 times faster than Pure Python version (was 4-5 times faster)
  • Don't recode IP zone (144)
  • Support encoded=True in yarl.URL.build() (158)
  • Fix updating query with multiple keys (160)

0.18.0


  • Fallback to IDNA 2003 if domain name is not IDNA 2008 compatible (152)

aiopg 0.13.1 -> 0.13.2

0.13.2

^^^^^^^^^^^^^^^^^^^

  • Fixed compatibility with SQLAlchemy 1.2.0 412
  • Added support for transaction isolation levels 219

peewee 2.10.2 -> 3.1.2

3.1.2

New behavior for INSERT queries with RETURNING clause

Investigating 1522, it occurred to me that INSERT queries with non-default
RETURNING clauses (postgres-only feature) should always return a cursor
object. Previously, if executing a single-row INSERT query, the last-inserted
row ID would be returned, regardless of what was specified by the RETURNING
clause.

This change only affects INSERT queries with non-default RETURNING clauses and
will cause a cursor to be returned, as opposed to the last-inserted row ID.

View commits

3.1.1

  • Fixed bug when using Model.alias() when the model defined a particular
    database schema.
  • Added SchemaManager.create_foreign_key API to simplify adding constraints
    when dealing with circular foreign-key relationships. Updated docs
    accordingly.
  • Improved implementation of Migrator.add_foreign_key_constraint so that it
    can be used with Postgresql (in addition to MySQL).
  • Added PickleField to the playhouse.fields module. Docs.
  • Fixed bug in implementation of CompressedField when using Python 3.
  • Added KeyValue API in playhouse.kv module. Docs.
  • More test cases for joining on sub-selects or common table expressions.

View commits

3.1.0

Backwards-incompatible changes

Database.bind() has been renamed to Database.bind_ctx(), to more closely
match the semantics of the corresponding model methods, Model.bind() and
Model.bind_ctx(). The new Database.bind() method is a one-time operation
that binds the given models to the database. See documentation:

Other changes

  • Removed Python 2.6 support code from a few places.
  • Fixed example analytics app code to ensure hstore extension is registered.
  • Small efficiency improvement to bloom filter.
  • Removed "attention!" from README.

View commits

3.0.20

  • Include schema (if specified) when checking for table-existence.
  • Correct placement of ORDER BY / LIMIT clauses in compound select queries.
  • Fix bug in back-reference lookups when using filter() API.
  • Fix bug in SQL generation for ON CONFLICT queries with Postgres, 1512.

View commits

3.0.19

  • Support for more types of mappings in insert_many(), refs 1495.
  • Lots of documentation improvements.
  • Fix bug when calling tuples() on a ModelRaw query. This was reported
    originally as a bug with sqlite-web CSV export. See coleifer/sqlite-web38.

View commits

3.0.18

  • Improved error messages when attempting to use a database class for which the
    corresponding driver is not installed.
  • Added tests showing the use of custom operator (a-la the docs).
  • Fixed indentation issue in docs, 1493.
  • Fixed issue with the SQLite date_part issue, 1494.

View commits

3.0.17

  • Fix schema inheritance regression, 1485.
  • Add helper method to postgres migrator for setting search_path, 1353.

View commits

3.0.16

  • Improve model graph resolution when iterating results of a query. Refs 1482.
  • Allow Model._meta.schema to be changed at run-time. 1483.

View commits

3.0.15

  • Use same schema used for reflection in generated models.
  • Preserve pragmas set on deferred Sqlite database if database is
    re-initialized without re-specifying pragmas.

View commits

3.0.14

  • Fix bug creating model instances on Postgres when model does not have a
    primary key column.
  • Extend postgresql reflection to support array types.

View commits

3.0.13

  • Fix bug where simple field aliases were being ignored. Fixes 1473.
  • More strict about column type inference for postgres + pwiz.

View commits

3.0.12

  • Fix queries of the form INSERT ... VALUES (SELECT...) so that sub-select is
    wrapped in parentheses.
  • Improve model-graph resolution when selecting from multiple tables that are
    joined by foreign-keys, and an intermediate table is omitted from selection.
  • Docs update to reflect deletion of post_init signal.

View commits

3.0.11

  • Add note to changelog about cursor() method.
  • Add hash method to postgres indexedfield subclasses.
  • Add TableFunction to sqlite_ext module namespace.
  • Fix bug regarding NOT IN queries where the right-hand-side is an empty set.
  • Fallback implementations of bm25f and lucene search ranking algorithms.
  • Fixed DecimalField issue.
  • Fixed issue with BlobField when database is a Proxy object.

View commits

3.0.10

  • Fix Database.drop_tables() signature to support cascade argument - 1453.
  • Fix querying documentation for custom functions - 1454.
  • Added len() method to ModelBase for convenient counting.
  • Fix bug related to unsaved relation population (thanks conqp) - 1459.
  • Fix count() on compound select - 1460.
  • Support coerce keyword argument with fn.XXX() - 1463.
  • Support updating existing model instance with dict_to_model-like API - 1456.
  • Fix equality tests with ArrayField - 1461.

View commits

3.0.9

  • Add deprecation notice if passing autocommit as keyword argument to the
    Database initializer. Refs 1452.
  • Add JSONPath and "J" helpers to sqlite extension.

View commits

3.0.8

  • Add support for passing cascade=True when dropping tables. Fixes 1449.
  • Fix issues with backrefs and inherited foreign-keys. Fixes 1448.

View commits

3.0.7

  • Add select_extend() method to extend existing SELECT-ion. Doc.
  • Accept set() as iterable value type, fixes 1445
  • Add test for model/field inheritance and fix bug relating to recursion error
    when inheriting foreign-key field. Fixes 1448.
  • Fix regression where consecutive calls to ModelSelect.select() with no
    parameters resulted in an empty selection. Fixes 1438.

View commits

3.0.6

Add constraints for ON UPDATE/ON DELETE to foreign-key constraint - 1443.

View commits

3.0.5

Adds Model.index(), a short-hand method for declaring ModelIndex instances.

View commits

3.0.4

Re-add a shim for PrimaryKeyField (renamed to AutoField) and log a
deprecation warning if you try to use it.

View commits

3.0.3

Includes fix for bug where column-name to field-name translation was not being
done when running select queries on models whose field name differed from the
underlying column name (1437).

View commits

3.0.2

Ensures that the pysqlite headers are included in the source distribution so
that certain C extensions can be compiled.

View commits

3.0.0

View commits

peewee-async 0.5.10 -> 0.5.11

0.5.11

  • 86 pull request is merged, releasing cursor issue after transaction releated queries

psycopg2 2.7.3.2 -> 2.7.4

2.7.4

^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Moving away from installing the wheel package by default.
    Packages installed from wheel raise a warning on import. Added package
    psycopg2-binary to install from wheel instead (:ticket:543).
  • Convert fields names into valid Python identifiers in
    ~psycopg2.extras.NamedTupleCursor (:ticket:211).
  • Fixed Solaris 10 support (:ticket:532).
  • cursor.mogrify() can be called on closed cursors (:ticket:579).
  • Fixed setting session characteristics in corner cases on autocommit
    connections (:ticket:580).
  • Fixed ~psycopg2.extras.MinTimeLoggingCursor on Python 3 (:ticket:609).
  • Fixed parsing of array of points as floats (:ticket:613).
  • Fixed ~psycopg2.__libpq_version__ building with libpq >= 10.1
    (:ticket:632).
  • Fixed ~cursor.rowcount after ~cursor.executemany() with :sql:RETURNING
    statements (:ticket:633).
  • Fixed compatibility problem with pypy3 (:ticket:649).
  • Wheel packages compiled against PostgreSQL 10.1 libpq and OpenSSL 1.0.2n.
  • Wheel packages for Python 2.6 no more available (support dropped from
    wheel building infrastructure).

That's it for now!

Happy merging! 🤖

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #80

@pyup-bot pyup-bot closed this Mar 12, 2018
@nsavch nsavch deleted the pyup-scheduled-update-2018-03-05 branch March 12, 2018 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant