About the Python category

Any discussion about Python goes here!

Subject; reproducing a travis python test environment in a local docker image

I have a python package that passes its tests in on all the systems I have tried except for running in a travis python environment. To be specific:

Here is the corresponding travis.yml

What I would like to do is to create a docker images on my linux machine that is the same as the travis environment so that I can figure out what is going wrong. How do I do this ?