Use CI for build Django project

I have a task to replace jeankins with GitLab CI. We have projects on GitLab, our Django projects need to be built, archived in * .tar.gz and sent to our private PyPiServer.
Question: what is the minimum tool for doing this? Maybe you know a similar manual. Specifically, it is not clear how in GitLab builds.

Pleas help me.