diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -2,12 +2,20 @@ | |||
| 2 | EventMQ setup.py file for distribution | 2 | EventMQ setup.py file for distribution |
| 3 | 3 | ||
| 4 | """ | 4 | """ |
| 5 | import ast | ||
| 5 | 6 | ||
| 6 | from setuptools import find_packages, setup | 7 | from setuptools import find_packages, setup |
| 7 | 8 | ||
| 9 | version = 'unknown' | ||
| 10 | with open('eventmq/__init__.py') as f: | ||
| 11 | for line in f: | ||
| 12 | if line.startswith('__version__'): | ||
| 13 | version = ast.parse(line).body[0].value.s | ||
| 14 | break | ||
| 15 | |||
| 8 | setup( | 16 | setup( |
| 9 | name='eventmq', | 17 | name='eventmq', |
| 10 | version='0.3.8', | 18 | version=version, |
| 11 | description='EventMQ job execution and messaging system based on ZeroMQ', | 19 | description='EventMQ job execution and messaging system based on ZeroMQ', |
| 12 | packages=find_packages(), | 20 | packages=find_packages(), |
| 13 | install_requires=['pyzmq==15.4.0', | 21 | install_requires=['pyzmq==15.4.0', |