Merge pull request #93 from Lnk2past/master
Fix missing VERSION file when installing via setup.py
This commit is contained in:
Коммит
b503461ea4
|
@ -1,4 +1,4 @@
|
|||
include requirements.txt
|
||||
include LICENSE
|
||||
include VERSION
|
||||
include dowhy/VERSION
|
||||
recursive-include docs *
|
||||
|
|
|
@ -4,5 +4,5 @@ from dowhy.causal_model import CausalModel
|
|||
|
||||
here = path.abspath(path.dirname(__file__))
|
||||
# Loading version number
|
||||
with open(path.join(here, path.pardir, 'VERSION')) as version_file:
|
||||
with open(path.join(here, 'VERSION')) as version_file:
|
||||
__version__ = version_file.read().strip()
|
||||
|
|
5
setup.py
5
setup.py
|
@ -20,7 +20,7 @@ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
|
|||
install_requires = f.read().splitlines()
|
||||
|
||||
# Loading version number
|
||||
with open(path.join(here, 'VERSION')) as version_file:
|
||||
with open(path.join(here, 'dowhy', 'VERSION')) as version_file:
|
||||
version = version_file.read().strip()
|
||||
print(version)
|
||||
|
||||
|
@ -48,5 +48,6 @@ setup(
|
|||
packages=find_packages(exclude=['docs', 'tests']),
|
||||
python_requires='>=3.0',
|
||||
install_requires=install_requires,
|
||||
include_package_data=True
|
||||
include_package_data=True,
|
||||
package_data={'dowhy':['VERSION']}
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче