I'd propose to go completely wild and parse the file manually to find the lines (and strings) that correspond to these variables.
Rather than just do this for VERSION and DESCRIPTION I added a function to get a global string by parsing a file relative to setup.py and used this for shareFolder too.
The RE works for both single and double quoted strings.
Coverage decreased (-0.1%) to 73.491% when pulling 6662b5641a6647641a1e599df42fad809c065adb on rjsberry:pip_fix into aa4eea153b96537383af336fccfb0cd9beee3ceb on devsnd:devel.
Coverage remained the same at 73.609% when pulling 8f43b64874b99a40dd354f767463cedbf276c723 on rjsberry:pip_fix into aa4eea153b96537383af336fccfb0cd9beee3ceb on devsnd:devel.
Fixes #695.
Rather than just do this for VERSION and DESCRIPTION I added a function to get a global string by parsing a file relative to
setup.py
and used this forshareFolder
too.The RE works for both single and double quoted strings.
Tested with 3.6.2 and 2.7.13 clean venv's.