dssg / collate

Aggregation SQL Query Builder
Other
1 stars 3 forks source link

Scheduled biweekly dependency update for week 42 #106

Closed pyup-bot closed 6 years ago

pyup-bot commented 6 years ago

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.

SQLAlchemy 1.1.11 » 1.1.14 PyPI | Changelog | Homepage
wheel 0.29.0 » 0.30.0 PyPI | Changelog | Repo
flake8 3.3.0 » 3.4.1 PyPI | Changelog | Repo
tox 2.7.0 » 2.9.1 PyPI | Changelog | Docs
Sphinx 1.6.3 » 1.6.4 PyPI | Changelog | Homepage
cryptography 1.9 » 2.1.1 PyPI | Changelog | Repo
pytest 3.1.3 » 3.2.3 PyPI | Changelog | Repo | Homepage
psycopg2 2.7.1 » 2.7.3.1 PyPI | Changelog | Homepage

Changelogs

SQLAlchemy 1.1.11 -> 1.1.14

1.1.14

:released: September 5, 2017

.. change:: :tags: bug, orm :tickets: 4069 :versions: 1.2.0b3

   Fixed bug in :meth:`.Session.merge` following along similar lines as that
   of :ticket:`4030`, where an internal check for a target object in
   the identity map could lead to an error if it were to be garbage collected
   immediately before the merge routine actually retrieves the object.

.. change:: :tags: bug, orm :tickets: 4048 :versions: 1.2.0b3

   Fixed bug where an :func:`.undefer_group` option would not be recognized
   if it extended from a relationship that was loading using joined eager
   loading.  Additionally, as the bug led to excess work being performed,
   Python function call counts are also improved by 20% within the initial
   calculation of result set columns, complementing the joined eager load
   improvements of :ticket:`3915`.

.. change:: :tags: bug, orm :tickets: 4068

   Fixed race condition in ORM identity map which would cause objects
   to be inappropriately removed during a load operation, causing
   duplicate object identities to occur, particularly under joined eager
   loading which involves deduplication of objects.  The issue is specific
   to garbage collection of weak references and is observed only under the
   Pypy interpreter.

.. change:: :tags: bug, orm :tickets: 4056 :versions: 1.2.0b3

   Fixed bug in :meth:`.Session.merge` where objects in a collection that had
   the primary key attribute set to ``None`` for a key that is  typically
   autoincrementing would be considered to be a database-persisted key for
   part of the internal deduplication process, causing only one object to
   actually be inserted in the database.

.. change:: :tags: bug, sql :tickets: 4053

   Altered the range specification for window functions to allow
   for two of the same PRECEDING or FOLLOWING keywords in a range
   by allowing for the left side of the range to be positive
   and for the right to be negative, e.g. (1, 3) is
   "1 FOLLOWING AND 3 FOLLOWING".

.. change:: :tags: bug, orm :tickets: 4067 :versions: 1.2.0b3

   An :class:`.InvalidRequestError` is raised when a :func:`.synonym`
   is used against an attribute that is not against a :class:`.MapperProperty`,
   such as an association proxy.  Previously, a recursion overflow would
   occur trying to locate non-existent attributes.

.. changelog::

1.1.13

:released: August 3, 2017

.. changelog::

1.1.12

:released: July 24, 2017

.. change:: cache_order_sequence :tags: feature, oracle, posgresql :versions: 1.2.0b1

   Added new keywords :paramref:`.Sequence.cache` and
   :paramref:`.Sequence.order` to :class:`.Sequence`, to allow rendering
   of the CACHE parameter understood by Oracle and PostgreSQL, and the
   ORDER parameter understood by Oracle.  Pull request
   courtesy David Moore.

.. change:: 4033 :tags: bug, orm :tickets: 4033 :versions: 1.2.0b2

   Fixed regression from 1.1.11 where adding additional non-entity
   columns to a query that includes an entity with subqueryload
   relationships would fail, due to an inspection added in 1.1.11 as a
   result of :ticket:`4011`.

