Skip to content

Commit

Permalink
feat: Added Python 3.11 support (#316)
Browse files Browse the repository at this point in the history
Resolving string representation of enum for EchoLevel
Edited TOML file

---------

Co-authored-by: Rob Rodriguez <[email protected]>
Co-authored-by: Rob Rodriguez <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent c1fafe4 commit f31d19f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.9
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Set Up Project
run: |
Expand All @@ -48,11 +48,11 @@ jobs:
- name: Validate Branch name
run: ./scripts/get-current-branch.sh

- name: Set up Python 3.9
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Set Up Project
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ jobs:
ref: main
fetch-depth: 0

- name: Set up Python 3.9
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- run: |
pip install poetry
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_secureli
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# A basic dockerfile for mimicking/testing ci commands
# docker build -t secureli . or poe docker-build

FROM python:3.9
FROM python:3.11
WORKDIR /app
COPY . /app
RUN cp /app/ca-certificates/*.crt /usr/local/share/ca-certificates | true && update-ca-certificates
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test = ["init", "lint", "coverage_run", "coverage_report"]
e2e = "bats tests/end-to-end/test.bats"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.11"
typer = {version = ">=0.6.1,<0.10.0", extras = ["all"]}
pygments = "^2.13.0"
dependency-injector = {version = "^4.40.0", extras = ["yaml"]}
Expand Down
6 changes: 6 additions & 0 deletions secureli/repositories/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ class EchoLevel(str, Enum):
warn = "WARN"
error = "ERROR"

def __str__(self) -> str:
return self.value

def __repr__(self) -> str:
return self.__str__()


class EchoSettings(BaseSettings):
"""
Expand Down

0 comments on commit f31d19f

Please sign in to comment.