Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency metadata-parser to v0.12.1 #815

Merged
merged 1 commit into from
May 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 15, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
metadata-parser ==0.12.0 -> ==0.12.1 age adoption passing confidence

Release Notes

jvanasco/metadata_parser (metadata-parser)

v0.12.1

Compare Source


Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from aurangzaib048 as a code owner April 15, 2024 14:38
@renovate renovate bot force-pushed the renovate/metadata-parser-0.x branch from e27beb5 to 3443f99 Compare April 29, 2024 19:06
@renovate renovate bot force-pushed the renovate/metadata-parser-0.x branch from 3443f99 to 2253381 Compare May 15, 2024 12:24
Copy link

[puLL-Merge] - jvanasco/metadata_parser@v0.12.0..v0.12.1

Description

This PR makes several changes to improve typing, add support for Python 3.12, and deprecate some legacy functionality.

Key changes include:

  • Adding type hints throughout the codebase to improve static type checking
  • Adding a new METADATA_PARSER_FUTURE environment variable that can be set to enable stricter deprecation warnings that raise exceptions
  • Adding support for parsing ParseResultBytes URL objects
  • Deprecating several methods on the MetadataParser class in favor of operating directly on the parsed result object
  • Adding Python 3.12 to the test matrix
Changes

Changes

  • .github/workflows/python-package.yml: Adds Python 3.12 to the test matrix
  • .pre-commit-config.yaml: Updates black formatting tool to latest version
  • CHANGELOG.txt: Documents changes for new 0.12.1 release
  • README.rst: Adds documentation for new METADATA_PARSER_FUTURE environment variable
  • mypy.ini: Adds mypy static type checking configuration
  • setup.cfg, setup.py: Adds Python 3.12 trove classifier and excludes some demo files
  • src/metadata_parser/__init__.py:
    • Adds extensive type hints throughout
    • Adds FUTURE_BEHAVIOR flag controlled by METADATA_PARSER_FUTURE env var
    • Deprecates several MetadataParser methods in favor of result object
    • Can parse ParseResultBytes URL objects
  • tests/test_document_parsing.py, tests/test_sessions.py, tests/test_url_parsing.py: Fixes some typing issues in tests
  • tox.ini: Adds Python 3.12 to test envlist

Possible Issues

The extensive addition of type hints may uncover some previously hidden type errors or break some edge cases. Thorough testing, especially of the public API, is recommended before releasing.

The deprecations to the MetadataParser API surface in favor of operating on the parsed result object directly is a big change. Clear communication and documentation for users to update their code will be important.

@aurangzaib048 aurangzaib048 merged commit f9844c9 into master May 21, 2024
8 checks passed
@renovate renovate bot deleted the renovate/metadata-parser-0.x branch May 21, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant