DEV Community

Discussion on: Which Python Version is Your Live Project Using?

Collapse
 
danielkun profile image
Daniel Albuschat

We're using 3.6 and 3.7. 3.6 only for some scripts, because it is default in current Ubuntu LTS, and 3.7 because we found some of it's features nice and building and running took place in an official Python docker image, anyways - we've constructed the dev workflow in a way that it does not include running the code on the dev machine, which makes it pretty robust against "works on my machine" problems, and it can easily be fixated to a certain python version.

Collapse
 
tttfifo profile image
Todor Todorov

Hi Daniel,

This is very nice topic you are bringing up!

  • Whenever you need to use the default python from the operational system : for example devops scripts, some of the deployment tasks... the code needs to be compatible with 3.6
  • The development may be done with 3.7 because of it's cool features

About the Docker: a nice surprise for me was that all my 3.7 code is working nicely on top of the 'python:3.7.4-alpine' image. I was too cautious not to use Alpine, but it seams that it is playing nicely with Python. A good extra with Alpine is that the image is smaller than the others...

Cheers!

Collapse
 
tttfifo profile image
Todor Todorov

Hi Daniel again,

I reviewed your profile and I realize that your job is connected with even smaller images than Alpine, like your raspberry repository shows.

This is really cool!

Collapse
 
danielkun profile image
Daniel Albuschat

Hey Todor, those were hobby, though :-)

Thread Thread
 
tttfifo profile image
Todor Todorov

oops, my bad, sorry.
Nevertheless, a nice hobby! :)
I have one raspberry pi in the locker in the office and some day I will start playing with it, whenever the time comes :)
Maybe to see what python projects could run there...
Cheers!