Skip to content

Commit c4ad458

Browse files
committed
Debug setup.py.
1 parent 8db45bd commit c4ad458

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
from os import path
66
from unittest import TestLoader
77

8-
from elastic_site_search.version import VERSION
9-
108
here = path.abspath(path.dirname(__file__))
119

10+
about = {}
11+
with open(path.join(here, 'elastic_site_search', 'version.py'), 'r', 'utf-8') as f:
12+
exec(f.read(), about)
13+
1214
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
1315
long_description = f.read()
1416

1517
setup(
1618
name = 'elastic-site-search',
17-
version = VERSION,
19+
version = about['VERSION'],
1820
description = 'Elastic Site Search API Client for Python',
1921
long_description=long_description,
2022
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)