Our great sponsors
-
I highly recommend Poetry for dependency management in Python. Much more sane than using pip.
-
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
fpm
Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
I use FPM (https://github.com/jordansissel/fpm) to build a .deb package, which I install using Ansible. The package includes a virtualenv with all the Python dependencies as well as all the static files. I use a set of Make tasks to automate building the app, setting up the venv, placing the static files, and making the .deb. I upload my packages to a reprepro package repository that I manage (if I could do it again, I might use Aptly instead). I then use Ansible to set up the package repository, install the package, and place config files. It was a lot of work to set up but the production environment is all automated.