####modulo1.py
from modulo2 import foo
modulo1.py
####modulo2.py
def foo():
print("Hola desde modulo2, soy foo :)")
from modulo2 import foo
modulo2.py
def foo():
print("Hola desde modulo2, soy foo :)")
####modulo1.py
from my_test_package.modulo2 import foo
modulo1.py
from my_test_package.modulo2 import foo
####modulo1.py
from .modulo2 import foo
modulo1.py
from .modulo2 import foo
####setup.py
from setuptools import setup, find_namespace_packages
setup.py
from setuptools import setup, find_namespace_packages
setup(
name='my_test_package',
version='0.1',
description='Solo una prueba',
url='https://mypackage.git',
author='Author Name',
author_email='[email protected]',
install_requires=[],
package_dir={'': 'src'},
packages=find_namespace_packages(where='src')
)
####setup.py
setup.py
####__init__.py
from my_test_package import modulo1, modulo2
__init__.py
from my_test_package import modulo1, modulo2