.. change:: 4031 :tags: bug, orm :versions: 1.2.0b2 :tickets: 4031

   Fixed bug involving JSON NULL evaluation logic added in 1.1 as part
   of :ticket:`3514` where the logic would not accommodate ORM
   mapped attributes named differently from the :class:`.Column`
   that was mapped.

.. change:: 4030 :tags: bug, orm :versions: 1.2.0b2 :tickets: 4030

   Added ``KeyError`` checks to all methods within
   :class:`.WeakInstanceDict` where a check for ``key in dict`` is
   followed by indexed access to that key, to guard against a race against
   garbage collection that under load can remove the key from the dict
   after the code assumes its present, leading to very infrequent
   ``KeyError`` raises.

.. changelog::

wheel 0.29.0 -> 0.30.0

0.30.0

======

  • Added py-limited-api {cp32|cp33|cp34|...} flag to produce cpNN.abi3.{arch} tags on CPython 3.
  • Documented the license_file metadata key
  • Improved Python, abi tagging for wheel convert. Thanks Ales Erjavec.
  • Fixed > being prepended to lines starting with "From" in the long description
  • Added support for specifying a build number (as per PEP 427). Thanks Ian Cordasco.
  • Made the order of files in generated ZIP files deterministic. Thanks Matthias Bach.
  • Made the order of requirements in metadata deterministic. Thanks Chris Lamb.
  • Fixed wheel install clobbering existing files
  • Improved the error message when trying to verify an unsigned wheel file
  • Removed support for Python 2.6, 3.2 and 3.3.

flake8 3.3.0 -> 3.4.1

3.4.1


You can view the 3.4.1 milestone_ on GitLab for more details.

  • Fix minor regression when users specify only a --select list with items in the enabled/extended select list. (See also GitLab354_)

.. all links .. _3.4.1 milestone: https://gitlab.com/pycqa/flake8/milestones/19

.. issue links .. _GitLab354: https://gitlab.com/pycqa/flake8/issues/354

.. merge request links

3.4.0


You can view the 3.4.0 milestone_ on GitLab for more details.

  • Refine logic around --select and --ignore when combined with the default values for each. (See also GitLab318_)

  • Handle spaces as an alternate separate for error codes, e.g., --ignore 'E123 E234'. (See also GitLab329_)

  • Filter out empty select and ignore codes, e.g., --ignore E123,,E234. (See also GitLab330_)

  • Specify dependencies appropriately in setup.py (See also Gitlab341_)

  • Fix bug in parsing --quiet and --verbose from config files. (See also GitLab!193_)

  • Remove unused import of os in the git hook template (See also GitLab!194_)

.. all links .. _3.4.0 milestone: https://gitlab.com/pycqa/flake8/milestones/18

.. issue links .. _GitLab318: https://gitlab.com/pycqa/flake8/issues/318 .. _GitLab329: https://gitlab.com/pycqa/flake8/issues/329 .. _GitLab330: https://gitlab.com/pycqa/flake8/issues/330 .. _GitLab341: https://gitlab.com/pycqa/flake8/issues/341

.. merge request links .. _GitLab!193: https://gitlab.com/pycqa/flake8/merge_requests/193 .. _GitLab!194: https://gitlab.com/pycqa/flake8/merge_requests/194

tox 2.7.0 -> 2.9.1

2.9.1


Misc ^^^^

  • integrated new release process and fixed changelog rendering for pypi.org - by obestwalter <https://github.com/obestwalter>_.

2.9

2.9.0


Features ^^^^^^^^

  • tox --version now shows information about all registered plugins - by obestwalter <https://github.com/obestwalter> (544 <https://github.com/tox-dev/tox/issues/544>)

Bugfixes ^^^^^^^^

  • skip_install overrides usedevelop (usedevelop is an option to choose the installation type if the package is installed and skip_install determines if it should be installed at all) - by ferdonline <https://github.com/ferdonline> (571 <https://github.com/tox-dev/tox/issues/571>)

Misc ^^^^

  • 635 <https://github.com/tox-dev/tox/issues/635> inherit from correct exception - by obestwalter <https://github.com/obestwalter> (635 <https://github.com/tox-dev/tox/issues/635>_).
  • spelling and escape sequence fixes - by scoop <https://github.com/scoop> (637 <https://github.com/tox-dev/tox/issues/637> and 638 <https://github.com/tox-dev/tox/issues/638>_).
  • add a badge to show build status of documentation on readthedocs.io - by obestwalter <https://github.com/obestwalter>_.

