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 to work with Marshmallow version 3.22 #141

Merged
merged 5 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Build Package and Test Source Code [Python 3.9, 3.10, 3.11, 3.12]
name: Build Package and Test Source Code [Python 3.10, 3.11, 3.12]

on:
push:
Expand All @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: paramtools-dev
channels:
- conda-forge
dependencies:
- "marshmallow>=3.0.0"
- "numpy>=1.13"
- "marshmallow>=3.22.0"
- "numpy>=2.1.0"
- "python-dateutil>=2.8.0"
- "pytest>=6.0.0"
- pandas
Expand Down
2 changes: 1 addition & 1 deletion paramtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@


name = "paramtools"
__version__ = "0.18.2"
__version__ = "0.18.3"

__all__ = [
"SchemaFactory",
Expand Down
2 changes: 1 addition & 1 deletion paramtools/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def validate_only(self, data):
error_store=error_store, data=data, many=None
)
# Run schema-level validation
if self._has_processors(decorators.VALIDATES_SCHEMA):
if self._hooks[decorators.VALIDATES_SCHEMA]:
field_errors = bool(error_store.errors)
self._invoke_schema_validators(
error_store=error_store,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="paramtools",
version=os.environ.get("VERSION", "0.18.2"),
version=os.environ.get("VERSION", "0.18.3"),
author="Hank Doupe",
author_email="[email protected]",
description=(
Expand Down