title: platform.linux_distribution() deprecated - what are the alternatives?
body: <p>As of Python 3.5 <a href="https://docs.python.org/3.5/library/platform.html#platform.linux_distribution" rel="noreferrer"><code>platform.linux_distribution()</code></a> is deprecated and it's planned to be removed from Python 3.7.</p>
  <p>Is there anything I could uses instead of <code>platform.linux_distribution()</code>?</p>
  <p><code>platform.uname()</code> doesn't yield the information I need. I'm running the code in a Docker container and <code>platform.uname()</code> returns the details for the host machine, not the image.</p>
  <p>In particular, I'm building a <a href="https://www.python.org/dev/peps/pep-0513/" rel="noreferrer">portable Linux distribution</a> and I want to test it on the canonical CentOS 5.11 distribution. I'm looking for a simple way to identify the OS to identify/tag the build results.</p>