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

Initial Update #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Initial Update #1

wants to merge 5 commits into from

Conversation

pyup-bot
Copy link

This is my first visit to this fine repo so I have bundled all updates in a single pull request to make things easier for you to merge.

Close this pull request and delete the branch if you want me to start with single pull requests right away

Here's the executive summary:

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.

tox 2.3.2 » 2.5.0 PyPI | Changelog | Docs
pytest-mock 1.2 » 1.5.0 PyPI | Changelog | Repo
webargs 1.4.0 » 1.5.1 PyPI | Changelog | Repo
flask 0.11.1 » 0.12 PyPI | Changelog | Repo
pytest 3.0.3 » 3.0.5 PyPI | Changelog | Homepage

Changelogs

tox 2.3.2 -> 2.5.0

2.5.0


  • slightly backward incompatible: fix issue310: the {posargs} substitution
    now properly preserves the tox command line positional arguments. Positional
    arguments with spaces are now properly handled.
    NOTE: if your tox invocation previously used extra quoting for positional arguments to
    work around issue310, you need to remove the quoting. Example:
    tox -- "'some string'" has to now be written simply as
    tox -- "some string"
    thanks holger krekel. You can set minversion = 2.5.0 in the [tox]
    section of tox.ini to make sure people using your tox.ini use the correct version.
  • fix 359: add COMSPEC to default passenv on windows. Thanks
    anthrotype.
  • add support for py36 and py37 and add py36-dev and py37(nightly) to
    travis builds of tox. Thanks John Vandenberg.
  • fix 348: add py2 and py3 as default environments pointing to
    "python2" and "python3" basepython executables. Also fix 347 by
    updating the list of default envs in the tox basic example.
    Thanks Tobias McNulty.
  • make "-h" and "--help-ini" options work even if there is no tox.ini,
    thanks holger krekel.
  • add {:} substitution, which is replaced with os-specific path
    separator, thanks Lukasz Rogalski.
  • fix 305: downloadcache test env config is now ignored as pip-8
    does caching by default. Thanks holger krekel.
  • output from install command in verbose (-vv) mode is now printed to console instead of
    being redirected to file, thanks Lukasz Rogalski
  • fix 399. Make sure {envtmpdir} is created if it doesn't exist at the
    start of a testenvironment run. Thanks Manuel Jacob.
  • fix 316: Lack of commands key in ini file is now treated as an error.
    Reported virtualenv status is 'nothing to do' instead of 'commands
    succeeded', with relevant error message displayed. Thanks Lukasz Rogalski.

2.4.1


  • fix issue380: properly perform substitution again. Thanks Ian
    Cordasco.