Improved Documentation ^^^^^^^^^^^^^^^^^^^^^^

  • add towncrier <https://github.com/hawkowl/towncrier> to allow adding changelog entries with the pull requests without generating merge conflicts; with this release notes are now grouped into four distinct collections: Features, Bugfixes, Improved Documentation and Deprecations and Removals. (614 <https://github.com/tox-dev/tox/issues/614>)

2.8.2


  • 466 <https://github.com/tox-dev/tox/issues/466>_: stop env var leakage if popen failed with resultjson or redirect

2.8.1


  • pull request 599 <https://github.com/tox-dev/tox/pull/599>: fix problems with implementation of 515 <https://github.com/tox-dev/tox/issues/515>. Substitutions from other sections were not made anymore if they were not in envlist. Thanks to Clark Boylan (cboylan <https://github.com/cboylan>) for helping to get this fixed (pull request 597 <https://github.com/tox-dev/tox/pull/597>).

2.8

.. Everything below here is generated by towncrier <https://pypi.python.org/pypi/towncrier>_. It is generated once as part of the release process rendering fragments from the changelog folder. If necessary, the generated text can be edited afterwards to e.g. merge rc changes into the final release notes.

.. towncrier release notes start

2.8.0


  • 276 <https://github.com/tox-dev/tox/issues/276>_: Remove easyinstall from docs (TL;DR: use pip). Thanks Martin Andrysík (sifuraz <https://github.com/sifuraz>).

  • 301 <https://github.com/tox-dev/tox/issues/301>: Expand nested substitutions in tox.ini. Thanks vlaci <https://github.com/vlaci>. Thanks to Eli Collins (eli-collins <https://github.com/eli-collins>_) for creating a reproducer.

  • 315 <https://github.com/tox-dev/tox/issues/315>: add --help and --version to helptox-quickstart. Thanks vlaci <https://github.com/vlaci>.

  • 326 <https://github.com/tox-dev/tox/issues/326>: Fix OSError 'Not a directory' when creating env on Jython 2.7.0. Thanks Nick Douma (LordGaav <https://github.com/LordGaav>).

  • 429 <https://github.com/tox-dev/tox/issues/429>: Forward MSYSTEM by default on Windows. Thanks Marius Gedminas (mgedmin <https://github.com/mgedmin>) for reporting this.

  • 449 <https://github.com/tox-dev/tox/issues/449>: add multi platform example to the docs. Thanks Aleks Bunin (sashkab <https://github.com/sashkab>) and rndr <https://github.com/rndr>_.

  • 474 <https://github.com/tox-dev/tox/issues/474>_: Start using setuptools_scm for tag based versioning.

  • 484 <https://github.com/tox-dev/tox/issues/484>: Renamed py.test to pytest throughout the project. Thanks Slam (3lnc <https://github.com/3lnc>).

  • 504 <https://github.com/tox-dev/tox/issues/504>: With -a: do not show additional environments header if there are none. Thanks rndr <https://github.com/rndr>.

  • 515 <https://github.com/tox-dev/tox/issues/515>: Don't require environment variables in test environments where they are not used. Thanks André Caron (AndreLouisCaron <https://github.com/AndreLouisCaron>).

  • 517 <https://github.com/tox-dev/tox/issues/517>_: Forward NUMBER_OF_PROCESSORS by default on Windows to fix multiprocessor.cpu_count(). Thanks André Caron (AndreLouisCaron <https://github.com/AndreLouisCaron>_).

  • 518 <https://github.com/tox-dev/tox/issues/518>: Forward USERPROFILE by default on Windows. Thanks André Caron (AndreLouisCaron <https://github.com/AndreLouisCaron>).

  • pull request 528 <https://github.com/tox-dev/tox/pull/528>: Fix some of the warnings displayed by pytest 3.1.0. Thanks Bruno Oliveira (nicoddemus <https://github.com/nicoddemus>).

  • pull request 547 <https://github.com/tox-dev/tox/pull/547>: Add regression test for 137 <https://github.com/tox-dev/tox/issues/137>. Thanks Martin Andrysík (sifuraz <https://github.com/sifuraz>_).

  • pull request 553 <https://github.com/tox-dev/tox/pull/553>: Add an XFAIL test to reproduce upstream bug 203 <https://github.com/tox-dev/tox/issues/203>. Thanks Bartolomé Sánchez Salado (bartsanchez <https://github.com/bartsanchez>_).

  • pull request 556 <https://github.com/tox-dev/tox/pull/556>: Report more meaningful errors on why virtualenv creation failed. Thanks vlaci <https://github.com/vlaci>. Also thanks to Igor Sadchenko (igor-sadchenko <https://github.com/igor-sadchenko>_) for pointing out a problem with that PR before it hit the masses ☺

  • pull request 575 <https://github.com/tox-dev/tox/pull/575>_: Add announcement doc to end all announcement docs (using only CHANGELOG and Github issues since 2.5 already).

  • pull request 580 <https://github.com/tox-dev/tox/pull/580>: Do not ignore Sphinx warnings anymore. Thanks Bernát Gábor (gaborbernat <https://github.com/gaborbernat>).

  • pull request 585 <https://github.com/tox-dev/tox/pull/585>: Expand documentation to explain pass through of flags from deps to pip (e.g. -rrequirements.txt, -cconstraints.txt). Thanks Alexander Loechel (loechel <https://github.com/loechel>).

  • pull request 588 <https://github.com/tox-dev/tox/pull/588>_: Run pytest wit xfail_strict and adapt affected tests.

