Enable utilization as module
Could you explain the reason behind this?
Could you explain the reason behind this?
This allows to also run pip-check as a python module (e.g python -m pip_check), and doesn't break running it as a package. I'm using python in a locked Windows environment, where running packages directly is restricted.
I'll give it some more tests regarding the pypi build and merge soon.
It doesn't look like the package itself is going to get build. You can test this by running tox.
py311: commands[1]> pip-check
Traceback (most recent call last):
File "/private/tmp/tox/pip-check/py311/bin/pip-check", line 5, in <module>
from pip_check import main
ImportError: cannot import name 'main' from 'pip_check' (/private/tmp/tox/pip-check/py311/lib/python3.11/site-packages/pip_check/__init__.py)
py311: exit 1 (0.16 seconds) /Users/martin/Workspace/pip-check> pip-check pid=32760
Noted, I will run the full test suite
Closing this due to staleness.