0.40.0
Changed `wheel unpack` to honor the original permissions of files (#514)
Added pyupgrade and flake8-bugbear to pre-commit config (#432)
Used modern tmp_path instead of py.path based tmpdir (#513)
Replaced all uses of distutils with setuptools (#428)
Report stderr contents if `flit build` fails
Mark generated files as regular files (#511)