Код: Выделить всё
.
└── big-project/
├── some service
├── some service
├── libs/
│ └── python/
│ ├── x-service/
│ │ ├── __init__.py
│ │ └── x_service.py
│ ├── y-service/
│ │ ├── __init__.py
│ │ └── y_service.py
│ └── setup.py
└── python-proj/
└── src/
├── config/
│ └── container.py
└── main.py
Код: Выделить всё
from setuptools import setup, find_packages
setup(
name="python-infrastructure",
version="0.1.0",
packages=find_packages(where='.'),
install_requires=[
"x_dependency~=2.0", # Compatible with 2.x versions
"y_admin~=6.6", # Compatible with 6.6.x versions
],
)
Код: Выделить всё
(.venv) current/active/python-proj > cd top/level/big/project
(.venv) top/level/big/project > pip install -e libs/python
(.venv) top/level/big/project > cd current/active/python-proj
(.venv) current/active/python-proj >
Код: Выделить всё
from libs.python.x_service.x_service import X_Service_Class
from libs.python.y_service.y_service import Y_Service_Class
Подробнее здесь: https://stackoverflow.com/questions/793 ... ect-folder
Мобильная версия