From 6c021da85bd89e248842bd13eab2656aa8311286 Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Wed, 11 Jun 2025 15:26:13 -0400 Subject: [PATCH] fixes to warnings --- .github/workflows/python-package.yml | 8 ++++++-- CHANGELOG.txt | 4 ++++ src/metadata_parser/__init__.py | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 22c1e89..7f46e60 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,13 @@ name: Python package on: push: - branches: [ main ] + branches: + - main + - "branch-*" pull_request: - branches: [ main ] + branches: + - main + - "branch-*" jobs: build: diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3991205..070d0a9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,10 @@ 1.0 will include an api overhaul and remove all deprecations +0.13.1 + * guard against incorrect warnings; see Issue#52 + * add support for branches in github actions + 0.13.0 * drop py36; no test options due to github deprecation of ubuntu20.04 * `_coerce_validate_strategy` (invoked by `get_metadatas`) will now raise a diff --git a/src/metadata_parser/__init__.py b/src/metadata_parser/__init__.py index 07d16fb..d5cdb71 100644 --- a/src/metadata_parser/__init__.py +++ b/src/metadata_parser/__init__.py @@ -49,7 +49,7 @@ # ============================================================================== -__VERSION__ = "0.13.0" +__VERSION__ = "0.13.1" # ------------------------------------------------------------------------------ @@ -1560,7 +1560,9 @@ def __init__( ) cached_urlparser = False if cached_urlparser: - if isinstance(cached_urlparser, int): + if isinstance(cached_urlparser, int) and not isinstance( + cached_urlparser, bool + ): # build a default parser with maxitems warn_future( "Supplying an int to `cached_urlparser` to set maxitems is deprecated. "