Ensure version is a string
Merge pull request #8111 from hfinucane/gh-8108

Fix pip failure when version is parsed as a float