#12355: Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters.
#12367: Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown.
#12381: Fix possible "Directory not empty" crashes arising from concurent cache dir (.pytest_cache) creation. Regressed in pytest 8.2.0.
Improved Documentation
#12290: Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme.
#12356: Added a subsection to the documentation for debugging flaky tests to mention
lack of thread safety in pytest as a possible source of flakyness.
#12363: The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
8.2.1
pytest 8.2.1 (2024-05-19)
Improvements
#12334: Support for Python 3.13 (beta1 at the time of writing).
Bug Fixes
#12120: Fix [PermissionError]{.title-ref} crashes arising from directories which are not selected on the command-line.
#12191: Keyboard interrupts and system exits are now properly handled during the test collection.
#12300: Fixed handling of 'Function not implemented' error under squashfuse_ll, which is a different way to say that the mountpoint is read-only.
#12308: Fix a regression in pytest 8.2.0 where the permissions of automatically-created .pytest_cache directories became rwx------ instead of the expected rwxr-xr-x.
Trivial/Internal Changes
#12333: pytest releases are now attested using the recent Artifact Attestation support from GitHub, allowing users to verify the provenance of pytest's sdist and wheel artifacts.
Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
Alex Waygood
Ali Hamdan
Edward Paget
Evgeniy Slobodkin
Hashem
hesam
Hugo van Kemenade
Ihor
James Braza
Jelle Zijlstra
jhance
Jukka Lehtosalo
Loïc Simon
Marc Mueller
Matthieu Devlin
Michael R. Crusoe
Nikita Sobolev
Oskari Lehto
Riccardo Di Maio
Richard Si
roberfi
Roman Solomatin
Sam Xifaras
Shantanu
Spencer Brown
Srinivas Lade
Tamir Duberstein
youkaichao
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Mypy 1.9
We’ve just uploaded mypy 1.9 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Breaking Changes
Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR 16883)
... (truncated)
Commits
c28b525 [1.10 backport] Fix error reporting on cached run after uninstallation of thi...
- Fix ``skip_missing_interpreters`` option for ``package = wheel`` (:issue:`3269`)
Bugfixes - 4.15.1
Fix section substitution with setenv. (:issue:3262)
Allow ConfigSet.add_config to receive parameterized generics for of_type. (:issue:3288)
v4.15.0 (2024-04-26)
Features - 4.15.0
- Add support for multiple appending override options (-x, --override) on command line - by :user:`amitschang`. (:issue:`3261`)
- Add support for inverting exit code success criteria using bang (!) (:issue:`3271`)
Bugfixes - 4.15.0
Fix issue that the leading character c was dropped from packages in constraints files - by :user:jugmac00. (:issue:3247)
Allow appending to deps with --override testenv.deps+=foo - by :user:stefanor. (:issue:3256)
Fix non-existing branch rewrite in the documentation to main. (:issue:3257)
Update test typing for build 1.2.0, which has an explicit Distribution type - by :user:stefanor. (:issue:3260)
Fix broken input parsing for --discover flag. - by :user:mimre25 (:issue:3272)
Improved Documentation - 4.15.0
- Rephrase ``--discover`` flag's description to avoid confusion between paths and executables. - by :user:`mimre25` (:issue:`3274`)
v4.14.2 (2024-03-22)
Bugfixes - 4.14.2
- Add provision arguments to ToxParser to fix crash when provisioning new tox environment without list-dependencies by :user:`seyidaniels` (:issue:`3190`)
Improved Documentation - 4.14.2
</code></pre>
<ul>
<li>Removed unused line from the 'fresh_subprocess' documentation. (:issue:<code>3241</code>)</li>
</ul>
<h2>v4.14.1 (2024-03-06)</h2>
<p>Bugfixes - 4.14.1</p>
<pre><code>- Fix crash with fresh subprocess, if the build backend is setuptools automatically enable fresh subprocesses for
build backend calls - by :user:`gaborbernat`. (:issue:`3235`)
</tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/tox-dev/tox/commit/079000fe80bb9baa3eb0e7f8f53f932810942d14"><code>079000f</code></a> release 4.15.1</li>
<li><a href="https://github.com/tox-dev/tox/commit/489ad821e5b9c6d5aff500e1b3abc4292f52a2dc"><code>489ad82</code></a> Fix section substitution with setenv (<a href="https://redirect.github.com/tox-dev/tox/issues/3289">#3289</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/7317225d179a7bd70cbe409f5273d6aa3ffac488"><code>7317225</code></a> Allow <code>ConfigSet.add_config</code> to receive parameterized generics for <code>of_type</code>....</li>
<li><a href="https://github.com/tox-dev/tox/commit/406f80887f757ba430c79280ad767492cf046296"><code>406f808</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/tox-dev/tox/issues/3283">#3283</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/5c28d9c180679ee712a2974f4bb7d4765295bd48"><code>5c28d9c</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/tox-dev/tox/issues/3279">#3279</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/f4e257c3a4ea000e07d5b670836d439f5e11fce6"><code>f4e257c</code></a> Fix broad build privileges @ GHA release workflow (<a href="https://redirect.github.com/tox-dev/tox/issues/3281">#3281</a>)</li>
<li><a href="https://github.com/tox-dev/tox/commit/77564a1aa04300a8b2cecf8f871864d60019d645"><code>77564a1</code></a> Fixed typo in user guide.</li>
<li><a href="https://github.com/tox-dev/tox/commit/e2f66b1b890f57a468c639c8c5ce7993d98ce447"><code>e2f66b1</code></a> [pre-commit.ci] auto fixes from pre-commit.com hooks</li>
<li><a href="https://github.com/tox-dev/tox/commit/9afc9cba99ed0f1b163a1a96727a3bf231a4f951"><code>9afc9cb</code></a> [pre-commit.ci] pre-commit autoupdate</li>
<li><a href="https://github.com/tox-dev/tox/commit/3db98229ac0730e204b832c911861249d389070c"><code>3db9822</code></a> fix skip with package = wheel (<a href="https://redirect.github.com/tox-dev/tox/issues/3269">#3269</a>)</li>
<li>See full diff in <a href="https://github.com/tox-dev/tox/compare/4.15.0...4.15.1">compare view</a></li>
</ul>
</details>
<br />
NumPy 2.0.0 is the first major release since 2006. It is the result of
11 months of development since the last feature release and is the work
of 212 contributors spread over 1078 pull requests. It contains a large
number of exciting new features as well as changes to both the Python
and C APIs.
This major release includes breaking changes that could not happen in a
regular minor (feature) release - including an ABI break, changes to
type promotion rules, and API changes which may not have been emitting
deprecation warnings in 1.26.x. Key documents related to how to adapt to
changes in NumPy 2.0, in addition to these release notes, include:
A new variable-length string dtype, numpy.dtypes.StringDType and a new
numpy.strings namespace with performant ufuncs for string operations,
Support for float32 and longdouble in all
numpy.fft functions,
Support for the array API standard in the main numpy
namespace.
Performance improvements:
Sorting functions sort, argsort,
partition, argpartition have been
accelerated through the use of the Intel x86-simd-sort and
Google Highway libraries, and may see large (hardware-specific)
speedups,
macOS Accelerate support and binary wheels for macOS >=14, with
significant performance improvements for linear algebra
operations on macOS, and wheels that are about 3 times smaller,
numpy.char fixed-length string operations have
been accelerated by implementing ufuncs that also support
numpy.dtypes.StringDType in addition to the
fixed-length string dtypes,
A new tracing and introspection API,
numpy.lib.introspect.opt_func_info, to determine
which hardware-specific kernels are available and will be
dispatched to.
numpy.save now uses pickle protocol version 4 for saving
arrays with object dtype, which allows for pickle objects larger
than 4GB and improves saving speed by about 5% for large arrays.
Python API improvements:
... (truncated)
Commits
1d49c7f Merge pull request #26698 from charris/prepare-2.0.0
Fix kernel crash on tensor.dtype.to_complex() after ~100 calls in ipython kernel (pytorch/pytorch#125154)
Release tracker pytorch/pytorch#125425 contains all relevant pull requests related to this release as well as links to related issues.
PyTorch 2.3: User-Defined Triton Kernels in torch.compile, Tensor Parallelism in Distributed
PyTorch 2.3 Release notes
Highlights
Backwards Incompatible Changes
Deprecations
New Features
Improvements
Bug fixes
Performance
Documentation
Highlights
We are excited to announce the release of PyTorch® 2.3! PyTorch 2.3 offers support for user-defined Triton kernels in torch.compile, allowing for users to migrate their own Triton kernels from eager without experiencing performance complications or graph breaks. As well, Tensor Parallelism improves the experience for training Large Language Models using native PyTorch functions, which has been validated on training runs for 100B parameter models.
This release is composed of 3393 commits and 426 contributors since PyTorch 2.2. We want to sincerely thank our dedicated community for your contributions. As always, we encourage you to try these out and report any issues as we improve 2.3. More information about how to get started with the PyTorch 2-series can be found at our Getting Started page.
Add warning when "alias" is set in ignored Annotated field by @nix010 in #9170
Support serialization of some serializable defaults in JSON schema by @sydney-runkle in #9624
Relax type specification for __validators__ values in create_model by @sydney-runkle in #9697
Breaking Change: Improve smart union matching logic by @sydney-runkle in pydantic/pydantic-core#1322
You can read more about our smart union matching logic here. In some cases, if the old behavior
is desired, you can switch to left-to-right mode and change the order of your Union members.
Performance
Internal Improvements
⚡️ Speed up _display_error_loc() by 25% in pydantic/v1/error_wrappers.py by @misrasaurabh1 in #9653
⚡️ Speed up _get_all_json_refs() by 34% in pydantic/json_schema.py by @misrasaurabh1 in #9650
⚡️ Speed up is_pydantic_dataclass() by 41% in pydantic/dataclasses.py by @misrasaurabh1 in #9652
⚡️ Speed up to_snake() by 27% in pydantic/alias_generators.py by @misrasaurabh1 in #9747
⚡️ Speed up unwrap_wrapped_function() by 93% in pydantic/_internal/_decorators.py by @misrasaurabh1 in #9727
Fixes
Replace __spec__.parent with __package__ by @hramezani in #9331
Updates the requirements on pytest, mypy, ruff, tox, pre-commit, numpy, torch, horde-sdk, horde-engine, horde-model-reference and pydantic to permit the latest version. Updates
pytest
from 8.2.0 to 8.2.2Release notes
Sourced from pytest's releases.
Commits
329d371
Prepare release version 8.2.2214d098
Merge pull request #12414 from bluetech/backport-12409153a436
[8.2.x] fixtures: fix catastrophic performance problem inreorder_items
b41d5a5
Merge pull request #12412 from pytest-dev/backport-12408-to-8.2.x9bb73d7
[8.2.x] cacheprovider: fix "Directory not empty" crash from cache directory c...4569a01
[8.2.x] doc: Update trainings/events (#12402)1d103e5
[8.2.x] Clarify pytest_ignore_collect docs (#12386)240a252
[8.2.x] Add html_baseurl to sphinx conf.py (#12372)a5ee3c4
Merge pull request #12370 from pytest-dev/backport-12368-to-8.2.xf7358ae
[8.2.x] unittest: fix class instances no longer released on test teardown sin...Updates
mypy
from 1.10.0 to 1.10.1Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
c28b525
[1.10 backport] Fix error reporting on cached run after uninstallation of thi...Updates
ruff
from 0.4.2 to 0.5.0Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
244b923
Add necessary permissions for cargo-dist Docker build (#12072)a8b48fc
Release v0.5.0 (#12068)04c8597
[flake8-simplify
] Stabilize detection of Yoda conditions for "constant" col...4029a25
[Ruff v0.5] Stabilise 15 pylint rules (#12051)0917ce1
Update documentation to mentionetcetera
crate instead ofdirs
for user c...22cebdf
Add server config to filter out syntax error diagnostics (#12059)72b6c26
SimplifyLinterResult
, avoid cloningParseError
(#11903)73851e7
Avoid displaying syntax error as log message (#11902)e7b4969
RemoveE999
as a rule, disallow any disablement methods for syntax error (#...c98d8a0
[pyflakes
] Stabilize detection of is comparisons to lists, etc. (F632
) (#...Updates
tox
to 4.15.1Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.