I have python application which I would like to test. This application is importing a lot of packages for example:
import time
import sys
.
.
.
import mypackage
Where mypackage is my own package.
When I start application everything works fine. However, as soon as I try to run tox to test it I will get the following error:
Collecting mypackage
Could not find a version that satisfies the requirement mypackage (from versions: )
No matching distribution found for mypackage
I understand that tox can't install mypackage dependency since it is not in pip. Do you know how to run tox on such application or how to install own packages with tox ?
Content of my tox.ini file:
[tox]
envlist = py36
[testenv]
deps =
pytest
coverage
time
sys
mypackage
commands =
python setup.py develop
coverage erase
coverage run -m pytest myapp/tests/
coverage report --omit='.tox/*'