Sphinx 1.6.3 -> 1.6.4

1.6.4

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

Features added

  • 3926: Add autodoc_warningiserror to suppress the behavior of -W option during importing target modules on autodoc

Bugs fixed

  • 3924: docname lost after dynamically parsing RST in extension
  • 3946: Typo in sphinx.sty (this was a bug with no effect in default context)
  • :pep: and :rfc: does not supports default-role directive (refs: 3960)
  • 3960: default_role = 'guilabel' not functioning
  • Missing texinputs_win/Makefile to be used in latexpdf builder on windows.
  • 4026: nature: Fix macOS Safari scrollbar color
  • 3877: Fix for C++ multiline signatures.
  • 4006: Fix crash on parallel build
  • 3969: private instance attributes causes AttributeError
  • 4041: C++, remove extra name linking in function pointers.
  • 4038: C, add missing documentation of member role.
  • 4044: An empty multicolumn cell causes extra row height in PDF output
  • 4049: Fix typo in output of sphinx-build -h
  • 4062: hashlib.sha1() must take bytes, not unicode on Python 3
  • Avoid indent after index entries in latex (refs: 4066)
  • 4070: crashes when the warning message contains format strings
  • 4067: Return non-zero exit status when make subprocess fails
  • 4055: graphviz: the :align: option does not work for SVG output
  • 4055: graphviz: the :align: center option does not work for latex output
  • 4051: warn() function for HTML theme outputs 'None' string

cryptography 1.9 -> 2.1.1

2.1


* **FINAL DEPRECATION** Python 2.6 support is deprecated, and will be removed
 in the next release of ``cryptography``.
* **BACKWARDS INCOMPATIBLE:** ``Whirlpool``, ``RIPEMD160``, and
 ``UnsupportedExtension`` have been removed in accordance with our
 :doc:`/api-stability` policy.
* **BACKWARDS INCOMPATIBLE:** :attr:`~cryptography.x509.DNSName.value`,
 :attr:`~cryptography.x509.RFC822Name.value`, and
 :attr:`~cryptography.x509.UniformResourceIdentifier.value` will now return
 an :term:`A-label` string when parsing a certificate containing an
 internationalized domain name (IDN) or if the caller passed a :term:`U-label`
 to the constructor. See below for additional deprecations related to this
 change.
