My current directory is set up like this
src
api
__init__.py
class1.py
py.typed
models
__init__.py
class2.py
py.typed
tests
test_class_1.py
test_class_2.py
requirements.txt
requirements_dev.txt
pyproject.toml
setup.cfg
setup.py
tox.ini
I have made models
an installable package so that I can import it in my tests
directory for unit testing. I would also like to make api
an installable package so that I can do the same thing.
Is there a way to do this?
Can you use the same pyproject.toml
and setup.cfg
files? Do you need to have separate versions of those files for each installable package you want to create?