Skip to content
Success

Changes

Summary

  1. pySim.esim.saip.ProfileElementSequence: Update type annotations (details)
  2. esim.saip: Better docstring about FsNode class (details)
  3. unittests/test_utils: add unittests for enc_imsi and dec_imsi (details)
  4. pySim-shell: renovate version command (details)
Commit a8ae89a041127e63321ab8b75569f7a31f04a7f8 by laforge
pySim.esim.saip.ProfileElementSequence: Update type annotations

The type annotations didn't reflect reality in two cases.

Change-Id: Ib99c00a38bf009c63180b4a593d6cc796ff282d3
The file was modifiedpySim/esim/saip/__init__.py
Commit 097d565310c6aa8a0243e815cc565ba2b449fe19 by laforge
esim.saip: Better docstring about FsNode class

Change-Id: Id9d196e8d9b1d1b892ec50100b170d72d2c3910b
The file was modifiedpySim/esim/saip/__init__.py
Commit c2ace3d8cf612164c2fb77845c61cc87e42a9349 by laforge
unittests/test_utils: add unittests for enc_imsi and dec_imsi

So far we seem to have no unittests for enc_imsi and dec_imsi.

Change-Id: Iae55485c5ec7763aa4aaa25fd1910b854adaab60
The file was modifiedtests/unittests/test_utils.py
Commit 8e048820d465ac08c873a9eb3feb6af9999dc93f by laforge
pySim-shell: renovate version command

In case pySim-shell is used directly from the git repository (not
installed via a package manager), the version command fails with an
exception because pkg_resources.get_distribution('pySim') fails.

Let's renovate the version command and migrate from pkg_resources to
importlib.resources. There are many users and developers out there who
retrieve pySim-shell directly from the git repository and not via pip3.
To accommodate for that, let's check if pySim-shell.py is located in a
git repository and if so, let's display the HEAD commit hash instead.

Since the version of the currently installed pyosmocom version also
plays a critical role, let's display the pyosmocom version as well.

Related: OS#6830
Change-Id: I2b9038f88cfcaa07894a2f09c7f5ad8a5474083d
The file was modifiedpySim-shell.py