Skip to content

Commit

Permalink
Add setup.cfg for wheel files and use with around open files in setup…
Browse files Browse the repository at this point in the history
….py.
  • Loading branch information
bboe committed Jan 16, 2014
1 parent 9cceaa7 commit 1789432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[wheel]
universal = 1
7 changes: 4 additions & 3 deletions setup.py
Expand Up @@ -5,9 +5,10 @@

MODULE_NAME = 'update_checker'

README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
VERSION = re.search("__version__ = '([^']+)'",
open('{0}.py'.format(MODULE_NAME)).read()).group(1)
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as fp:
README = fp.read()
with open('{0}.py'.format(MODULE_NAME)) as fp:
VERSION = re.search("__version__ = '([^']+)'", fp.read()).group(1)

setup(name=MODULE_NAME,
author='Bryce Boe',
Expand Down

0 comments on commit 1789432

Please sign in to comment.