diff options
author | Stefan Wojcik <wojcikstefan@gmail.com> | 2016-09-28 16:19:09 -0400 |
---|---|---|
committer | Stefan Wojcik <wojcikstefan@gmail.com> | 2016-09-28 16:19:09 -0400 |
commit | a9e21a9d556ea236721fe2e7f9b1260127d22a04 (patch) | |
tree | fd9d04e911dfdc9b7b2396b90e4c8ec0cf70a8d2 /setup.py | |
parent | 7799be4a1cd2d68f70293a515bba1392b989531b (diff) | |
download | python-mimeparse-a9e21a9d556ea236721fe2e7f9b1260127d22a04.tar.gz |
setup.py sanity check + pep8 tweaks to mimeparse.py
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,6 +15,8 @@ def get_version(filename): return re.search("__version__ = ['\"]([^'\"]+)['\"]", contents).group(1) version = get_version('mimeparse.py') +if not version: + raise RuntimeError('Cannot find version information') def read(fname): @@ -22,6 +24,7 @@ def read(fname): with codecs.open(path, encoding='utf-8') as fp: return fp.read() + setup( name="python-mimeparse", py_modules=["mimeparse"], |