* Installing ``cryptography`` now requires ``pip`` 6 or newer.
* Deprecated passing :term:`U-label` strings to the
 :class:`~cryptography.x509.DNSName`,
 :class:`~cryptography.x509.UniformResourceIdentifier`, and
 :class:`~cryptography.x509.RFC822Name` constructors. Instead, users should
 pass values as :term:`A-label` strings with ``idna`` encoding if necessary.
 This change will not affect anyone who is not processing internationalized
 domains.
* Added support for
 :class:`~cryptography.hazmat.primitives.ciphers.algorithms.ChaCha20`. In
 most cases users should choose
 :class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`
 rather than using this unauthenticated form.
* Added :meth:`~cryptography.x509.CertificateRevocationList.is_signature_valid`
 to :class:`~cryptography.x509.CertificateRevocationList`.
* Support :class:`~cryptography.hazmat.primitives.hashes.BLAKE2b` and
 :class:`~cryptography.hazmat.primitives.hashes.BLAKE2s` with
 :class:`~cryptography.hazmat.primitives.hmac.HMAC`.
* Added support for
 :class:`~cryptography.hazmat.primitives.ciphers.modes.XTS` mode for
 AES.
* Added support for using labels with
 :class:`~cryptography.hazmat.primitives.asymmetric.padding.OAEP` when using
 OpenSSL 1.0.2 or greater.
* Improved compatibility with NSS when issuing certificates from an issuer
 that has a subject with non-``UTF8String`` string types.
* Add support for the :class:`~cryptography.x509.DeltaCRLIndicator` extension.
* Add support for the :class:`~cryptography.x509.TLSFeature`
 extension. This is commonly used for enabling ``OCSP Must-Staple`` in
 certificates.
* Add support for the :class:`~cryptography.x509.FreshestCRL` extension.

.. _v2-0-3:

### 2.0.3
  • Fixed an issue with weak linking symbols when compiling on macOS versions older than 10.12.

.. _v2-0-2:

2.0.2


* Marked all symbols as hidden in the ``manylinux1`` wheel to avoid a
 bug with symbol resolution in certain scenarios.

.. _v2-0-1:

### 2.0.1
  • Fixed a compilation bug affecting OpenBSD.
  • Altered the manylinux1 wheels to statically link OpenSSL instead of dynamically linking and bundling the shared object. This should resolve crashes seen when using uwsgi or other binaries that link against OpenSSL independently.
  • Fixed the stack level for the signer and verifier warnings.

.. _v2-0:

2.0



* **BACKWARDS INCOMPATIBLE:** Support for Python 3.3 has been dropped.
* We now ship ``manylinux1`` wheels linked against OpenSSL 1.1.0f. These wheels
 will be automatically used with most Linux distributions if you are running
 the latest pip.
* Deprecated the use of ``signer`` on
 :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`,
 and
 :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`
 in favor of ``sign``.
* Deprecated the use of ``verifier`` on
 :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`,
 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey`,
 and
 :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`
 in favor of ``verify``.
* Added support for parsing
 :class:`~cryptography.x509.certificate_transparency.SignedCertificateTimestamp`
 objects from X.509 certificate extensions.
