Skip to content

Commit 6a4a313

Browse files
committed
fix installation: we cant import sdk if it is not installed
1 parent aef97c7 commit 6a4a313

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
include requirements.txt
22
prune tests*
3-
prune testing*

setup.py

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from setuptools import setup, find_packages
2-
from mindsdb_sdk import __about__ as C
2+
3+
about = {}
4+
with open("mindsdb_sdk/__about__.py") as fp:
5+
exec(fp.read(), about)
36

47
with open("README.md", "r") as fh:
58
long_description = fh.read()
@@ -8,17 +11,17 @@
811
requirements = req_file.read().splitlines()
912

1013
setup(
11-
name=C.__title__,
12-
version=C.__version__,
13-
url=C.__github__,
14-
download_url=C.__pypi__,
15-
license=C.__license__,
16-
author=C.__author__,
17-
author_email=C.__email__,
18-
description=C.__description__,
14+
name=about['__title__'],
15+
version=about['__version__'],
16+
url=about['__github__'],
17+
download_url=about['__pypi__'],
18+
license=about['__license__'],
19+
author=about['__author__'],
20+
author_email=about['__email__'],
21+
description=about['__description__'],
1922
long_description=long_description,
2023
long_description_content_type="text/markdown",
21-
packages=find_packages(exclude=('tests*', 'testing*')),
24+
packages=find_packages(exclude=('tests*',)),
2225
install_requires=requirements,
2326
extras_require={
2427
'dev': [

0 commit comments

Comments
 (0)