Use fatamorgana/VERSION file to single-source version number
`import fatamorgana` inside setup.py could break if dependencies weren't satisfied
This commit is contained in:
parent
203a520770
commit
e514ade2b1
1 changed files with 15 additions and 3 deletions
9
setup.py
9
setup.py
|
|
@ -1,13 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
import fatamorgana
|
||||
|
||||
with open('README.md', 'r') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open('fatamorgana/VERSION', 'r') as f:
|
||||
version = f.read().strip()
|
||||
|
||||
setup(name='fatamorgana',
|
||||
version=fatamorgana.version,
|
||||
version=version,
|
||||
description='OASIS layout format parser and writer',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
|
|
@ -51,6 +53,9 @@ setup(name='fatamorgana',
|
|||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
],
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
'fatamorgana': ['VERSION']
|
||||
},
|
||||
install_requires=[
|
||||
'typing',
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue