For Python, you'd use something like Py2App or whatever the current thing is. And Py2Exe for Windows.
https://py2app.readthedocs.io/en/latest/
https://pypi.org/project/py2exe/
PS: I typed your question into GPT 4 verbatim and it pointed me to PyInstaller, as well.
If your audience is developers (or similarly tech-savvy), that's probably enough to package it up as `brew install my_pdf_parser` for Macs (and Chocolatey for Windows) and have them take care of the Python deps.
If you're going for a mainstream desktop app though, that's a bit harder, but there's stuff like https://pyinstaller.org/en/stable/ (edit: as you already mentioned in another comment, lol)
I would suggest looking at Homebrew.
Many, many developers use Docker on Mac without issue
There is Docker Desktop and Colima you can use
Q: I need to run existing Docker containers on my Mac.
A: You have to use a VM; it's no big deal.
Q: What's the best way to package a new native Mac app?
A: Not containers.