()
| 16 | |
| 17 | # Get version |
| 18 | def get_version(): |
| 19 | version_file = os.path.join(os.path.dirname(__file__), 'openocr', '__init__.py') |
| 20 | with open(version_file, 'r', encoding='utf-8') as f: |
| 21 | for line in f: |
| 22 | if line.startswith('__version__'): |
| 23 | return line.split('=')[1].strip().strip('"').strip("'") |
| 24 | return '0.1.0' |
| 25 | |
| 26 | setup( |
| 27 | name='openocr-python', |