StellarCN / py-stellar-base

Stellar client library for the Python language
https://stellar-sdk.readthedocs.io
Apache License 2.0
348 stars 173 forks source link

chore: bump the python-packages group with 5 updates #928

Closed dependabot[bot] closed 7 months ago

dependabot[bot] commented 7 months ago

Bumps the python-packages group with 5 updates:

Package From To
pydantic 2.7.0 2.7.1
pytest 8.1.1 8.2.0
mypy 1.9.0 1.10.0
black 24.4.0 24.4.2
autodoc-pydantic 2.1.0 2.2.0

Updates pydantic from 2.7.0 to 2.7.1

Release notes

Sourced from pydantic's releases.

v2.7.1 (2024-04-23)

What's Changed

Packaging

New Features

Changes

  • Use field description for RootModel schema description when there is by @​LouisGobert in #9214

Fixes

New Contributors

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.7.0...v2.7.1/

Changelog

Sourced from pydantic's changelog.

v2.7.1 (2024-04-23)

GitHub release

What's Changed

Packaging

New Features

Changes

  • Use field description for RootModel schema description when there is by @​LouisGobert in #9214

Fixes

New Contributors

Commits
  • 2612947 2.7.1 release prep (#9307)
  • 2b8efa2 Move TODO regarding pickling to markdown (#9288)
  • 73d1049 adds test case for unexpected discriminated union behavior (#9236)
  • c33b925 Change CI to use macos-13 for Python 3.8 and 3.9 (#9305)
  • 82e4664 Fix model json schema with config types (#9287)
  • a0f18e3 Fix bullets in Strict Mode docs (#9296)
  • 77b0e1c Address case where model_construct on a class which defines model_post_init f...
  • 6322b24 Fix strict application to function-after with use_enum_values (#9279)
  • bb857bd docs(performance): remove section on literal vs enum performance (#9262)
  • 3c15a8b docs: make TypeAdapter example PEP-8 compliant (#9268)
  • Additional commits viewable in compare view


Updates pytest from 8.1.1 to 8.2.0

Release notes

Sourced from pytest's releases.

8.2.0

pytest 8.2.0 (2024-04-27)

Deprecations

  • #12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:

    • pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
    • pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
    • pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
    • pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
    • pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.

    The replacement parameters are available since pytest 7.0.0. The old parameters will be removed in pytest 9.0.0.

    See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.

Features

  • #11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @tests.txt. The file must have one argument per line.

    See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.

Improvements

  • #11523: pytest.importorskip{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised ImportError{.interpreted-text role="class"} instead of ModuleNotFoundError{.interpreted-text role="class"}.

    The warning can be suppressed by passing exc_type=ImportError to pytest.importorskip{.interpreted-text role="func"}.

    See import-or-skip-import-error{.interpreted-text role="ref"} for details.

  • #11728: For unittest-based tests, exceptions during class cleanup (as raised by functions registered with TestCase.addClassCleanup <unittest.TestCase.addClassCleanup>{.interpreted-text role="meth"}) are now reported instead of silently failing.

  • #11777: Text is no longer truncated in the short test summary info section when -vv is given.

  • #12112: Improved namespace packages detection when consider_namespace_packages{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs).

  • #9502: Added PYTEST_VERSION{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of pytest.__version__, and among other things can be used to easily check if code is running from within a pytest run.

Bug Fixes

  • #12065: Fixed a regression in pytest 8.0.0 where test classes containing setup_method and tests using @staticmethod or @classmethod would crash with AttributeError: 'NoneType' object has no attribute 'setup_method'.

    Now the request.instance <pytest.FixtureRequest.instance>{.interpreted-text role="attr"} attribute of tests using @staticmethod and @classmethod is no longer None, but a fresh instance of the class, like in non-static methods.

... (truncated)

Commits
  • 6bd3f31 Tweak changelog for 8.2.0
  • 9b6219b Prepare release version 8.2.0
  • 835765c Merge pull request #12130 from bluetech/fixtures-inline
  • 7e7503c unittest: report class cleanup exceptions (#12250)
  • 882c4da fixtures: inline fail_fixturefunc
  • 2e8fb9f fixtures: extract a _check_fixturedef method
  • acf2971 fixtures: inline _getnextfixturedef into _get_active_fixturedef
  • 3c77aec fixtures: move "request" check early
  • d217d68 fixtures: inline _compute_fixture_value
  • 530be28 fixtures: use early return in _get_active_fixturedef
  • Additional commits viewable in compare view


Updates mypy from 1.9.0 to 1.10.0

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next release

Mypy 1.10

We’ve just uploaded mypy 1.10 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 TypeIs (PEP 742)

Mypy now supports TypeIs (PEP 742), which allows functions to narrow the type of a value, similar to isinstance(). Unlike TypeGuard, TypeIs can narrow in both the if and else branches of an if statement:

from typing_extensions import TypeIs

def is_str(s: object) -> TypeIs[str]: return isinstance(s, str)

def f(o: str | int) -> None: if is_str(o): # Type of o is 'str' ... else: # Type of o is 'int' ...

TypeIs will be added to the typing module in Python 3.13, but it can be used on earlier Python versions by importing it from typing_extensions.

This feature was contributed by Jelle Zijlstra (PR 16898).

Support TypeVar Defaults (PEP 696)

PEP 696 adds support for type parameter defaults. Example:

from typing import Generic
from typing_extensions import TypeVar

</tr></table>

... (truncated)

Commits


Updates black from 24.4.0 to 24.4.2

Release notes

Sourced from black's releases.

24.4.2

This is a bugfix release to fix two regressions in the new f-string parser introduced in 24.4.1.

Parser

  • Fix regression where certain complex f-strings failed to parse (#4332)

Performance

  • Fix bad performance on certain complex string literals (#4331)

24.4.1

Highlights

  • Add support for the new Python 3.12 f-string syntax introduced by PEP 701 (#3822)

Stable style

  • Fix crash involving indented dummy functions containing newlines (#4318)

Parser

  • Add support for type parameter defaults, a new syntactic feature added to Python 3.13 by PEP 696 (#4327)

Integrations

  • Github Action now works even when git archive is skipped (#4313)
Changelog

Sourced from black's changelog.

24.4.2

This is a bugfix release to fix two regressions in the new f-string parser introduced in 24.4.1.

Parser

  • Fix regression where certain complex f-strings failed to parse (#4332)

Performance

  • Fix bad performance on certain complex string literals (#4331)

24.4.1

Highlights

  • Add support for the new Python 3.12 f-string syntax introduced by PEP 701 (#3822)

Stable style

  • Fix crash involving indented dummy functions containing newlines (#4318)

Parser

  • Add support for type parameter defaults, a new syntactic feature added to Python 3.13 by PEP 696 (#4327)

Integrations

  • Github Action now works even when git archive is skipped (#4313)
Commits


Updates autodoc-pydantic from 2.1.0 to 2.2.0

Release notes

Sourced from autodoc-pydantic's releases.

v2.2.0

2.2.0 (2024-04-26)

✨ Features

  • Allow empty strings for directive prefixes (#285) (be21d37)
  • Remove duplicated docs strings when use_attribute_docstrings is used in pydantic &gt;= 2.7 (#276) (0ddb12f)

🐛 Bug Fixes

  • deps: update dependency erdantic to <v2 (#246) (3c8daa8)
  • deps: update dependency erdantic to ^0.7.0 (#226) (0909963)
  • deps: update dependency flake8 to v7 (#233) (c270e8a)
  • deps: update dependency pytest to v8 (#234) (8b330af)
  • deps: update dependency sphinx-copybutton to ^0.5.0 (#227) (7ada937)
  • deps: update dependency sphinx-rtd-theme to v2 (#235) (f43cfa9)
  • deps: update dependency sphinxcontrib-mermaid to ^0.9.0 (#229) (984ce05)
  • Improve error message for _sort_summary_list failures (#243) (87923a1)
  • Test please-release (d4595bf)
  • Use more precise name instead of object_name for _sort_summary_list error msg (#244) (42bdd4b)

⛏ Other Changes

  • Add changelog-sections to please-release (#218) (5355f98)
  • Add refactor and more categories to release-please configuration. (#258) (71e1c60)
  • Add Coduim PR Agent Workflow (#236) (38f9e16)
  • Configure Renovate (#225) (efc2f9a)
  • Deactivate dependency dashboard (#238) (11afaf3)
  • deps: update abatilo/actions-poetry action to v3 (#230) (be248a4)
  • deps: update actions/checkout action to v4 (#231) (5774bdf)
  • deps: update actions/setup-python action to v5 (#232) (2bc973b)
  • fix link in all-contributors bot (#281) (8261254)
  • improve changelog (b22840f)
  • Remove dev extras and tox from pyproject.toml (204f246)
  • Remove dependabot in favor for Mend's renovate (#267) (9726cc5)
  • Revert all-contributors commit type (#282) [skip ci] (c4c8fe7)
  • Use ruff for linting and formatting (#242) (461be30)

📖 Documentation

  • add exs-dwoodward as a contributor for code (#250) (532b54f)
  • Add hint mentioning that pydantic directive prefixes allow empty strings (be21d37)
  • Add missing erdantic version number (#224) (4c9c6b2)
  • Fix broken link in example section (40b5b22)
  • Improve README.md with update badges and remove animated gif comparison examples (40b5b22)
  • improve erdantic example (3c8daa8)

... (truncated)

Changelog

Sourced from autodoc-pydantic's changelog.

2.2.0 (2024-04-26)

✨ Features

  • Allow empty strings for directive prefixes (#285) (be21d37)
  • Remove duplicated docs strings when use_attribute_docstrings is used in pydantic &gt;= 2.7 (#276) (0ddb12f)

🐛 Bug Fixes

  • deps: update dependency erdantic to <v2 (#246) (3c8daa8)
  • deps: update dependency erdantic to ^0.7.0 (#226) (0909963)
  • deps: update dependency flake8 to v7 (#233) (c270e8a)
  • deps: update dependency pytest to v8 (#234) (8b330af)
  • deps: update dependency sphinx-copybutton to ^0.5.0 (#227) (7ada937)
  • deps: update dependency sphinx-rtd-theme to v2 (#235) (f43cfa9)
  • deps: update dependency sphinxcontrib-mermaid to ^0.9.0 (#229) (984ce05)
  • Improve error message for _sort_summary_list failures (#243) (87923a1)
  • Test please-release (d4595bf)
  • Use more precise name instead of object_name for _sort_summary_list error msg (#244) (42bdd4b)

⛏ Other Changes

  • Add changelog-sections to please-release (#218) (5355f98)
  • Add refactor and more categories to release-please configuration. (#258) (71e1c60)
  • Add Coduim PR Agent Workflow (#236) (38f9e16)
  • Configure Renovate (#225) (efc2f9a)
  • Deactivate dependency dashboard (#238) (11afaf3)
  • deps: update abatilo/actions-poetry action to v3 (#230) (be248a4)
  • deps: update actions/checkout action to v4 (#231) (5774bdf)
  • deps: update actions/setup-python action to v5 (#232) (2bc973b)
  • fix link in all-contributors bot (#281) (8261254)
  • improve changelog (b22840f)
  • Remove dev extras and tox from pyproject.toml (204f246)
  • Remove dependabot in favor for Mend's renovate (#267) (9726cc5)
  • Revert all-contributors commit type (#282) [skip ci] (c4c8fe7)
  • Use ruff for linting and formatting (#242) (461be30)

📖 Documentation

  • add exs-dwoodward as a contributor for code (#250) (532b54f)
  • Add hint mentioning that pydantic directive prefixes allow empty strings (be21d37)
  • Add missing erdantic version number (#224) (4c9c6b2)
  • Fix broken link in example section (40b5b22)
  • Improve README.md with update badges and remove animated gif comparison examples (40b5b22)
  • improve erdantic example (3c8daa8)
  • Recommend globally installed tox instead of poetry installed tox (#223) (204f246)

... (truncated)

Commits
  • 98cdedd chore: release 2.2.0 (#217)
  • 36056f7 contributors: add azmeuk as a contributor for bug (#286)
  • be21d37 feat: Allow empty strings for directive prefixes (#285)
  • 80cf3e9 contributors: add annerademacher as a contributor for financial (#284)
  • c4c8fe7 chore: Revert all-contributors commit type (#282) [skip ci]
  • 8261254 chore: fix link in all-contributors bot (#281)
  • 47e98df contributors: add bruno-f-cruz as a contributor for bug (#280)
  • 2a899f1 contributors: add ITProKyle as a contributor for bug (#279) [skip ci]
  • bc4cdb6 contributors: add Carson-Shaar as a contributor for bug (#278) [skip ci]
  • 15cead4 contributors: add Galarzaa90 as a contributor for bug (#277)
  • Additional commits viewable in compare view


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
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.62%. Comparing base (c953c72) to head (d711596).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/StellarCN/py-stellar-base/pull/928/graphs/tree.svg?width=650&height=150&src=pr&token=kHAKcotfqv&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StellarCN)](https://app.codecov.io/gh/StellarCN/py-stellar-base/pull/928?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StellarCN) ```diff @@ Coverage Diff @@ ## main #928 +/- ## ======================================= Coverage 98.62% 98.62% ======================================= Files 253 253 Lines 13299 13299 ======================================= Hits 13116 13116 Misses 183 183 ``` | [Flag](https://app.codecov.io/gh/StellarCN/py-stellar-base/pull/928/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StellarCN) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/StellarCN/py-stellar-base/pull/928/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StellarCN) | `98.62% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StellarCN#carryforward-flags-in-the-pull-request-comment) to find out more.