CI/CD for Python Applications

I'm looking to gather information on how people here do CI/CD for Python applications since at my company my options are seemingly very limited. I cannot deploy source code to production per policy and cannot put source code into a Docker container since Docker isn't "approved" yet. Also, I am restricted to doing CI/CD on Windows Servers since our version of SLES company-wide only supports Python up to 2.7 and I need to do stuff for 3.6 and beyond.

I've been looking into "freezing" applications with tools like cx_freeze, but some developers hate having to deal with debugging "frozen" applications. I also worry about pip modules building up on my TeamCity build agents over time, since I am initially starting with a

pip install -r requirements.txt

step before freezing the application. That is to make sure cx_freeze will include all the required modules in the freeze. We also proxy pip modules from PyPI through our instance of Nexus Repository Manager.

As for deploying the frozen application to a Windows Server, I haven't worked that out yet. Likely something in PowerShell.

So I would like to hear what others are doing, even if you are using Docker or k8s.

Posted Aug 21, 2018, 3:20 AM UTC

2928
Loading comments…