Not compatible with marshmallow 4.0.0
Describe the bug
marshmallow released version 4.0.0 a couple of hours ago. Since pyTenable's pyproject.toml pins to marshmallow>=3.8, this causes pip to pull in the latest version. However, it appears that pyTenable is not in fact compatible with 4.0.0
File "/app/registry/tracecat_registry/integrations/tenable_nessus.py", line 9, in <module>
from tenable.nessus import Nessus
File "/usr/local/lib/python3.12/site-packages/tenable/nessus/__init__.py", line 4, in <module>
from .api import Nessus
File "/usr/local/lib/python3.12/site-packages/tenable/nessus/api.py", line 37, in <module>
from .agents import AgentsAPI
File "/usr/local/lib/python3.12/site-packages/tenable/nessus/agents.py", line 15, in <module>
from .schema.pagination import ListSchema
File "/usr/local/lib/python3.12/site-packages/tenable/nessus/schema/pagination.py", line 10, in <module>
class FilterSchema(Schema):
File "/usr/local/lib/python3.12/site-packages/tenable/nessus/schema/pagination.py", line 25, in FilterSchema
@pre_load(pass_many=False)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: pre_load() got an unexpected keyword argument 'pass_many'
To Reproduce
Install pyTenable using pip and try to import Nessus
I'm guessing you'll just want to pin to <4.0.0 for now.
#911
Approving and running through to merge to main. I'll have a new version released today.
We have a longer-term goal to move away from marshmallow and instead use pydantic, so hopefully at some point there wont even be a need for marshmallow anymore.
1.7.5 && 1.6.3 released with the updated requirements.
Thanks for taking the initiative to submit a PR for this one!