move version info into VERSION.py

This avoid needing custom spec files for pyinstaller, which doesn't
handle package_data by default
This commit is contained in:
Jan Petykiewicz 2020-11-01 20:16:06 -08:00
commit 9759645f92
4 changed files with 9 additions and 8 deletions

View file

@ -5,8 +5,8 @@ from setuptools import setup, find_packages
with open('README.md', 'r') as f:
long_description = f.read()
with open('mem_edit/VERSION', 'r') as f:
version = f.read().strip()
with open('mem_edit/VERSION.py', 'rt') as f:
version = f.readlines()[2].strip()
setup(name='mem_edit',
version=version,
@ -50,7 +50,7 @@ setup(name='mem_edit',
],
packages=find_packages(),
package_data={
'mem_edit': ['VERSION']
'mem_edit': []
},
install_requires=[
'typing',