<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17850">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">check_dependencies: Import modules dynamically and find related debian packages<br><br>This way we don't need to manually add new imports here or drop unusued<br>ones. It also makes sure local imports in all our py files is correct.<br>For instance, running the script already caught an issue which is added<br>to this patch (osmo_ms_driver/__main__.py).<br><br>This new version of the script also allows specifying subsets of<br>features to skip when checking for dependencies. This way, for instance<br>somebody not willing to use a sispm powersupply can stil check all the<br>needed dependencies are fine.<br><br>This new tool will make it easier to slowly make some dependencies only<br>used by some object test classes optional (for instance, python-smpplib<br>if user doesn't want to run an ESME node).<br><br>It also allows to retrieve the required debian/manually installed<br>packages when run with "-p" option:<br>"""<br>Debian packages:<br>        libpython3.5-minimal:amd64<br>        python3-gi<br>        python3-six<br>        libpython3.5-stdlib:amd64<br>        python3-pygments<br>        python3-yaml<br>        python3-mako<br>        python3-numpy<br>        python3-markupsafe<br><br>Modules without debian package (pip or setuptools?):<br>        usb                  [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/usb/_interop.py]<br>        pydbus               [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/pydbus/proxy.py]<br>        smpplib              [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/smpplib/command_codes.py]<br>        sispm                [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/sispm/__init__.py]<br>"""<br><br>Change-Id: I29ddf8971837754abd930d847bd1036e8e510de6<br>---<br>M check_dependencies.py<br>M src/osmo_ms_driver/__main__.py<br>2 files changed, 125 insertions(+), 28 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/50/17850/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17850">change 17850</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17850"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I29ddf8971837754abd930d847bd1036e8e510de6 </div>
<div style="display:none"> Gerrit-Change-Number: 17850 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>