* **BACKWARDS INCOMPATIBLE:** Support for OpenSSL less than 1.1.1e has been
removed. Users on older version of OpenSSL will need to upgrade.
* **BACKWARDS INCOMPATIBLE:** Dropped support for LibreSSL < 3.8.
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.3.1.
* Updated the minimum supported Rust version (MSRV) to 1.65.0, from 1.63.0.
* :func:`~cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key`
now enforces a minimum RSA key size of 1024-bit. Note that 1024-bit is still
considered insecure, users should generally use a key size of 2048-bits.
* :func:`~cryptography.hazmat.primitives.serialization.pkcs7.serialize_certificates`
now emits ASN.1 that more closely follows the recommendations in :rfc:`2315`.
* Added new :doc:`/hazmat/decrepit/index` module which contains outdated and
insecure cryptographic primitives.
:class:`~cryptography.hazmat.primitives.ciphers.algorithms.CAST5`,
:class:`~cryptography.hazmat.primitives.ciphers.algorithms.SEED`,
:class:`~cryptography.hazmat.primitives.ciphers.algorithms.IDEA`, and
:class:`~cryptography.hazmat.primitives.ciphers.algorithms.Blowfish`, which were
deprecated in 37.0.0, have been added to this module. They will be removed
from the ``cipher`` module in 45.0.0.
* Moved :class:`~cryptography.hazmat.primitives.ciphers.algorithms.TripleDES`
and :class:`~cryptography.hazmat.primitives.ciphers.algorithms.ARC4` into
:doc:`/hazmat/decrepit/index` and deprecated them in the ``cipher`` module.
They will be removed from the ``cipher`` module in 48.0.0.
* Added support for deterministic
:class:`~cryptography.hazmat.primitives.asymmetric.ec.ECDSA` (:rfc:`6979`)
* Added support for client certificate verification to the
:mod:`X.509 path validation <cryptography.x509.verification>` APIs in the
form of :class:`~cryptography.x509.verification.ClientVerifier`,
:class:`~cryptography.x509.verification.VerifiedClient`, and
``PolicyBuilder``
:meth:`~cryptography.x509.verification.PolicyBuilder.build_client_verifier`.
* Added Certificate
:attr:`~cryptography.x509.Certificate.public_key_algorithm_oid`
and Certificate Signing Request
:attr:`~cryptography.x509.CertificateSigningRequest.public_key_algorithm_oid`
to determine the :class:`~cryptography.hazmat._oid.PublicKeyAlgorithmOID`
Object Identifier of the public key found inside the certificate.
* Added :attr:`~cryptography.x509.InvalidityDate.invalidity_date_utc`, a
timezone-aware alternative to the naïve ``datetime`` attribute
:attr:`~cryptography.x509.InvalidityDate.invalidity_date`.
* Added support for parsing empty DN string in
:meth:`~cryptography.x509.Name.from_rfc4514_string`.
* Added the following properties that return timezone-aware ``datetime`` objects:
:meth:`~cryptography.x509.ocsp.OCSPResponse.produced_at_utc`,
:meth:`~cryptography.x509.ocsp.OCSPResponse.revocation_time_utc`,
:meth:`~cryptography.x509.ocsp.OCSPResponse.this_update_utc`,
:meth:`~cryptography.x509.ocsp.OCSPResponse.next_update_utc`,
:meth:`~cryptography.x509.ocsp.OCSPSingleResponse.revocation_time_utc`,
</tr></table>
... (truncated)
Commits
ebf14f2 bump for 43.0.0 and update changelog (#11311)
42788a0 Fix exchange with keys that had Q automatically computed (#11309)
This is the technical changelog for version 21.4. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes
Full Support for Bot API 7.5 (:pr:4328, :pr:4316, :pr:4315, :pr:4312 closes :issue:4310, :pr:4311)
Full Support for Bot API 7.6 (:pr:4333 closes :issue:4331, :pr:4344, :pr:4341, :pr:4334, :pr:4335, :pr:4351, :pr:4342, :pr:4348)
Full Support for Bot API 7.7 (:pr:4356 closes :issue:4355)
Drop python-telegram-bot-raw And Switch to pyproject.toml Based Packaging (:pr:4288 closes :issue:4129 and :issue:4296)
Deprecate Inclusion of successful_payment in Message.effective_attachment (:pr:4365 closes :issue:4350)
New Features
Add Support for Python 3.13 Beta (:pr:4253)
Add filters.PAID_MEDIA (:pr:4357)
Log Received Data on Deserialization Errors (:pr:4304)
Add MessageEntity.adjust_message_entities_to_utf_16 Utility Function (:pr:4323 by Antares0982 <https://github.com/Antares0982>_ closes :issue:4319)
Make Argument bot of TelegramObject.de_json Optional (:pr:4320)
We’ve just uploaded mypy 1.11 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.
Support Python 3.12 Syntax for Generics (PEP 695)
Mypy now supports the new type parameter syntax introduced in Python 3.12 (PEP 695).
This feature is still experimental and must be enabled with the --enable-incomplete-feature=NewGenericSyntax flag, or with enable_incomplete_feature = NewGenericSyntax in the mypy configuration file.
We plan to enable this by default in the next mypy feature release.
This example demonstrates the new syntax:
# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
reveal_type(f(1)) # Revealed type is 'int'
Generic class
class C[T]:
def init(self, x: T) -> None:
self.x = x
c = C('a')
reveal_type(c.x) # Revealed type is 'str'
Type alias
type A[T] = C[list[T]]
This feature was contributed by Jukka Lehtosalo.
Support for functools.partial
Mypy now type checks uses of functools.partial. Previously mypy would accept arbitrary arguments.
The 8.3.0 release failed to include the change notes and docs for the release. This patch release remedies this. There are no other changes.
8.3.0
pytest 8.3.0 (2024-07-20)
New features
#12231: Added [--xfail-tb]{.title-ref} flag, which turns on traceback output for XFAIL results.
If the [--xfail-tb]{.title-ref} flag is not given, tracebacks for XFAIL results are NOT shown.
The style of traceback for XFAIL is set with [--tb]{.title-ref}, and can be [auto|long|short|line|native|no]{.title-ref}.
Note: Even if you have [--xfail-tb]{.title-ref} set, you won't see them if [--tb=no]{.title-ref}.
Some history:
With pytest 8.0, [-rx]{.title-ref} or [-ra]{.title-ref} would not only turn on summary reports for xfail, but also report the tracebacks for xfail results. This caused issues with some projects that utilize xfail, but don't want to see all of the xfail tracebacks.
This change detaches xfail tracebacks from [-rx]{.title-ref}, and now we turn on xfail tracebacks with [--xfail-tb]{.title-ref}. With this, the default [-rx]{.title-ref}/ [-ra]{.title-ref} behavior is identical to pre-8.0 with respect to xfail tracebacks. While this is a behavior change, it brings default behavior back to pre-8.0.0 behavior, which ultimately was considered the better course of action.
#12281: Added support for keyword matching in marker expressions.
Now tests can be selected by marker keyword arguments.
Supported values are int{.interpreted-text role="class"}, (unescaped) str{.interpreted-text role="class"}, bool{.interpreted-text role="class"} & None{.interpreted-text role="data"}.
See marker examples <marker_keyword_expression_example>{.interpreted-text role="ref"} for more information.
-- by lovetheguitar{.interpreted-text role="user"}
#12567: Added --no-fold-skipped command line option.
If this option is set, then skipped tests in short summary are no longer grouped
by reason but all tests are printed individually with their nodeid in the same
way as other statuses.
-- by pbrezina{.interpreted-text role="user"}
Improvements in existing functionality
#12469: The console output now uses the "third-party plugins" terminology,
replacing the previously established but confusing and outdated
reference to setuptools <setuptools:index>{.interpreted-text role="std:doc"}
-- by webknjaz{.interpreted-text role="user"}.
#12544, #12545: Python virtual environment detection was improved by
checking for a pyvenv.cfg{.interpreted-text role="file"} file, ensuring reliable detection on
various platforms -- by zachsnickers{.interpreted-text role="user"}.
Exclusion patterns can now be multi-line, thanks to Daniel Diniz <pull 1807_>. This enables many interesting exclusion use-cases, including those
requested in issues 118 <issue 118_> (entire files), 996 <issue 996_>_ (multiple lines only when appearing together), 1741 <issue 1741_>_ (remainder of a function), and 1803 <issue 1803_>_
(arbitrary sequence of marked lines). See the :ref:multi_line_exclude
section of the docs for more details and examples.
The JSON report now includes per-function and per-class coverage information.
Thanks to Daniel Diniz <pull 1809_>_ for getting the work started. This
closes issue 1793_ and issue 1532_.
Fixed an incorrect calculation of "(no class)" lines in the HTML classes
report.
Bumps the deps group with 12 updates in the / directory:
2.7.4
2.8.2
3.12.3
3.14.0
1.0.1
1.1
4.9.0
4.10.0
42.0.8
43.0.0
21.3
21.4
1.10.1
1.11.0
8.2.2
8.3.1
7.5.4
7.6.0
4.22.0
4.23.0
0.71.0
0.72.0
0.16.0
0.17.0
Updates
pydantic
from 2.7.4 to 2.8.2Release notes
Sourced from pydantic's releases.
... (truncated)
Changelog
Sourced from pydantic's changelog.
... (truncated)
Commits
4978ee2
update history0345929
v bumpd390a04
Fix issue with assertion caused by pluggable schema validator (#9838)040865f
update history5a33e3b
bump version2f9abb2
Bumppydantic-core
tov2.20.1
,pydantic-extra-types
tov2.9.0
(#9832)ce9c5f7
Remove spooky meetings file (#9824)6bdd6d1
Pedantic typo correction within explanation of Pydantic's root in 'pedantic' ...701ccde
Fix list constraint json schema application (#9818)2a066a2
Bumpruff
tov0.5.0
andpyright
tov1.1.369
(#9801)Updates
ydb
from 3.12.3 to 3.14.0Release notes
Sourced from ydb's releases.
Changelog
Sourced from ydb's changelog.
Commits
513d840
Release: 3.14.08fc3f56
Update CHANGELOG.mdc5a7c9c
Merge pull request #453 Load OAuth 2.0 token exchange credentials provider fr...4aa4f1c
Load OAuth 2.0 token exchange credentials provider from config filecd58033
Release: 3.13.16d9e936
Update CHANGELOG.mdb508d23
Merge pull request #450 from ydb-platform/fix_drafts_importa5bdfe8
style fixes4c6b7ad
Move draft imports to draft folderc71f09c
Release: 3.13.0Updates
pympler
from 1.0.1 to 1.1Changelog
Sourced from pympler's changelog.
Commits
25578c3
Update version1f588bc
Update changelogc9560b4
Update changelog and version requirementsb674075
Remove Python 3.13 support for now07c31b7
Fix RefBrowser on Python 3.11+dd1fecd
Adapt the garbage collector test to Python 3.11+11c4632
Catch errors on numpy attribute check3fabce2
Fix sizing of objects with references to each otherc73234d
Install setuptools for all Python versionsc1d28bd
Temporarily disable build cancellationsUpdates
humanize
from 4.9.0 to 4.10.0Release notes
Sourced from humanize's releases.
Commits
2a141c7
[pre-commit.ci] pre-commit autoupdate (#190)cae4163
Ruff updatesaa3a94e
Configure pyproject-fmt for 3.13 Trove classifier03af6b2
[pre-commit.ci] pre-commit autoupdateb47d5ee
Update dependency mkdocstrings to v0.25.1 (#189)2af4eb3
Update dependency mkdocstrings to v0.25.114ff668
Remove shebang from filesize.py (#188)4a37bd1
[pre-commit.ci] auto fixes from pre-commit.com hooksae20f3b
Remove shebang from filesize.pyf33d942
Update docs/requirements.txt (#186)Updates
cryptography
from 42.0.8 to 43.0.0Changelog
Sourced from cryptography's changelog.
... (truncated)
Commits
ebf14f2
bump for 43.0.0 and update changelog (#11311)42788a0
Fix exchange with keys that had Q automatically computed (#11309)2dbdfb8
don't assign unused name (#11310)ccc66e6
Bump openssl from 0.10.64 to 0.10.65 in /src/rust (#11308)4310c87
Bump sphinxcontrib-qthelp from 1.0.7 to 1.0.8 (#11307)f66a9c4
Bump sphinxcontrib-htmlhelp from 2.0.5 to 2.0.6 (#11306)a8fcf18
Bump openssl-sys from 0.9.102 to 0.9.103 in /src/rust (#11305)2fe32b2
Bump mypy from 1.10.1 to 1.11.0 (#11303)ee24e82
Bump setuptools from 71.0.3 to 71.0.4 in /.github/requirements (#11304)7249ccd
Bump portable-atomic from 1.6.0 to 1.7.0 in /src/rust (#11302)Updates
python-telegram-bot
from 21.3 to 21.4Release notes
Sourced from python-telegram-bot's releases.
Changelog
Sourced from python-telegram-bot's changelog.
... (truncated)
Commits
2ac4e00
Bump version to v21.4 (#4371)efe1392
Automate PyPI Releases (#4364)0a673e8
Documentation Improvements (#4303)86c8cae
Restructure Readme (#4362)f737702
Use a Composite Action for Testing Type Completeness (#4367)06f1da5
Stabilize Some Concurrency Usages in Test Suite (#4360)7a470d5
Add a Test Case forMenuButton
(#4363)1714bfd
Deprecate Inclusion ofsuccessful_payment
inMessage.effective_attachment
...71e4015
API 7.7 (#4356)52237cf
Addfilters.PAID_MEDIA
(#4357)Updates
mypy
from 1.10.1 to 1.11.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
dbd5f5c
Remove +dev from version for 1.11 releasef0a8c69
Update CHANGELOG for mypy 1.11 (#17540)371f780
CHANGELOG.md update for 1.11 (#17539)2563da0
Fix daemon crash on invalid type in TypedDict (#17495)d8c67c3
[release 1.11] Ignore some errors in typeshed (#17510)294daff
Mention --enable-incomplete-feature=NewGenericSyntax (#17462)5c33abf
Further improvements to functools.partial handling (#17425)c37d972
Fix type comments crash inside generic definitions (#16849)d39f023
Add changelog entry for 1.10.1 (#17436)6c1d867
Fix ParamSpec inference against TypeVarTuple (#17431)Updates
pytest
from 8.2.2 to 8.3.1Release notes
Sourced from pytest's releases.
... (truncated)
Commits
de98446
Prepare release version 8.3.1bd0a042
Merge pull request #12636 from pytest-dev/update-release-notes664325b
doc/changelog: update 8.3.0 notes19d225d
Merge pull request #12635 from pytest-dev/release-8.3.0bc33028
Prepare release version 8.3.0a7d5a8e
Merge pull request #12557 from x612skm/maintainence/11771-pypy-3.9-bumpced7072
Add a change note for PR #11771d42b76d
Adjust test_errors_in_xfail_skip_expressions for PyPy9eee45a
Bump PyPy runtime to v3.9 @ GHAd489247
Fix caching of parameterized fixtures (#12600)Updates
coverage
from 7.5.4 to 7.6.0Changelog
Sourced from coverage's changelog.
Commits
59a3cd7
docs: sample HTML for 7.6.07f27fa7
docs: prep for 7.6.06a268b0
docs: issues closed by the json region reporting5bfe9e7
chore: bump actions/setup-python from 5.1.0 to 5.1.1 (#1814)ab609ef
docs: mention json region reporting in the changes92d96b9
fix: json report needs 'no class' and 'no function' alsoe47e7e7
refactor: move duplicate code into methods3d6be2b
fix: json format should bump for regionsa9992d2
test: add a test of json regions with branches8b89764
test: json expectations should have explicit format numberUpdates
jsonschema
from 4.22.0 to 4.23.0Release notes
Sourced from jsonschema's releases.
Changelog
Sourced from jsonschema's changelog.
Commits
cfe8a40
Document the other change, and call this 4.23.0.25127a1
Merge pull request #1282 from rominf/rominf-python3.1340410c4
Declare support for 3.133a44b4b
Merge pull request #1276 from python-jsonschema/pre-commit-ci-update-config6a00e35
[pre-commit.ci] pre-commit autoupdate84fee43
Merge pull request #1273 from python-jsonschema/pre-commit-ci-update-configa90d6e2
[pre-commit.ci] pre-commit autoupdatec3a8641
Merge pull request #1272 from python-jsonschema/pre-commit-ci-update-configdeb5398
[pre-commit.ci] pre-commit autoupdate7fd28c3
Update the (ancient draft3) color format for newer webcolors.Updates
python-on-whales
from 0.71.0 to 0.72.0Release notes
Sourced from python-on-whales's releases.