Merge pull request #381 from hugovk/add-3.12

Add support for Python 3.12