Use VERSION.py instead of plain VERSION
reduce dependence on package_data
This commit is contained in:
parent
db6819ccc6
commit
4e0a5ede21
4 changed files with 8 additions and 9 deletions
6
setup.py
6
setup.py
|
|
@ -5,8 +5,8 @@ from setuptools import setup, find_packages
|
|||
with open('README.md', 'r') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open('gridlock/VERSION', 'r') as f:
|
||||
version = f.read().strip()
|
||||
with open('gridlock/VERSION.py', 'rt') as f:
|
||||
version = f.readlines()[2].strip()
|
||||
|
||||
setup(name='gridlock',
|
||||
version=version,
|
||||
|
|
@ -18,7 +18,7 @@ setup(name='gridlock',
|
|||
url='https://mpxd.net/code/jan/gridlock',
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
'gridlock': ['VERSION']
|
||||
'gridlock': [],
|
||||
},
|
||||
install_requires=[
|
||||
'numpy',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue