This is a fix release for the 3.0.x feature release branch.
Fixes an issue where using other JSON providers, such as flask-orjson, previously caused loaded session data to have an incorrect format in some cases.
Correct type for path argument to send_file. :issue:5230
Fix a typo in an error message for the flask run --key option. :pr:5344
Session data is untagged without relying on the built-in json.loadsobject_hook. This allows other JSON providers that don't implement that.
:issue:5381
Address more type findings when using mypy strict mode. :pr:5383
This release brings support for weights in correlation and covariance functions,
a new DataArray.cumulative aggregation, improvements to xr.map_blocks,
an update to our minimum dependencies, and various bugfixes.
Thanks to our 17 contributors to this release:
Abel Aoun, Deepak Cherian, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer,
Llorenç Lledó, Mark Harfouche, Markel, Mathias Hauser, Maximilian Roos, Michael Niklas,
Niclas Rieger, Sébastien Celles, Tom Nicholas, Trinh Quoc Anh, and crusaderky.
SciPy 1.12.0 is the culmination of 6 months of hard work. It contains
many new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with python -Wd and check for DeprecationWarning s).
Our development attention will now shift to bug-fix releases on the
1.12.x branch, and on adding new features on the main branch.
This release requires Python 3.9+ and NumPy 1.22.4 or greater.
For running on PyPy, PyPy3 6.0+ is required.
Highlights of this release
Experimental support for the array API standard has been added to part of
scipy.special, and to all of scipy.fft and scipy.cluster. There are
likely to be bugs and early feedback for usage with CuPy arrays, PyTorch
tensors, and other array API compatible libraries is appreciated. Use the
SCIPY_ARRAY_API environment variable for testing.
A new class, ShortTimeFFT, provides a more versatile implementation of the
short-time Fourier transform (STFT), its inverse (ISTFT) as well as the (cross-)
spectrogram. It utilizes an improved algorithm for calculating the ISTFT.
Several new constructors have been added for sparse arrays, and many operations
now additionally support sparse arrays, further facilitating the migration
from sparse matrices.
A large portion of the scipy.stats API now has improved support for handling
NaN values, masked arrays, and more fine-grained shape-handling. The
accuracy and performance of a number of stats methods have been improved,
and a number of new statistical tests and distributions have been added.
New features
scipy.cluster improvements
Experimental support added for the array API standard; PyTorch tensors,
CuPy arrays and array API compatible array libraries are now accepted
(GPU support is limited to functions with pure Python implementations).
CPU arrays which can be converted to and from NumPy are supported
module-wide and returned arrays will match the input type.
This behaviour is enabled by setting the SCIPY_ARRAY_API environment
variable before importing scipy. This experimental support is still
under development and likely to contain bugs - testing is very welcome.
See 8.0.0rc1 and 8.0.0rc2 for the full changes since pytest 7.4!
Bug Fixes
#11842: Properly escape the reason of a skip <pytest.mark.skip ref>{.interpreted-text role="ref"} mark when writing JUnit XML files.
#11861: Avoid microsecond exceeds 1_000_000 when using log-date-format with %f specifier, which might cause the test suite to crash.
8.0.0rc2
pytest 8.0.0rc2 (2024-01-17)
Improvements
#11233: Improvements to -r for xfailures and xpasses:
Report tracebacks for xfailures when -rx is set.
Report captured output for xpasses when -rX is set.
For xpasses, add - in summary between test name and reason, to match how xfail is displayed.
#11825: The pytest_plugin_registered{.interpreted-text role="hook"} hook has a new plugin_name parameter containing the name by which plugin is registered.
Bug Fixes
#11706: Fix reporting of teardown errors in higher-scoped fixtures when using [--maxfail]{.title-ref} or [--stepwise]{.title-ref}.
#11758: Fixed IndexError: string index out of range crash in if highlighted[-1] == "\n" and source[-1] != "\n".
This bug was introduced in pytest 8.0.0rc1.
#9765, #11816: Fixed a frustrating bug that afflicted some users with the only error being assert mod not in mods. The issue was caused by the fact that str(Path(mod)) and mod.__file__ don't necessarily produce the same string, and was being erroneously used interchangably in some places in the code.
This fix also broke the internal API of PytestPluginManager.consider_conftest by introducing a new parameter -- we mention this in case it is being used by external code, even if marked as private.
#7363: PytestRemovedIn8Warning deprecation warnings are now errors by default.
Following our plan to remove deprecated features with as little disruption as possible, all warnings of type PytestRemovedIn8Warning now generate errors instead of warning messages by default.
The affected features will be effectively removed in pytest 8.1, so please consult the deprecations{.interpreted-text role="ref"} section in the docs for directions on how to update existing code.
In the pytest 8.0.X series, it is possible to change the errors back into warnings as a stopgap measure by adding this to your pytest.ini file:
Stop removing spaces from walrus operators within subscripts (#3823)
Fix incorrect formatting of certain async statements (#3609)
Allow combining # fmt: skip with other comments (#3959)
There are already a few improvements in the --preview style, which are slated for the
2025 stable style. Try them out and
share your feedback. In the past, the preview
style has included some features that we were not able to stabilize. This year, we're
Stop removing spaces from walrus operators within subscripts (#3823)
Fix incorrect formatting of certain async statements (#3609)
Allow combining # fmt: skip with other comments (#3959)
There are already a few improvements in the --preview style, which are slated for the
2025 stable style. Try them out and
share your feedback. In the past, the preview
style has included some features that we were not able to stabilize. This year, we're
Docker Digest for 5.0.0: sha256:2faf2460a6446dfe472ac0d799e00341b1c84203d08540c247a6cc09be7c54e9
General:
* All decorators have been replaced with a single decorator:
`mock_aws`
* The `mock_batch_simple` and `mock_lambda_simple` decorators can now be configured using the `config`-parameter:
`@mock_aws(config={"batch": {"use_docker": False}, "lambda": {"use_docker": False}})`
* It is now possible to configure methods/services which should reach out to AWS.
@mock_aws(
config={"core": {"mock_credentials": False, "passthrough": {"urls": [], "services": []}}}
)
* All requests now return a RequestId
Miscellaneous:
* IAM: The AWS managed Policies are no longer loaded by default.
If your application depends on these policies, tell Moto explicitly to load them like so:
@mock_aws(config={"iam": {"load_aws_managed_policies": True}})
Or by setting an environment variable:
MOTO_IAM_LOAD_MANAGED_POLICIES=true
* S3: list_objects() now returns a hashed ContinuationToken
4.2.14
Docker Digest for 4.2.14: sha256:2fa10aa48e32f85c63c62a7d437b8a4b320a56a8494bc25d45ced370bc159c23
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the pip-dependencies group with 9 updates:
3.0.0
3.0.1
2023.12.0
2024.1.1
1.11.4
1.12.0
14.0.2
15.0.0
7.4.4
8.0.0
23.12.1
24.1.1
7.4.0
7.4.1
1.0.0
1.0.1
4.2.13
5.0.0
Updates
flask
from 3.0.0 to 3.0.1Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
Commits
f622b1c
release version 3.0.15fcc999
fix create release actionda3a0dd
fix slsa generator version5e059be
update actions versionsbae6ee8
address mypy strict findings (#5383)81b3c85
update requirements08d3185
update pre-commit hooks6000e80
address mypy strict findings5a48a0f
untag withoutobject_hook
(#5382)700fc7d
untag without object_hookUpdates
xarray
from 2023.12.0 to 2024.1.1Release notes
Sourced from xarray's releases.
Commits
15fb1d8
whatsnew for v2024.01.1d34ebff
implementisnull
usingfull_like
instead ofzeros_like
(#7395)0475435
Fixed typo in custom backend registration documentation (#8645)0a61f0e
Pin sphinx-book-theme to 1.0.1 to try to deal with #8619 (#8632)4bb5175
infer_freq: return 'YE' (#8629 follow-up) (#8642)4b5c87b
Use ddof innumbagg>=0.7.0
for aggregations (#8624)f07e895
xfail zarr test on Windows (#8643)d6deb46
Pandas 2.2.0 test fixes (#8638)5a92d48
rename "Y" freq string to "YE" (pandas parity) (#8629)e571d1c
UseT_DataArray
inWeighted
(#8630)Updates
scipy
from 1.11.4 to 1.12.0Release notes
Sourced from scipy's releases.
... (truncated)
Commits
4edfcaa
REL: SciPy 1.12.0 release commit [wheel build]e3cff26
Merge pull request #19922 from tylerjereddy/treddy_1_12_0_final_prepbf02582
DOC: PR 19922 revisions [wheel build]41ed3d6
Revert "ENH: stats.wasserstein_distance: multivariate Wasserstein distance/EM...db2cb8c
DOC: update 1.12.0 relnotesc76bedf
BLD: ensure the name of the installedscipy
package is lower-caseaedbb2b
DEP: reflect extended deprecations also in release notes (#19903)0b4c8dc
DEP: extend some announced deprecations due to out-of-band 1.13 release (#19892)82dddc5
DOC: 1.12 release notes tweaks (#19877)e22a5ff
REL: 1.12.0 final unreleasedUpdates
pyarrow
from 14.0.2 to 15.0.0Commits
a61f4af
MINOR: [Release] Update versions for 15.0.0772747b
MINOR: [Release] Update .deb/.rpm changelogs for 15.0.09a9ba9b
MINOR: [Release] Update CHANGELOG.md for 15.0.0e93d1ee
GH-39562: [C++][Parquet] Fix crash in test_parquet_dataset_lazy_filtering (#3...d82a5d0
GH-39598: [C#] Fix verification script (#39605)ead7735
GH-39604: [JS] Do not use resizable buffers yet (#39607)0f862c9
GH-39624: [R][CI] Add CMake to docker file and update envvars (#39625)209620f
GH-39584: [R] fallback to source gracefully (#39587)98e5525
GH-39601: [R] Don't download cmake when TEST_OFFLINE_BUILD=true (#39602)eb6076f
GH-39588: [CI][Go] Add CGO_ENABLED=1 to cdata_integration build to fix macOS ...Updates
pytest
from 7.4.4 to 8.0.0Release notes
Sourced from pytest's releases.
... (truncated)
Commits
478f823
Prepare release version 8.0.06085900
[8.0.x] fix: avoid rounding microsecond to1_000_000
(#11863)3b41c65
[8.0.x] Escape skip reason in junitxml (#11845)747072a
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (#11768)011a475
Properly attach packages to the GH release notes (#11839) (#11840)97960bd
Merge pull request #11835 from pytest-dev/release-8.0.0rc26be0a3c
Prepare release version 8.0.0rc244ffe07
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x14ecb04
[8.0.x] testing: temporarily disable test due to hypothesis issue41c8dab
Merge pull request #11831 from bluetech/backport-11825-to-8.0.xUpdates
black
from 23.12.1 to 24.1.1Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
e026c93
Prepare release 24.1.1 (#4186)79fc115
chore: ignore node_modules (produced by a pre-commit check) (#4184)8bf0454
Consistently add trailing comma on typed parameters (#4164)1607e9a
Fix missing space in option description (#4182)ed770ba
Fix cache file length (#4176)659c29a
New changelog0e6e46b
Prepare release 24.1.0 (#4170)4f47cac
Add --unstable flag (#4096)bccec8a
Show warning on invalid toml configuration (#4165)7d78946
Describe 2024 module docstring more accurately (#4168)Updates
coverage
from 7.4.0 to 7.4.1Changelog
Sourced from coverage's changelog.
Commits
07588ea
test: give hypothesis a little more time2c96518
build: tags should be signed8d1857f
docs: sample HTML for 7.4.1ddc88f7
docs: prep for 7.4.198cd671
docs: correct two library urls498b8c9
build: coverage runs have to skip windows pypy too75b22f0
test: ignore color in tracebacksb7c41a2
build: show action environment variables for debuggingf8be865
build: run actions on 3.13 since a3 came out.de60a6d
build(deps): bump actions/dependency-review-action from 3 to 4Updates
python-dotenv
from 1.0.0 to 1.0.1Release notes
Sourced from python-dotenv's releases.
Changelog
Sourced from python-dotenv's changelog.
Commits
d6c0b96
Bumpversion 1.0.0 -> 1.0.142dc086
Update changelog for 1.0.1b1eebba
Add python 3.12 and pypy3.10 to test runner6ff1391
Fix temporary file is deleted before closing, in the rewrite function (#468)0b94ac0
Allow modules using load_dotenv to be reloaded when launched in a separate th...3ffcef6
Use https in README links (#474)be96be2
Use pathlib.Path in tests (#466)137bc3d
Gracefully handle code which has been imported from a zipfile (#456)dd1af68
FIx year in release in changelog (#453)Updates
moto
from 4.2.13 to 5.0.0Changelog
Sourced from moto's changelog.
... (truncated)
Commits
0255717
Prep Release V538f6359
Refactoring: Adding typing for event message structure (#7234)38ee3fa
Prep release 5.0.0alpha309c5751
MotoServer: skip using HTTP_HOST header when determining request origin (#7225)8199a88
Techdebt: Update scaffolding to use mock_aws (#7221)dea4a98
Techdebt: Remove old/deprecated code (#7220)16ba3de
Techdebt: Verify minimum boto3-version, up minimum responses version (#7218)f834d98
IAM: Only load AWS Managed Policies on request (#7219)0c8ccbb
Techdebt: Hide private decorator-methods/attributes (#7216)5aa3cc9
S3: list_objects_v2() should have a hashed NextContinuationToken (#7187)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show