Open richardforth opened 2 years ago
Debian 11:
$ docker run -it forric/debian11:latest /bin/bash
root@e96ff14bccd0:/# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.id()
'debian'
>>> distro.version()
'11'
>>> distro.name()
'Debian GNU/Linux'
>>> distro.codename()
'bullseye'
Got to do testing to see if this is also backward compatible with older python versions that dont complain currently
... redacted
Debian 10
Debian 11
Ubuntu 22.04
DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.