secureli icon indicating copy to clipboard operation
secureli copied to clipboard

Add developer support for python 3.11

Open gabenegron opened this issue 2 years ago • 3 comments

Currently, seCureLI is implemented in Python version 3.9. In order to maintain best practices, the required Python version in the pyproject.toml file should be changed to "^3.11"

The goal of this story is to resolve all of the incompatibility issues that arise from switching to Python3.11

There are some known incompatibility issues that need to be corrected such as how Enums are printed which will affect how seCureLI runs

example:

from enum import Enum

class EchoLevel(str, Enum):
    debug = "DEBUG"
    info = "INFO"
    warn = "WARN"
    error = "ERROR"


test = {"level": EchoLevel.error}
test["level"] = "{}".format(test["level"])
print(test)

python3.9 output: {'level': 'ERROR'} python3.11 output: {'level': 'EchoLevel.error'}

there may be other issues as well

gabenegron avatar Aug 08 '23 19:08 gabenegron

PR to resolve is open: https://github.com/slalombuild/secureli/pull/316

RobMRodriguez avatar Oct 11 '23 00:10 RobMRodriguez

See https://github.com/slalombuild/secureli/issues/318, this is being reverted, it needs to be handled with a better checklist of the different systems needed to be updated including publishing and homebrew.

RobMRodriguez avatar Oct 11 '23 22:10 RobMRodriguez

Developer support for 3.11 is complete, moving the project proper to 3.11 needs to be a bigger ticket and have careful consideration

RobMRodriguez avatar Oct 12 '23 18:10 RobMRodriguez