0.40.0
Changed `wheel unpack` to honor the original permissions of files (#514)
Dropped the use of the deprecated pkg_resources API (#508)
Updated version number in `__init__.py`
Added pyupgrade and flake8-bugbear to pre-commit config (#432)
Replaced all uses of distutils with setuptools (#428)
Fixed EncodingWarning when PYTHONWARNDEFAULTENCODING is set (#512)
[pre-commit.ci] pre-commit autoupdate (#499)
Mark generated files as regular files (#511)