* Added support for
 :class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`.
* Added support for
 :class:`~cryptography.hazmat.primitives.ciphers.aead.AESCCM`.
* Added
 :class:`~cryptography.hazmat.primitives.ciphers.aead.AESGCM`, a "one shot"
 API for AES GCM encryption.
* Added support for :doc:`/hazmat/primitives/asymmetric/x25519`.
* Added support for serializing and deserializing Diffie-Hellman parameters
 with
 :func:`~cryptography.hazmat.primitives.serialization.load_pem_parameters`,
 :func:`~cryptography.hazmat.primitives.serialization.load_der_parameters`,
 and
 :meth:`~cryptography.hazmat.primitives.asymmetric.dh.DHParameters.parameter_bytes`
 .
* The ``extensions`` attribute on :class:`~cryptography.x509.Certificate`,
 :class:`~cryptography.x509.CertificateSigningRequest`,
 :class:`~cryptography.x509.CertificateRevocationList`, and
 :class:`~cryptography.x509.RevokedCertificate` now caches the computed
 ``Extensions`` object. There should be no performance change, just a
 performance improvement for programs accessing the ``extensions`` attribute
 multiple times.

.. _v1-9:

pytest 3.1.3 -> 3.2.3

3.2.3

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

Bug Fixes

  • Fix crash in tab completion when no prefix is given. (2748 <https://github.com/pytest-dev/pytest/issues/2748>_)

  • The equality checking function (__eq__) of MarkDecorator returns False if one object is not an instance of MarkDecorator. (2758 <https://github.com/pytest-dev/pytest/issues/2758>_)

  • When running pytest --fixtures-per-test: don't crash if an item has no fixtureinfo attribute (e.g. doctests) (2788 <https://github.com/pytest-dev/pytest/issues/2788>)

Improved Documentation

  • In help text of -k option, add example of using not to not select certain tests whose names match the provided expression. (1442 <https://github.com/pytest-dev/pytest/issues/1442>_)

  • Add note in parametrize.rst about calling metafunc.parametrize multiple times. (1548 <https://github.com/pytest-dev/pytest/issues/1548>_)

Trivial/Internal Changes

  • Set xfail_strict=True in pytest's own test suite to catch expected failures as soon as they start to pass. (2722 <https://github.com/pytest-dev/pytest/issues/2722>_)

  • Fix typo in example of passing a callable to markers (in example/markers.rst) (2765 <https://github.com/pytest-dev/pytest/issues/2765>_)

3.2.2

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

Bug Fixes

  • Calling the deprecated request.getfuncargvalue() now shows the source of the call. (2681 <https://github.com/pytest-dev/pytest/issues/2681>_)

  • Allow tests declared as staticmethod to use fixtures. (2699 <https://github.com/pytest-dev/pytest/issues/2699>_)

  • Fixed edge-case during collection: attributes which raised pytest.fail when accessed would abort the entire collection. (2707 <https://github.com/pytest-dev/pytest/issues/2707>_)

  • Fix ReprFuncArgs with mixed unicode and UTF-8 args. (2731 <https://github.com/pytest-dev/pytest/issues/2731>_)

Improved Documentation

  • In examples on working with custom markers, add examples demonstrating the usage of pytest.mark.MARKER_NAME.with_args in comparison with pytest.mark.MARKER_NAME.__call__ (2604 <https://github.com/pytest-dev/pytest/issues/2604>_)

  • In one of the simple examples, use pytest_collection_modifyitems() to skip tests based on a command-line option, allowing its sharing while preventing a user error when acessing pytest.config before the argument parsing. (2653 <https://github.com/pytest-dev/pytest/issues/2653>_)

Trivial/Internal Changes

  • Fixed minor error in 'Good Practices/Manual Integration' code snippet. (2691 <https://github.com/pytest-dev/pytest/issues/2691>_)

  • Fixed typo in goodpractices.rst. (2721 <https://github.com/pytest-dev/pytest/issues/2721>_)

  • Improve user guidance regarding --resultlog deprecation. (2739 <https://github.com/pytest-dev/pytest/issues/2739>_)

3.2.1

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

Bug Fixes

  • Fixed small terminal glitch when collecting a single test item. (2579 <https://github.com/pytest-dev/pytest/issues/2579>_)

  • Correctly consider / as the file separator to automatically mark plugin files for rewrite on Windows. (2591 <https://github.com/pytest- dev/pytest/issues/2591>_)

  • Properly escape test names when setting PYTEST_CURRENT_TEST environment variable. (2644 <https://github.com/pytest-dev/pytest/issues/2644>_)

  • Fix error on Windows and Python 3.6+ when sys.stdout has been replaced with a stream-like object which does not implement the full io module buffer protocol. In particular this affects pytest-xdist users on the aforementioned platform. (2666 <https://github.com/pytest- dev/pytest/issues/2666>_)

Improved Documentation

  • Explicitly document which pytest features work with unittest. (2626 <https://github.com/pytest-dev/pytest/issues/2626>_)

3.2.0

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

Deprecations and Removals

  • pytest.approx no longer supports >, >=, < and <= operators to avoid surprising/inconsistent behavior. See the docs <https://docs.pytest.org/en/latest/builtin.htmlpytest.approx> for more information. (2003 <https://github.com/pytest-dev/pytest/issues/2003>)

  • All old-style specific behavior in current classes in the pytest's API is considered deprecated at this point and will be removed in a future release. This affects Python 2 users only and in rare situations. (2147 <https://github.com/pytest-dev/pytest/issues/2147>_)

  • A deprecation warning is now raised when using marks for parameters in pytest.mark.parametrize. Use pytest.param to apply marks to parameters instead. (2427 <https://github.com/pytest-dev/pytest/issues/2427>_)

Features

  • Add support for numpy arrays (and dicts) to approx. (1994 <https://github.com/pytest-dev/pytest/issues/1994>_)

  • Now test function objects have a pytestmark attribute containing a list of marks applied directly to the test function, as opposed to marks inherited from parent classes or modules. (2516 <https://github.com/pytest- dev/pytest/issues/2516>_)

  • Collection ignores local virtualenvs by default; --collect-in-virtualenv overrides this behavior. (2518 <https://github.com/pytest- dev/pytest/issues/2518>_)

  • Allow class methods decorated as staticmethod to be candidates for collection as a test function. (Only for Python 2.7 and above. Python 2.6 will still ignore static methods.) (2528 <https://github.com/pytest- dev/pytest/issues/2528>_)

  • Introduce mark.with_args in order to allow passing functions/classes as sole argument to marks. (2540 <https://github.com/pytest- dev/pytest/issues/2540>_)

  • New cache_dir ini option: sets the directory where the contents of the cache plugin are stored. Directory may be relative or absolute path: if relative path, then directory is created relative to rootdir, otherwise it is used as is. Additionally path may contain environment variables which are expanded during runtime. (2543 <https://github.com/pytest-dev/pytest/issues/2543>_)

  • Introduce the PYTEST_CURRENT_TEST environment variable that is set with the nodeid and stage (setup, call and teardown) of the test being currently executed. See the documentation <https://docs.pytest.org/en/latest/example/simple.htmlpytest-current-test- environment-variable> for more info. (2583 <https://github.com/pytest- dev/pytest/issues/2583>)

  • Introduced pytest.mark.filterwarnings mark which allows overwriting the warnings filter on a per test, class or module level. See the docs <https://docs.pytest.org/en/latest/warnings.htmlpytest-mark- filterwarnings> for more information. (2598 <https://github.com/pytest- dev/pytest/issues/2598>)

  • --last-failed now remembers forever when a test has failed and only forgets it if it passes again. This makes it easy to fix a test suite by selectively running files and fixing tests incrementally. (2621 <https://github.com/pytest-dev/pytest/issues/2621>_)

  • New pytest_report_collectionfinish hook which allows plugins to add messages to the terminal reporting after collection has been finished successfully. (2622 <https://github.com/pytest-dev/pytest/issues/2622>_)

  • Added support for PEP-415's <https://www.python.org/dev/peps/pep-0415/>_ Exception.__suppress_context__. Now if a raise exception from None is caught by pytest, pytest will no longer chain the context in the test report. The behavior now matches Python's traceback behavior. (2631 <https://github.com/pytest-dev/pytest/issues/2631>_)

  • Exceptions raised by pytest.fail, pytest.skip and pytest.xfail now subclass BaseException, making them harder to be caught unintentionally by normal code. (580 <https://github.com/pytest-dev/pytest/issues/580>_)

Bug Fixes

  • Set stdin to a closed PIPE in pytester.py.Testdir.popen() for avoid unwanted interactive pdb (2023 <https://github.com/pytest- dev/pytest/issues/2023>_)

  • Add missing encoding attribute to sys.std* streams when using capsys capture mode. (2375 <https://github.com/pytest- dev/pytest/issues/2375>_)

  • Fix terminal color changing to black on Windows if colorama is imported in a conftest.py file. (2510 <https://github.com/pytest- dev/pytest/issues/2510>_)

  • Fix line number when reporting summary of skipped tests. (2548 <https://github.com/pytest-dev/pytest/issues/2548>_)

  • capture: ensure that EncodedFile.name is a string. (2555 <https://github.com/pytest-dev/pytest/issues/2555>_)

  • The options --fixtures and --fixtures-per-test will now keep indentation within docstrings. (2574 <https://github.com/pytest- dev/pytest/issues/2574>_)

  • doctests line numbers are now reported correctly, fixing pytest-sugar122 <https://github.com/Frozenball/pytest-sugar/issues/122>. (2610 <https://github.com/pytest-dev/pytest/issues/2610>)

  • Fix non-determinism in order of fixture collection. Adds new dependency (ordereddict) for Python 2.6. (920 <https://github.com/pytest- dev/pytest/issues/920>_)

Improved Documentation

  • Clarify pytest_configure hook call order. (2539 <https://github.com/pytest-dev/pytest/issues/2539>_)

  • Extend documentation for testing plugin code with the pytester plugin. (971 <https://github.com/pytest-dev/pytest/issues/971>_)

Trivial/Internal Changes

  • Update help message for --strict to make it clear it only deals with unregistered markers, not warnings. (2444 <https://github.com/pytest- dev/pytest/issues/2444>_)

  • Internal code move: move code for pytest.approx/pytest.raises to own files in order to cut down the size of python.py (2489 <https://github.com/pytest- dev/pytest/issues/2489>_)

  • Renamed the utility function _pytest.compat._escape_strings to _ascii_escaped to better communicate the function's purpose. (2533 <https://github.com/pytest-dev/pytest/issues/2533>_)

  • Improve error message for CollectError with skip/skipif. (2546 <https://github.com/pytest-dev/pytest/issues/2546>_)

  • Emit warning about yield tests being deprecated only once per generator. (2562 <https://github.com/pytest-dev/pytest/issues/2562>_)

  • Ensure final collected line doesn't include artifacts of previous write. (2571 <https://github.com/pytest-dev/pytest/issues/2571>_)

  • Fixed all flake8 errors and warnings. (2581 <https://github.com/pytest- dev/pytest/issues/2581>_)

  • Added fix-lint tox environment to run automatic pep8 fixes on the code. (2582 <https://github.com/pytest-dev/pytest/issues/2582>_)

  • Turn warnings into errors in pytest's own test suite in order to catch regressions due to deprecations more promptly. (2588 <https://github.com/pytest-dev/pytest/issues/2588>_)

  • Show multiple issue links in CHANGELOG entries. (2620 <https://github.com/pytest-dev/pytest/issues/2620>_)

psycopg2 2.7.1 -> 2.7.3.1

2.7.3.1

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

  • Dropped libresolv from wheel package to avoid incompatibility with glibc 2.26 (wheels ticket 2)

2.7.3

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

  • Restored default :sql:timestamptz[] typecasting to Python !datetime. Regression introduced in Psycopg 2.7.2 (:ticket:578).

2.7.2

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

  • Fixed inconsistent state in externally closed connections (:tickets:263, 311, 443). Was fixed in 2.6.2 but not included in 2.7 by mistake.
  • Fixed Python exceptions propagation in green callback (:ticket:410).
  • Don't display the password in connection.dsn when the connection string is specified as an URI (:ticket:528).
  • Return objects with timezone parsing "infinity" :sql:timestamptz (:ticket:536).
  • Dropped dependency on VC9 runtime on Windows binary packages (:ticket:541).
  • Fixed segfault in ~connection.lobject() when mode\=\ !None (:ticket:544).
  • Fixed ~connection.lobject() keyword argument lobject_factory (:ticket:545).
  • Fixed ~psycopg2.extras.ReplicationCursor.consume_stream() keepalive_interval argument (:ticket:547).
  • Maybe fixed random import error on Python 3.6 in multiprocess environment (:ticket:550).
  • Fixed random !SystemError upon receiving abort signal (:ticket:551).
  • Accept ~psycopg2.sql.Composable objects in ~psycopg2.extras.ReplicationCursor.start_replication_expert() (:ticket:554).
  • Parse intervals returned as microseconds from Redshift (:ticket:558).
  • Added ~psycopg2.extras.Json !prepare() method to consider connection params when adapting (:ticket:562).
  • ~psycopg2.errorcodes map updated to PostgreSQL 10 beta 1.

That's it for now!

Happy merging! 🤖

pyup-bot commented 6 years ago

Closing this in favor of #107