Page MenuHomeDevCentral

Migrate Salt to Python 3
Closed, ResolvedPublic

Description

Salt repository expects Salt to run under Python 2, as it was the way packagers configured Salt.

But recently, Debian Salt packages maintainers decided to switch to Python 3.

We need to migrate our repository to be Python 3 compatible.

I see two needed actions:

  • replace iteritems() by items() for dictionaries
  • check custom modules unit tests under Python 3 (I remember very well to have different sorting results for example for set manipulation during development)

This is a rather high level priority task, as Eglide user account creation is currently blocked by this.

Event Timeline

dereckson triaged this task as High priority.Feb 18 2018, 14:41
dereckson created this task.
This comment was removed by dereckson.

Done for Ysul, Eglide.

Dwellers is still under py27-.

Packages for Fedora/RedHat/CentOS aren't ready: https://github.com/saltstack/salt-pack/issues/369

Normally done everywhere. Should check Dwellers when we respawn it.

dereckson claimed this task.

Done everywhere now, I've installed Salt 3000 and Python 3.6 on Dwellers.