Hi have created a wheel file and installed it. But upon importing I'm getting module not found error.
Here is the Setup.py
import setuptools
from setuptools import find_packages
import pathlib, os
root=pathlib.Path(__file__).parent
os.chdir(str(root))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name='testai',
version='0.1.0',
author='test',
author_email='test@test.ai',
description='Testing installation of Package',
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={"": "testai"}, # Optional
packages=find_packages(where="testai"), # Required
url='',#need to add url
project_urls = {
"Bug Tracker": "https://github.com/"#need to add issues url
},
license='MIT',#need to decide which licence to give
install_requires=['requests','aiohttp','pydantic','urllib3','boto3','gcloud','google-cloud-
storage','aiocache','databases'],#list packages
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
]
)
My folder structure is:
testai(base-dir)
|__>testai(dir with code)
|__>src(dir)
|__>core(dir)
|__>config.py
|__>__init__.py
|__>storage(dir)
|__>dummystorage.py
|__>__init__.py
|__>__init__.py(contains all the imports)
|__>__init__.py
|__>setup.py
|__>README.md
I can't understand why my import fails but the package is present.
On doing pip show testai, it gives all the info.