I have two packages, main_package and sub_package. Both have been packaged into wheel files. I want to bundle sub_package into main_package so that while installing main_package, sub_package also gets installed.
my setup.py file looks like this
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="main-package",
version="0.0.1",
author="author",
author_email="author@example.com",
description="Package 1",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pypa/sampleproject",
packages=setuptools.find_packages()
install_requires=[
'sub_package'
],
include_package_data=True
)
How do I add sub_package to main_package so that when I do pip install main_package.whl , sub_package also gets installed?