use VERSION.py instead of plain VERSION file
reduces reliance on package_data
This commit is contained in:
parent
60f879a1ad
commit
b996f5f27e
1 changed files with 9 additions and 9 deletions
9
setup.py
9
setup.py
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
with open('README.md', 'r') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open('fatamorgana/VERSION', 'r') as f:
|
||||
version = f.read().strip()
|
||||
with open('fatamorgana/VERSION.py', 'rt') as f:
|
||||
version = f.readlines()[2].strip()
|
||||
|
||||
setup(name='fatamorgana',
|
||||
version=version,
|
||||
|
|
@ -18,9 +19,7 @@ setup(name='fatamorgana',
|
|||
url='https://mpxd.net/code/jan/fatamorgana',
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
'fatamorgana': ['VERSION',
|
||||
'py.typed',
|
||||
],
|
||||
'fatamorgana': ['py.typed'],
|
||||
},
|
||||
install_requires=[
|
||||
'typing',
|
||||
|
|
|
|||
Loading…
Reference in a new issue