2.4.0


  • remove PYTHONPATH from environment during the install phase because a
    tox-run should not have hidden dependencies and the test commands will also
    not see a PYTHONPATH. If this causes unforeseen problems it may be
    reverted in a bugfix release. Thanks Jason R. Coombs.
  • fix issue352: prevent a configuration where envdir==toxinidir and
    refine docs to warn people about changing "envdir". Thanks Oliver Bestwalter and holger krekel.
  • fix issue375, fix issue330: warn against tox-setup.py integration as
    "setup.py test" should really just test with the current interpreter. Thanks Ronny Pfannschmidt.
  • fix issue302: allow cross-testenv substitution where we substitute
    with {x,y} generative syntax. Thanks Andrew Pashkin.
  • fix issue212: allow escaping curly brace chars "{" and "}" if you need the
    chars "{" and "}" to appear in your commands or other ini values.
    Thanks John Vandenberg.
  • addresses issue66: add --workdir option to override where tox stores its ".tox" directory
    and all of the virtualenv environment. Thanks Danring.
  • introduce per-venv list_dependencies_command which defaults
    to "pip freeze" to obtain the list of installed packages.
    Thanks Ted Shaw, Holger Krekel.
  • close issue66: add documentation to jenkins page on how to avoid
    "too long shebang" lines when calling pip from tox. Note that we
    can not use "python -m pip install X" by default because the latter
    adds the CWD and pip will think X is installed if it is there.
    "pip install X" does not do that.
  • new list_dependencies_command to influence how tox determines
    which dependencies are installed in a testenv.
  • (experimental) New feature: When a search for a config file fails, tox tries loading
    setup.cfg with a section prefix of "tox".
  • fix issue275: Introduce hooks tox_runtest_pre``` and tox_runtest_post`` which run before and after the tests of a venv,
    respectively. Thanks to Matthew Schinckel and itxaka serrano.
  • fix issue317: evaluate minversion before tox config is parsed completely.
    Thanks Sachi King for the PR.
  • added the "extras" environment option to specify the extras to use when doing the
    sdist or develop install. Contributed by Alex Grönholm.
  • use pytest-catchlog instead of pytest-capturelog (latter is not
    maintained, uses deprecated pytest API)

pytest-mock 1.2 -> 1.5.0

1.5.0


  • New mocker.mock_module variable points to the underlying mock module being used
    (unittest.mock or mock).
    Thanks blueyed_ for the request (71_).

.. _71: pytest-dev/pytest-mock#71

1.4.0


  • New configuration variable, mock_use_standalone_module (defaults to False). This forces
    the plugin to import mock instead of unittest.mock on Python 3. This is useful to import
    a newer version than the one available in the Python distribution.
  • Previously the plugin would first try to import mock and fallback to unittest.mock
    in case of an ImportError, but this behavior has been removed because it could hide
    hard to debug import errors (68_).
  • Now mock (Python 2) and unittest.mock (Python 3) are lazy-loaded to make it possible to
    implement the new mock_use_standlone_module configuration option. As a consequence of this
    the undocumented pytest_mock.mock_module variable, which pointed to the actual mock module
    being used by the plugin, has been removed.
  • DEFAULT <https://docs.python.org/3/library/unittest.mock.htmldefault>_ is now available from
    the mocker fixture.

.. _68: pytest-dev/pytest-mock#68

1.3.0


  • Add support for Python 3.6. Thanks hackebrot_ for the report (59_).
  • mock.mock_open is now aliased as mocker.mock_open for convenience.
    Thanks pokidovea_ for the PR (66_).

.. _hackebrot: https://github.com/hackebrot
.. _pokidovea: https://github.com/pokidovea
.. _59: pytest-dev/pytest-mock#59
.. _66: pytest-dev/pytest-mock#66

webargs 1.4.0 -> 1.5.1

1.5.1


Bug fixes:

  • Fix handling missing nested args when many=True (:issue:120, :issue:145). Thanks :user:chavz and :user:Bangertm for reporting.
  • Fix behavior of load_from in AIOHTTPParser.

1.5.0


Features:

  • The use_args and use_kwargs decorators add a reference to the undecorated function via the __wrapped__ attribute. This is useful for unit-testing purposes (:issue:144). Thanks :user:EFF for the PR.

Bug fixes:

  • If load_from is specified on a field, first check the field name before checking load_from (:issue:118). Thanks :user:jasonab for reporting.

flask 0.11.1 -> 0.12

0.12


Released on December 21st 2016, codename Punsch.

  • the cli command now responds to --version.
  • Mimetype guessing and ETag generation for file-like objects in send_file
    has been removed, as per issue 104. See pull request 1849.
  • Mimetype guessing in send_file now fails loudly and doesn't fall back to
    application/octet-stream. See pull request 1988.
  • Make flask.safe_join able to join multiple paths like os.path.join
    (pull request 1730).
  • Revert a behavior change that made the dev server crash instead of returning
    a Internal Server Error (pull request 2006).
  • Correctly invoke response handlers for both regular request dispatching as
    well as error handlers.
  • Disable logger propagation by default for the app logger.
  • Add support for range requests in send_file.
  • app.test_client includes preset default environment, which can now be
    directly set, instead of per client.get.

0.11.2


Bugfix release, unreleased

  • Fix crash when running under PyPy3, see pull request 1814.

pytest 3.0.3 -> 3.0.5

3.0.5

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

  • Add warning when not passing option=value correctly to -o/--override-ini (2105).
    Also improved the help documentation. Thanks to mbukatov
    for the report and
    lwm_ for the PR.
  • Now --confcutdir and --junit-xml are properly validated if they are directories
    and filenames, respectively (2089_ and 2078). Thanks to lwm for the PR.
  • Add hint to error message hinting possible missing __init__.py (478). Thanks DuncanBetts.
  • More accurately describe when fixture finalization occurs in documentation (687). Thanks DuncanBetts.
  • Provide :ref: targets for recwarn.rst so we can use intersphinx referencing.
    Thanks to dupuy_ for the report and lwm_ for the PR.
  • In Python 2, use a simple +- ASCII string in the string representation of pytest.approx (for example "4 +- 4.0e-06")
    because it is brittle to handle that in different contexts and representations internally in pytest
    which can result in bugs such as 2111. In Python 3, the representation still uses ± (for example 4 ± 4.0e-06).
    Thanks kerrick-lyft
    for the report and nicoddemus_ for the PR.
  • Using item.Function, item.Module, etc., is now issuing deprecation warnings, prefer
    pytest.Function, pytest.Module, etc., instead (2034).
    Thanks nmundar
    for the PR.
  • Fix error message using approx with complex numbers (2082).
    Thanks adler-j
    for the report and nicoddemus_ for the PR.
  • Fixed false-positives warnings from assertion rewrite hook for modules imported more than
    once by the pytest_plugins mechanism.
    Thanks nicoddemus_ for the PR.
  • Remove an internal cache which could cause hooks from conftest.py files in
    sub-directories to be called in other directories incorrectly (2016).
    Thanks d-b-w
    for the report and nicoddemus_ for the PR.
  • Remove internal code meant to support earlier Python 3 versions that produced the side effect
    of leaving None in sys.modules when expressions were evaluated by pytest (for example passing a condition
    as a string to pytest.mark.skipif)(2103).
    Thanks jaraco
    for the report and nicoddemus_ for the PR.
  • Cope gracefully with a .pyc file with no matching .py file (2038). Thanks
    nedbat
    .

.. _adler-j: https://github.com/adler-j
.. _d-b-w: https://bitbucket.org/d-b-w/
.. _DuncanBetts: https://github.com/DuncanBetts
.. _dupuy: https://bitbucket.org/dupuy/
.. _kerrick-lyft: https://github.com/kerrick-lyft
.. _lwm: https://github.com/lwm
.. _mbukatov: https://github.com/mbukatov
.. _nedbat: https://github.com/nedbat
.. _nmundar: https://github.com/nmundar

.. _2016: pytest-dev/pytest#2016
.. _2034: pytest-dev/pytest#2034
.. _2038: pytest-dev/pytest#2038
.. _2078: pytest-dev/pytest#2078
.. _2082: pytest-dev/pytest#2082
.. _2089: pytest-dev/pytest#2089
.. _2103: pytest-dev/pytest#2103
.. _2105: pytest-dev/pytest#2105
.. _2111: pytest-dev/pytest#2111
.. _478: pytest-dev/pytest#478
.. _687: pytest-dev/pytest#687

3.0.4

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

  • Import errors when collecting test modules now display the full traceback (1976).
    Thanks cwitty
    for the report and nicoddemus_ for the PR.
  • Fix confusing command-line help message for custom options with two or more metavar properties (2004).
    Thanks okulynyak
    and davehunt_ for the report and nicoddemus_ for the PR.
  • When loading plugins, import errors which contain non-ascii messages are now properly handled in Python 2 (1998).
    Thanks nicoddemus
    for the PR.
  • Fixed cyclic reference when pytest.raises is used in context-manager form (1965). Also as a
    result of this fix, sys.exc_info() is left empty in both context-manager and function call usages.
    Previously, sys.exc_info would contain the exception caught by the context manager,
    even when the expected exception occurred.
    Thanks MSeifert04
    for the report and the PR.
  • Fixed false-positives warnings from assertion rewrite hook for modules that were rewritten but
    were later marked explicitly by pytest.register_assert_rewrite
    or implicitly as a plugin (2005).
    Thanks RonnyPfannschmidt
    for the report and nicoddemus_ for the PR.
  • Report teardown output on test failure (442).
    Thanks matclab
    for the PR.
  • Fix teardown error message in generated xUnit XML.
    Thanks gdyuldin_ for the PR.
  • Properly handle exceptions in multiprocessing tasks (1984).
    Thanks adborden
    for the report and nicoddemus_ for the PR.
  • Clean up unittest TestCase objects after tests are complete (1649).
    Thanks d_b_w
    for the report and PR.

.. _adborden: https://github.com/adborden
.. _cwitty: https://github.com/cwitty
.. _d_b_w: https://github.com/d_b_w
.. _gdyuldin: https://github.com/gdyuldin
.. _matclab: https://github.com/matclab
.. _MSeifert04: https://github.com/MSeifert04
.. _okulynyak: https://github.com/okulynyak

.. _442: pytest-dev/pytest#442
.. _1965: pytest-dev/pytest#1965
.. _1976: pytest-dev/pytest#1976
.. _1984: pytest-dev/pytest#1984
.. _1998: pytest-dev/pytest#1998
.. _2004: pytest-dev/pytest#2004
.. _2005: pytest-dev/pytest#2005
.. _1649: pytest-dev/pytest#1649

Once you have closed this pull request, I'll create seperate pull requests for every update as soon as I find them.

That's it for now!

Happy merging! 🤖

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