diff options
author | Chris Withers <chris@withers.org> | 2020-01-13 08:02:15 +0000 |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2020-01-13 08:05:25 +0000 |
commit | 4680a9654e8485dd5b8ed809af4ff0c62df3b493 (patch) | |
tree | 921905a49f9dade0fada30d0f67ae986eb964221 /setup.py | |
parent | d1118fbc2a6044121625a9bc4a9a46a308b08f01 (diff) | |
download | mock-4680a9654e8485dd5b8ed809af4ff0c62df3b493.tar.gz |
move __version__ to __init__.py so we don't have to modify the mock.py from cpython.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,6 +5,6 @@ import setuptools setuptools.setup( version=re.search("__version__ = '([^']+)'", - open(join('mock', 'mock.py')).read()).group(1), + open(join('mock', '__init__.py')).read()).group(1), long_description=open('README.rst').read(), ) |